1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --no_x86_scrub_sp
2 ; RUN: llc < %s -tailcallopt=false | FileCheck %s
7 ; byval requires a copy, even with fastcc.
9 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
10 target triple = "i386-apple-darwin9.5"
12 %struct.MVT = type { i32 }
14 define fastcc i32 @bar() nounwind {
17 ; CHECK-NEXT: subl $12, %esp
18 ; CHECK-NEXT: movl $1, 8(%esp)
19 ; CHECK-NEXT: movl $1, (%esp)
20 ; CHECK-NEXT: calll _foo
21 ; CHECK-NEXT: movl 8(%esp), %eax
22 ; CHECK-NEXT: addl $12, %esp
24 %V = alloca %struct.MVT
26 call fastcc void @foo(ptr byval(%struct.MVT) %V) nounwind
31 declare fastcc void @foo(ptr byval(%struct.MVT))