Skip to content

Commit

Permalink
Merge "[AMDGPU] Avoid more hard-coded line numbers in error message c…
Browse files Browse the repository at this point in the history
…hecks" into amd-gfx
  • Loading branch information
jayfoad authored and Gerrit Code Review committed Apr 24, 2020
2 parents b801492 + c24f2a4 commit ae0e477
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# RUN: not llc -march=amdgcn -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
# CHECK: :7:27: expected a named register
# CHECK: scratchWaveOffsetReg: ''
---
name: empty_scratch_wave_offset_reg
machineFunctionInfo:
scratchWaveOffsetReg: ''
# CHECK: :[[@LINE-1]]:{{[0-9]+}}: expected a named register
body: |
bb.0:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# RUN: not llc -march=amdgcn -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
# CHECK: :8:33: incorrect register class for field
# CHECK: scratchWaveOffsetReg: '$vgpr0'

---
name: wrong_reg_class_scratch_wave_offset_reg
machineFunctionInfo:
scratchWaveOffsetReg: '$vgpr0'
# CHECK: :[[@LINE-1]]:{{[0-9]+}}: incorrect register class for field
body: |
bb.0:
Expand Down

0 comments on commit ae0e477

Please sign in to comment.