Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -march=x86 -mcpu=yonah | grep "(%esp,%eax,4)" | count 4
      2 
      3 ; Inserts and extracts with variable indices must be lowered
      4 ; to memory accesses.
      5 
      6 define i32 @t0(i32 inreg %t7, <4 x i32> inreg %t8) nounwind {
      7   %t13 = insertelement <4 x i32> %t8, i32 76, i32 %t7
      8   %t9 = extractelement <4 x i32> %t13, i32 0
      9   ret i32 %t9
     10 }
     11 define i32 @t1(i32 inreg %t7, <4 x i32> inreg %t8) nounwind {
     12   %t13 = insertelement <4 x i32> %t8, i32 76, i32 0
     13   %t9 = extractelement <4 x i32> %t13, i32 %t7
     14   ret i32 %t9
     15 }
     16 define <4 x i32> @t2(i32 inreg %t7, <4 x i32> inreg %t8) nounwind {
     17   %t9 = extractelement <4 x i32> %t8, i32 %t7
     18   %t13 = insertelement <4 x i32> %t8, i32 %t9, i32 0
     19   ret <4 x i32> %t13
     20 }
     21 define <4 x i32> @t3(i32 inreg %t7, <4 x i32> inreg %t8) nounwind {
     22   %t9 = extractelement <4 x i32> %t8, i32 0
     23   %t13 = insertelement <4 x i32> %t8, i32 %t9, i32 %t7
     24   ret <4 x i32> %t13
     25 }
     26