2011-11-07 19:15:58 +00:00
|
|
|
; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s
|
2006-04-17 20:32:27 +00:00
|
|
|
|
2011-11-07 19:15:58 +00:00
|
|
|
; Without any typed operations, always use the smaller xorps.
|
|
|
|
; CHECK: test
|
|
|
|
; CHECK: xorps
|
2007-12-12 06:45:40 +00:00
|
|
|
define <2 x double> @test() {
|
|
|
|
ret <2 x double> zeroinitializer
|
|
|
|
}
|
|
|
|
|
2011-11-07 19:15:58 +00:00
|
|
|
; Prefer a constant pool load here.
|
|
|
|
; CHECK: test2
|
|
|
|
; CHECK-NOT: shuf
|
2011-11-07 20:47:23 +00:00
|
|
|
; CHECK: movaps {{.*}}CPI
|
2007-12-12 06:45:40 +00:00
|
|
|
define <4 x i32> @test2() nounwind {
|
|
|
|
ret <4 x i32> < i32 0, i32 0, i32 1, i32 0 >
|
2006-04-17 20:32:27 +00:00
|
|
|
}
|