MIR Serialization: Serialize the machine basic block live in registers.
[oota-llvm.git] / test / CodeGen / MIR / X86 / basic-block-liveins.mir
1 # RUN: llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s | FileCheck %s
2 # This test ensures that the MIR parser parses basic block liveins correctly.
3
4 --- |
5
6   define i32 @test(i32 %a, i32 %b) {
7   body:
8     %c = add i32 %a, %b
9     ret i32 %c
10   }
11
12 ...
13 ---
14 name:            test
15 body:
16   # CHECK: name: body
17   # CHECK: liveins: [ '%edi', '%esi' ]
18   # CHECK-NEXT: instructions:
19   - id:          0
20     name:        body
21     liveins:     [ '%edi', '%esi' ]
22     instructions:
23       - '%eax = LEA64_32r killed %rdi, 1, killed %rsi, 0, _'
24       - 'RETQ %eax'
25 ...