llvm.org GIT mirror llvm / release_26 test / CodeGen / X86 / insertelement-legalize.ll
release_26

Tree @release_26 (Download .tar.gz)

insertelement-legalize.ll @release_26raw · history · blame

; RUN: llvm-as < %s | llc -march=x86 -disable-mmx

; Test to check that we properly legalize an insert vector element
define void @test(<2 x i64> %val, <2 x i64>* %dst, i64 %x) nounwind {
entry:
	%tmp4 = insertelement <2 x i64> %val, i64 %x, i32 0		; <<2 x i64>> [#uses=1]
	%add = add <2 x i64> %tmp4, %val		; <<2 x i64>> [#uses=1]
	store <2 x i64> %add, <2 x i64>* %dst
	ret void
}