summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/vec_set-B.ll
blob: e4e5667d2f62de275776a26f2a3e60ca7b67d772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
; RUN: llvm-as < %s | llc -march=x86 | not grep movaps
; RUN: llvm-as < %s | llc -march=x86 | grep esp | count 2

; These should both generate something like this:
;_test3:
;	movl	$1234567, %eax
;	andl	4(%esp), %eax
;	movd	%eax, %xmm0
;	ret

define <2 x i64> @test3(i64 %arg) {
entry:
        %A = and i64 %arg, 1234567
        %B = insertelement <2 x i64> zeroinitializer, i64 %A, i32 0
        ret <2 x i64> %B
}

define <2 x i64> @test2(i64 %arg) {
entry:
	%A = and i64 %arg, 1234567
	%B = insertelement <2 x i64> undef, i64 %A, i32 0
	ret <2 x i64> %B
}