Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -march=x86 -mattr=+sse,-sse2 -mtriple=i386-apple-darwin | FileCheck %s -check-prefix=sse
      2 ; RUN: llc < %s -march=x86 -mattr=+sse2 -mtriple=i386-apple-darwin | FileCheck %s -check-prefix=sse2
      3 
      4 ; sse:  t1:
      5 ; sse2: t1:
      6 define <4 x float> @t1(<4 x float> %a, <4 x float> %b) nounwind  {
      7 ; sse: shufps
      8 ; sse2: pshufd
      9 ; sse2-NEXT: ret
     10         %tmp1 = shufflevector <4 x float> %b, <4 x float> undef, <4 x i32> zeroinitializer
     11         ret <4 x float> %tmp1
     12 }
     13 
     14 ; sse:  t2:
     15 ; sse2: t2:
     16 define <4 x float> @t2(<4 x float> %A, <4 x float> %B) nounwind {
     17 ; sse: shufps
     18 ; sse2: pshufd
     19 ; sse2-NEXT: ret
     20 	%tmp = shufflevector <4 x float> %A, <4 x float> %B, <4 x i32> < i32 3, i32 3, i32 3, i32 3 >
     21 	ret <4 x float> %tmp
     22 }
     23 
     24 ; sse:  t3:
     25 ; sse2: t3:
     26 define <4 x float> @t3(<4 x float> %A, <4 x float> %B) nounwind {
     27 ; sse: shufps
     28 ; sse2: pshufd
     29 ; sse2-NEXT: ret
     30 	%tmp = shufflevector <4 x float> %A, <4 x float> %B, <4 x i32> < i32 4, i32 4, i32 4, i32 4 >
     31 	ret <4 x float> %tmp
     32 }
     33 
     34 ; sse:  t4:
     35 ; sse2: t4:
     36 define <4 x float> @t4(<4 x float> %A, <4 x float> %B) nounwind {
     37 
     38 ; sse: shufps
     39 ; sse2: pshufd
     40 ; sse2-NEXT: ret
     41 	%tmp = shufflevector <4 x float> %A, <4 x float> %B, <4 x i32> < i32 1, i32 3, i32 2, i32 0 >
     42 	ret <4 x float> %tmp
     43 }
     44