brintos

brintos / llvm-project-archived public Read only

0
0
Text · 778 B · aeccb80 Raw
20 lines · plain
1; RUN: llc < %s -mtriple=x86_64-uefi | FileCheck %s -check-prefix=UEFIFAST642; RUN: llc < %s -mtriple=x86_64-windows-msvc | FileCheck %s -check-prefix=UEFIFAST643 4declare fastcc i32 @fastcallee1(i32 %a1, i32 %a2, i32 %a3, i32 %a4)5 6define fastcc i32 @fastcaller1(i32 %in1, i32 %in2) nounwind {7;; Test that the caller allocates stack space for callee to spill the register arguments.8; UEFIFAST64-LABEL: fastcaller1:9; UEFIFAST64:       # %bb.0: # %entry10; UEFIFAST64-NEXT:    subq	$40, %rsp11; UEFIFAST64-NEXT:    movl %ecx, %r8d12; UEFIFAST64-NEXT:    movl %edx, %r9d13; UEFIFAST64-NEXT:    callq fastcallee114; UEFIFAST64-NEXT:    addq	$40, %rsp15; UEFIFAST64-NEXT:    retq16entry:17  %tmp11 = call fastcc i32 @fastcallee1(i32 %in1, i32 %in2, i32 %in1, i32 %in2)18  ret i32 %tmp1119}20