; 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
; CHECK-NEXT: ret
define <4 x i32> @test2() nounwind  {
	ret <4 x i32> < i32 0, i32 0, i32 1, i32 0 >
}

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

Fix test for Windows as well.
Fix test for Windows as well.

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@144038 91177308-0d34-0410-b5e6-96231b3b80d8
