blob: 8f69b111bc330f745339a04ea4311dc9f4be2a53 [file] [log] [blame]
Evan Cheng461f1fc2011-01-06 07:58:36 +00001; RUN: llc < %s -mtriple=i386-apple-darwin -mcpu=nehalem | FileCheck %s
Dan Gohman707e0182008-04-12 04:36:06 +00002
3define void @ccosl({ x86_fp80, x86_fp80 }* noalias sret %agg.result, { x86_fp80, x86_fp80 }* byval align 4 %z) nounwind {
4entry:
Evan Cheng461f1fc2011-01-06 07:58:36 +00005; CHECK: ccosl:
6; CHECK: movaps
7; CHECK: movaps
8; CHECK: movups
9; CHECK: movups
Dan Gohman707e0182008-04-12 04:36:06 +000010 %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]
Dan Gohmanae3a0be2009-06-04 22:49:04 +000013 %tmp3 = fsub x86_fp80 0xK80000000000000000000, %tmp2 ; <x86_fp80> [#uses=1]
Dan Gohman707e0182008-04-12 04:36:06 +000014 %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
24declare void @ccoshl({ x86_fp80, x86_fp80 }* noalias sret , { x86_fp80, x86_fp80 }* byval align 4 ) nounwind