[X86] Don't pass a scale value of 0 to scatter/gather intrinsics. This causes the...
[oota-llvm.git] / test / CodeGen / X86 / insertelement-legalize.ll
1 ; RUN: llc < %s -march=x86
2
3 ; Test to check that we properly legalize an insert vector element
4 define void @test(<2 x i64> %val, <2 x i64>* %dst, i64 %x) nounwind {
5 entry:
6         %tmp4 = insertelement <2 x i64> %val, i64 %x, i32 0             ; <<2 x i64>> [#uses=1]
7         %add = add <2 x i64> %tmp4, %val                ; <<2 x i64>> [#uses=1]
8         store <2 x i64> %add, <2 x i64>* %dst
9         ret void
10 }