1# RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s
2# This test ensures that the MIR parser parses machine function's liveins
3# correctly.
4
5--- |
6
7  define i32 @test(i32 %a, i32 %b) {
8  body:
9    %c = add i32 %a, %b
10    ret i32 %c
11  }
12
13...
14---
15name:            test
16tracksRegLiveness: true
17registers:
18  - { id: 0, class: gr32 }
19  - { id: 1, class: gr32 }
20  - { id: 2, class: gr32 }
21# CHECK: liveins:
22# CHECK-NEXT: - { reg: '$edi', virtual-reg: '%0' }
23# CHECK-NEXT: - { reg: '$esi', virtual-reg: '%1' }
24liveins:
25  - { reg: '$edi', virtual-reg: '%0' }
26  - { reg: '$esi', virtual-reg: '%1' }
27body: |
28  bb.0.body:
29    liveins: $edi, $esi
30
31    %1 = COPY $esi
32    %0 = COPY $edi
33    %2 = ADD32rr %0, %1, implicit-def dead $eflags
34    $eax = COPY %2
35    RETQ $eax
36...
37