Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MIR: Start diagnosing too many operands on an instruction
Previously this would just assert which was annoying and didn't point to the specific instruction/operand.
- Loading branch information
Showing
5 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# RUN: not llc -march=amdgcn -run-pass=none -o /dev/null %s 2>&1 | FileCheck %s | ||
|
||
--- | ||
name: extra_imm_operand | ||
body: | | ||
bb.0: | ||
; CHECK: [[@LINE+3]]:18: too many operands for instruction | ||
; CHECK-NEXT: S_ENDPGM 0, 0 | ||
; CHECK_NEXT: ^ | ||
S_ENDPGM 0, 0 | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# RUN: not llc -march=amdgcn -run-pass=none -o /dev/null %s 2>&1 | FileCheck %s | ||
|
||
--- | ||
name: extra_reg_operand | ||
body: | | ||
bb.0: | ||
; CHECK: [[@LINE+3]]:29: too many operands for instruction | ||
; S_ENDPGM 0, undef $vgpr0 | ||
; CHECK_NEXT: ^ | ||
S_ENDPGM 0, undef $vgpr0 | ||
... |