llvm-project/llvm/test/MachineVerifier/undef-virt-reg-entry-block.mir
Matt Arsenault 87117a2e20 MachineVerifier: Add tests which are incorrectly accepted
In the process of splitting out the liveness tracking, I ran into
these cases which should have been caught. There are still missing
errors for some cases in the entry block.

https://reviews.llvm.org/D127104
2023-09-01 09:06:57 -04:00

15 lines
302 B
YAML

# XFAIL: *
# REQUIRES: amdgpu-registered-target
# RUN: not --crash llc -o - -mtriple=amdgcn-amd-amdhsa -run-pass=none -verify-machineinstrs %s
# FIXME: This should catch the undefined use of %0
---
name: undef_virtreg
body: |
bb.0:
S_ENDPGM 0, implicit %0:sreg_32
...