summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/insertelement-legalize.ll
blob: 3805cbbaaaf87aa3599cfc27a0eacca57c8da881 (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: llc < %s -march=x86

; 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
}