Home | History | Annotate | Download | only in X86
      1 ; REQUIRES: asserts
      2 ; RUN: llc < %s -march=x86 -mattr=+sse2 -mtriple=i386-apple-darwin -stats 2>&1 | grep asm-printer | grep 14
      3 
      4 define i32 @t(i8* %ref_frame_ptr, i32 %ref_frame_stride, i32 %idxX, i32 %idxY) nounwind  {
      5 entry:
      6 	%tmp7 = mul i32 %idxY, %ref_frame_stride		; <i32> [#uses=2]
      7 	%tmp9 = add i32 %tmp7, %idxX		; <i32> [#uses=1]
      8 	%tmp11 = getelementptr i8* %ref_frame_ptr, i32 %tmp9		; <i8*> [#uses=1]
      9 	%tmp1112 = bitcast i8* %tmp11 to i32*		; <i32*> [#uses=1]
     10 	%tmp13 = load i32* %tmp1112, align 4		; <i32> [#uses=1]
     11 	%tmp18 = add i32 %idxX, 4		; <i32> [#uses=1]
     12 	%tmp20.sum = add i32 %tmp18, %tmp7		; <i32> [#uses=1]
     13 	%tmp21 = getelementptr i8* %ref_frame_ptr, i32 %tmp20.sum		; <i8*> [#uses=1]
     14 	%tmp2122 = bitcast i8* %tmp21 to i16*		; <i16*> [#uses=1]
     15 	%tmp23 = load i16* %tmp2122, align 2		; <i16> [#uses=1]
     16 	%tmp2425 = zext i16 %tmp23 to i64		; <i64> [#uses=1]
     17 	%tmp26 = shl i64 %tmp2425, 32		; <i64> [#uses=1]
     18 	%tmp2728 = zext i32 %tmp13 to i64		; <i64> [#uses=1]
     19 	%tmp29 = or i64 %tmp26, %tmp2728		; <i64> [#uses=1]
     20 	%tmp3454 = bitcast i64 %tmp29 to double		; <double> [#uses=1]
     21 	%tmp35 = insertelement <2 x double> undef, double %tmp3454, i32 0		; <<2 x double>> [#uses=1]
     22 	%tmp36 = insertelement <2 x double> %tmp35, double 0.000000e+00, i32 1		; <<2 x double>> [#uses=1]
     23 	%tmp42 = bitcast <2 x double> %tmp36 to <8 x i16>		; <<8 x i16>> [#uses=1]
     24 	%tmp43 = shufflevector <8 x i16> %tmp42, <8 x i16> undef, <8 x i32> < i32 0, i32 1, i32 1, i32 2, i32 4, i32 5, i32 6, i32 7 >		; <<8 x i16>> [#uses=1]
     25 	%tmp47 = bitcast <8 x i16> %tmp43 to <4 x i32>		; <<4 x i32>> [#uses=1]
     26 	%tmp48 = extractelement <4 x i32> %tmp47, i32 0		; <i32> [#uses=1]
     27 	ret i32 %tmp48
     28 }
     29