summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/vec_return.ll
blob: 2cf5dc6caa77b770ecf7edc860429c2d23218715 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; 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
define <4 x i32> @test2() nounwind  {
	ret <4 x i32> < i32 0, i32 0, i32 1, i32 0 >
}