Commit 683dc4d
committed
[AMDGPU][MC] Disassembler warning for v_cmpx instructions
For GFX10+ the destination reg of v_cmpx instructions and
others is implicitly EXEC, which is encoded as 0x7E. However,
the disassembler does not check this field, thus allowing any
value. With this patch, if the field is not 0x7E a warning
is issued.1 parent 7c104b6 commit 683dc4d
File tree
4 files changed
+425
-2
lines changed- llvm
- include/llvm/MC/MCDisassembler
- lib/Target/AMDGPU/Disassembler
- test/MC/Disassembler/AMDGPU
- tools/llvm-mc
4 files changed
+425
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
| |||
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
225 | 229 | | |
226 | 230 | | |
227 | 231 | | |
| |||
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
| 666 | + | |
| 667 | + | |
666 | 668 | | |
667 | 669 | | |
668 | 670 | | |
| |||
801 | 803 | | |
802 | 804 | | |
803 | 805 | | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
804 | 815 | | |
805 | | - | |
| 816 | + | |
806 | 817 | | |
807 | 818 | | |
808 | 819 | | |
| |||
0 commit comments