1 # RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
7 define i32 @test(i32 %a, i32 %b, i32 %c, i32 %d) {
9 %add = add nsw i32 %b, %a
10 %add1 = add nsw i32 %add, %c
11 %add2 = add nsw i32 %add1, %d
12 tail call void @foo(i32 %add2)
13 %add6 = add nsw i32 %add2, %add2
20 tracksRegLiveness: true
26 - { id: 0, type: spill-slot, offset: -16, size: 8, alignment: 16 }
29 PUSH64r killed $rbx, implicit-def $rsp, implicit $rsp
30 CFI_INSTRUCTION def_cfa_offset 16
31 ; CHECK: [[@LINE+1]]:28: expected a cfi register
32 CFI_INSTRUCTION offset %0, -16
33 $ebx = COPY $edi, implicit-def $rbx
34 $ebx = ADD32rr $ebx, killed $esi, implicit-def dead $eflags
35 $ebx = ADD32rr $ebx, killed $edx, implicit-def dead $eflags
36 $ebx = ADD32rr $ebx, killed $ecx, implicit-def dead $eflags
38 CALL64pcrel32 @foo, csr_64, implicit $rsp, implicit $edi, implicit-def $rsp
39 $eax = LEA64_32r killed $rbx, 1, $rbx, 0, _
40 $rbx = POP64r implicit-def $rsp, implicit $rsp