llvm-project/llvm/test/MachineVerifier/undef-should-only-be-set-on...

17 lines
557 B
YAML

# REQUIRES: amdgpu-registered-target
# RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -run-pass=none -o /dev/null %s 2>&1 | FileCheck %s
---
name: undef_reg_def
tracksRegLiveness: true
body: |
bb.0:
; CHECK: *** Bad machine code: Undef virtual register def operands require a subregister ***
undef %0:sreg_64 = S_MOV_B64 0
; CHECK: *** Bad machine code: Undef virtual register def operands require a subregister ***
S_NOP 0, implicit-def undef %1:sreg_64
S_ENDPGM 0, implicit %0.sub0, implicit %0.sub1
...