1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=x86_64-- -run-pass=machine-sink -o - %s | FileCheck %s
7 tracksRegLiveness: true
9 - { id: 0, class: gr32 }
10 - { id: 1, class: gr32 }
11 - { id: 2, class: gr32 }
12 - { id: 3, class: gr32 }
15 machineFunctionInfo: {}
17 ; CHECK-LABEL: name: foo
19 ; CHECK-NEXT: successors: %bb.2(0x80000000)
20 ; CHECK-NEXT: liveins: $edi, $esi
22 ; CHECK-NEXT: JMP_1 %bb.2
25 ; CHECK-NEXT: successors: %bb.2(0x80000000)
27 ; CHECK-NEXT: [[MOV32rr:%[0-9]+]]:gr32 = MOV32rr undef %1:gr32
30 ; CHECK-NEXT: successors: %bb.1(0x40000000), %bb.3(0x40000000)
32 ; CHECK-NEXT: [[MOV32rr1:%[0-9]+]]:gr32 = MOV32rr undef %3:gr32
33 ; CHECK-NEXT: JCC_1 %bb.1, 15, implicit undef $eflags
34 ; CHECK-NEXT: JMP_1 %bb.3
37 ; CHECK-NEXT: successors: %bb.3(0x40000000), %bb.4(0x40000000)
39 ; CHECK-NEXT: MOV32mr $rip, 1, $noreg, 12, $noreg, [[MOV32rr1]]
40 ; CHECK-NEXT: JCC_1 %bb.3, 15, implicit undef $eflags
41 ; CHECK-NEXT: JMP_1 %bb.4
44 ; CHECK-NEXT: RET 0, undef $eax
49 %0:gr32 = MOV32rr undef %1:gr32
51 %2:gr32 = MOV32rr undef %3:gr32
52 JCC_1 %bb.1, 15, undef implicit $eflags
56 MOV32mr $rip, 1, $noreg, 12, $noreg, %2
57 JCC_1 %bb.3, 15, undef implicit $eflags