1 # RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
5 define i32 @compute(i32 %a) {
10 define i32 @func(i32 %a) {
17 %comp = icmp sle i32 %a, 10
18 br i1 %comp, label %loop, label %exit
21 %c = load i32, i32* %b
22 %d = call i32 @compute(i32 %c)
34 tracksRegLiveness: true
39 $eax = COPY killed $edi
44 tracksRegLiveness: true
51 # CHECK: [[@LINE+1]]:93: expected a named register
52 - { id: 0, type: spill-slot, offset: -16, size: 8, alignment: 16, callee-saved-register: '%0' }
54 - { id: 0, name: b, offset: -20, size: 4, alignment: 4 }
57 successors: %bb.1.check
60 frame-setup PUSH64r killed $rbx, implicit-def $rsp, implicit $rsp
61 $rsp = frame-setup SUB64ri8 $rsp, 16, implicit-def dead $eflags
63 MOV32mr $rsp, 1, _, 12, _, $ebx
66 successors: %bb.2.loop, %bb.3.exit
69 CMP32ri8 $ebx, 10, implicit-def $eflags
70 JCC_1 %bb.3.exit, 15, implicit killed $eflags
74 successors: %bb.1.check
77 $edi = MOV32rm $rsp, 1, _, 12, _
78 CALL64pcrel32 @compute, csr_64, implicit $rsp, implicit $edi, implicit-def $rsp, implicit-def $eax
79 $eax = DEC32r killed $eax, implicit-def dead $eflags
80 MOV32mr $rsp, 1, _, 12, _, killed $eax
84 $eax = MOV32r0 implicit-def dead $eflags
85 $rsp = ADD64ri8 $rsp, 16, implicit-def dead $eflags
86 $rbx = POP64r implicit-def $rsp, implicit $rsp