1 # RUN: llc -march=x86-64 -run-pass none -o - %s | FileCheck %s
2 # This test ensures that the MIR parser parses basic block liveins correctly.
6 define i32 @test(i32 %a, i32 %b) {
12 define i32 @test2(i32 %a, i32 %b) {
26 tracksRegLiveness: true
28 ; CHECK-LABEL: bb.0.body:
29 ; CHECK-NEXT: liveins: $edi, $esi
33 $eax = LEA64_32r killed $rdi, 1, killed $rsi, 0, _
38 tracksRegLiveness: true
40 ; CHECK-LABEL: name: test2
41 ; Verify that we can have multiple lists of liveins that will be merged into
44 ; CHECK-NEXT: liveins: $edi, $esi
49 $eax = LEA64_32r killed $rdi, 1, killed $rsi, 0, _
54 tracksRegLiveness: true
56 ; Verify that we can have an empty list of liveins.
57 ; CHECK-LABEL: name: test3
59 ; CHECK-NEXT: $eax = MOV32r0 implicit-def dead $eflags
63 $eax = MOV32r0 implicit-def dead $eflags