aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/MIR/X86/virtual-register-redefinition-error.mir
blob: 5dae6e666c83823a05347cc0da58ee8cc78ed0fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s

--- |

  define i32 @test(i32 %a) {
  body:
    ret i32 %a
  }

...
---
name:            test
isSSA:           true
tracksRegLiveness: true
registers:
  - { id: 0, class: gr32 }
# CHECK: [[@LINE+1]]:11: redefinition of virtual register '%0'
  - { id: 0, class: gr32 }
body: |
  bb.0.body:
    liveins: %edi

    %0 = COPY %edi
    %eax = COPY %0
    RETQ %eax
...