File tree 3 files changed +11
-9
lines changed
3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -1100,7 +1100,7 @@ bool MIParser::parse(MachineInstr *&MI) {
1100
1100
if (!IsImplicitOp) {
1101
1101
if (!MCID.isVariadic () && NumExplicitOps >= MCID.getNumOperands () &&
1102
1102
!Operand.Operand .isValidExcessOperand ())
1103
- return error (" too many operands for instruction" );
1103
+ return error (Operand. Begin , " too many operands for instruction" );
1104
1104
1105
1105
++NumExplicitOps;
1106
1106
}
Original file line number Diff line number Diff line change 1
- # RUN: not llc -march=amdgcn -run-pass=none -o /dev/null %s 2>&1 | FileCheck %s
1
+ # RUN: not llc -march=amdgcn -run-pass=none -o /dev/null %s 2>&1 | \
2
+ # RUN: FileCheck --strict-whitespace %s
2
3
3
4
---
4
5
name : extra_imm_operand
5
6
body : |
6
7
bb.0:
7
- ; CHECK: [[@LINE+3]]:18 : too many operands for instruction
8
- ; CHECK-NEXT: S_ENDPGM 0, 0
9
- ; CHECK_NEXT: ^
8
+ ; CHECK: [[@LINE+3]]:17 : too many operands for instruction
9
+ ; CHECK-NEXT: {{^}} S_ENDPGM 0, 0
10
+ ; CHECK-NEXT: {{^}} ^
10
11
S_ENDPGM 0, 0
11
12
12
13
...
Original file line number Diff line number Diff line change 1
- # RUN: not llc -march=amdgcn -run-pass=none -o /dev/null %s 2>&1 | FileCheck %s
1
+ # RUN: not llc -march=amdgcn -run-pass=none -o /dev/null %s 2>&1 | \
2
+ # RUN: FileCheck --strict-whitespace %s
2
3
3
4
---
4
5
name : extra_reg_operand
5
6
body : |
6
7
bb.0:
7
- ; CHECK: [[@LINE+3]]:29 : too many operands for instruction
8
- ; S_ENDPGM 0, undef $vgpr0
9
- ; CHECK_NEXT: ^
8
+ ; CHECK: [[@LINE+3]]:17 : too many operands for instruction
9
+ ; CHECK-NEXT: {{^}} S_ENDPGM 0, undef $vgpr0
10
+ ; CHECK-NEXT: {{^}} ^
10
11
S_ENDPGM 0, undef $vgpr0
11
12
12
13
...
You can’t perform that action at this time.
0 commit comments