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.
6 define i32 @test(i32 %a, i32 %b) {
12 define i32 @test2(i32 %a, i32 %b) {
27 ; CHECK-LABEL: bb.0.body:
28 ; CHECK-NEXT: liveins: %edi, %esi
32 %eax = LEA64_32r killed %rdi, 1, killed %rsi, 0, _
38 ; CHECK-LABEL: name: test2
39 ; Verify that we can have multiple lists of liveins that will be merged into
42 ; CHECK-NEXT: liveins: %edi, %esi
47 %eax = LEA64_32r killed %rdi, 1, killed %rsi, 0, _
53 ; Verify that we can have an empty list of liveins.
54 ; CHECK-LABEL: name: test3
56 ; CHECK-NEXT: %eax = MOV32r0 implicit-def dead %eflags
60 %eax = MOV32r0 implicit-def dead %eflags