1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/test/CodeGen/X86/vec_set-A.ll
Chris Lattner 17f68a3075 Implement a readme entry, compiling
#include <xmmintrin.h>
__m128i doload64(short x) {return _mm_set_epi16(0,0,0,0,0,0,0,1);}

into:
	movl	$1, %eax
	movd	%eax, %xmm0
	ret

instead of a constant pool load.

llvm-svn: 48063
2008-03-09 01:05:04 +00:00

7 lines
129 B
LLVM

; RUN: llvm-as < %s | llc -march=x86 | grep {movl.*\$1, %}
define <2 x i64> @test1() {
entry:
ret <2 x i64> < i64 1, i64 0 >
}