baadeaee3d4b12ae1a71268af46df370efeaa00f
[oota-llvm.git] / test / CodeGen / MIR / X86 / virtual-register-redefinition-error.mir
1 # RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s
2
3 --- |
4
5   define i32 @test(i32 %a) {
6   body:
7     ret i32 %a
8   }
9
10 ...
11 ---
12 name:            test
13 isSSA:           true
14 tracksRegLiveness: true
15 registers:
16   - { id: 0, class: gr32 }
17 # CHECK: [[@LINE+1]]:11: redefinition of virtual register '%0'
18   - { id: 0, class: gr32 }
19 body:
20   - id:          0
21     name:        body
22     liveins:     [ '%edi' ]
23     instructions:
24       - '%0 = COPY %edi'
25       - '%eax = COPY %0'
26       - 'RETQ %eax'
27 ...
28