aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/MIR/X86/subreg-on-physreg.mir
blob: 4adae94978b1e18fd04a9152b2842c8a235dfc7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# RUN: not llc -mtriple=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
...