1 ; RUN: llc < %s -mattr=+sse2 -mtriple=i686-apple-darwin | FileCheck %s -check-prefix=SSE2
2 ; RUN: llc < %s -mattr=+sse,-sse2 -mtriple=i686-apple-darwin | FileCheck %s -check-prefix=SSE1
3 ; RUN: llc < %s -mattr=-sse -mtriple=i686-apple-darwin | FileCheck %s -check-prefix=NOSSE
5 %struct.ParmT = type { [25 x i8], i8, i8* }
6 @.str12 = internal constant [25 x i8] c"image\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00" ; <[25 x i8]*> [#uses=1]
8 define void @t1(i32 %argc, i8** %argv) nounwind {
11 ; SSE2: movaps _.str12, %xmm0
18 ; SSE1: movaps _.str12, %xmm0
31 ; NOSSE: movl $1734438249
32 %parms.i = alloca [13 x %struct.ParmT] ; <[13 x %struct.ParmT]*> [#uses=1]
33 %parms1.i = getelementptr [13 x %struct.ParmT]* %parms.i, i32 0, i32 0, i32 0, i32 0 ; <i8*> [#uses=1]
34 call void @llvm.memcpy.i32( i8* %parms1.i, i8* getelementptr ([25 x i8]* @.str12, i32 0, i32 0), i32 25, i32 1 ) nounwind
39 %struct.s0 = type { [2 x double] }
41 define void @t2(%struct.s0* nocapture %a, %struct.s0* nocapture %b) nounwind ssp {
44 ; SSE2: movaps (%eax), %xmm0
45 ; SSE2: movaps %xmm0, (%eax)
48 ; SSE1: movaps (%eax), %xmm0
49 ; SSE1: movaps %xmm0, (%eax)
62 %tmp2 = bitcast %struct.s0* %a to i8* ; <i8*> [#uses=1]
63 %tmp3 = bitcast %struct.s0* %b to i8* ; <i8*> [#uses=1]
64 tail call void @llvm.memcpy.i32(i8* %tmp2, i8* %tmp3, i32 16, i32 16)
68 define void @t3(%struct.s0* nocapture %a, %struct.s0* nocapture %b) nounwind ssp {
71 ; SSE2: movsd (%eax), %xmm0
72 ; SSE2: movsd 8(%eax), %xmm1
73 ; SSE2: movsd %xmm1, 8(%eax)
74 ; SSE2: movsd %xmm0, (%eax)
99 %tmp2 = bitcast %struct.s0* %a to i8* ; <i8*> [#uses=1]
100 %tmp3 = bitcast %struct.s0* %b to i8* ; <i8*> [#uses=1]
101 tail call void @llvm.memcpy.i32(i8* %tmp2, i8* %tmp3, i32 16, i32 8)
105 declare void @llvm.memcpy.i32(i8* nocapture, i8* nocapture, i32, i32) nounwind