43 lines · plain
1# RUN: not llc -mtriple=x86_64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s2 3--- |4 5 declare void @foo(i32)6 7 define i32 @test(i32 %a, i32 %b, i32 %c, i32 %d) {8 entry:9 %add = add nsw i32 %b, %a10 %add1 = add nsw i32 %add, %c11 %add2 = add nsw i32 %add1, %d12 tail call void @foo(i32 %add2)13 %add6 = add nsw i32 %add2, %add214 ret i32 %add615 }16 17...18---19name: test20tracksRegLiveness: true21frameInfo:22 stackSize: 823 adjustsStack: true24 hasCalls: true25fixedStack:26 - { id: 0, type: spill-slot, offset: -16, size: 8, alignment: 16 }27body: |28 bb.0.entry:29 PUSH64r killed $rbx, implicit-def $rsp, implicit $rsp30 CFI_INSTRUCTION def_cfa_offset 1631 ; CHECK: [[@LINE+1]]:33: expected ','32 CFI_INSTRUCTION offset $rbx -1633 $ebx = COPY $edi, implicit-def $rbx34 $ebx = ADD32rr $ebx, killed $esi, implicit-def dead $eflags35 $ebx = ADD32rr $ebx, killed $edx, implicit-def dead $eflags36 $ebx = ADD32rr $ebx, killed $ecx, implicit-def dead $eflags37 $edi = COPY $ebx38 CALL64pcrel32 @foo, csr_64, implicit $rsp, implicit $edi, implicit-def $rsp39 $eax = LEA64_32r killed $rbx, 1, $rbx, 0, _40 $rbx = POP64r implicit-def $rsp, implicit $rsp41 RET64 $eax42...43