8f69b111bc330f745339a04ea4311dc9f4be2a53
[oota-llvm.git] / test / CodeGen / X86 / small-byval-memcpy.ll
1 ; RUN: llc < %s -mtriple=i386-apple-darwin -mcpu=nehalem | FileCheck %s
2
3 define void @ccosl({ x86_fp80, x86_fp80 }* noalias sret  %agg.result, { x86_fp80, x86_fp80 }* byval align 4  %z) nounwind  {
4 entry:
5 ; CHECK: ccosl:
6 ; CHECK: movaps
7 ; CHECK: movaps
8 ; CHECK: movups
9 ; CHECK: movups
10         %iz = alloca { x86_fp80, x86_fp80 }             ; <{ x86_fp80, x86_fp80 }*> [#uses=3]
11         %tmp1 = getelementptr { x86_fp80, x86_fp80 }* %z, i32 0, i32 1          ; <x86_fp80*> [#uses=1]
12         %tmp2 = load x86_fp80* %tmp1, align 16          ; <x86_fp80> [#uses=1]
13         %tmp3 = fsub x86_fp80 0xK80000000000000000000, %tmp2            ; <x86_fp80> [#uses=1]
14         %tmp4 = getelementptr { x86_fp80, x86_fp80 }* %iz, i32 0, i32 1         ; <x86_fp80*> [#uses=1]
15         %real = getelementptr { x86_fp80, x86_fp80 }* %iz, i32 0, i32 0         ; <x86_fp80*> [#uses=1]
16         %tmp6 = getelementptr { x86_fp80, x86_fp80 }* %z, i32 0, i32 0          ; <x86_fp80*> [#uses=1]
17         %tmp7 = load x86_fp80* %tmp6, align 16          ; <x86_fp80> [#uses=1]
18         store x86_fp80 %tmp3, x86_fp80* %real, align 16
19         store x86_fp80 %tmp7, x86_fp80* %tmp4, align 16
20         call void @ccoshl( { x86_fp80, x86_fp80 }* noalias sret  %agg.result, { x86_fp80, x86_fp80 }* byval align 4  %iz ) nounwind 
21         ret void
22 }
23
24 declare void @ccoshl({ x86_fp80, x86_fp80 }* noalias sret , { x86_fp80, x86_fp80 }* byval align 4 ) nounwind