llvm-for-llvmta/test/CodeGen/MIR/X86/subreg-on-physreg.mir

13 lines
334 B
Plaintext
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
# This test ensures that an error is reported for subreg index on a physreg.
--- |
define void @t() { ret void }
...
---
name: t
body: |
bb.0:
; CHECK: [[@LINE+1]]:19: subregister index expects a virtual register
$eax.sub_8bit = COPY $bl
...