llvm.org GIT mirror llvm / release_40 test / CodeGen / X86 / vec_return.ll
release_40

Tree @release_40 (Download .tar.gz)

vec_return.ll @release_40

3e5d5c5
bddea05
3e5d5c5
 
 
db2d524
 
 
 
3e5d5c5
 
 
2067d91
db2d524
 
bddea05
; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s

; Without any typed operations, always use the smaller xorps.
; CHECK: test
; CHECK: xorps
define <2 x double> @test() {
	ret <2 x double> zeroinitializer
}

; Prefer a constant pool load here.
; CHECK: test2
; CHECK-NOT: shuf
; CHECK: movaps {{.*}}{{CPI|__xmm@}}
define <4 x i32> @test2() nounwind  {
	ret <4 x i32> < i32 0, i32 0, i32 1, i32 0 >
}