2012-08-02 00:56:42 +00:00
|
|
|
; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s
|
2008-12-03 05:21:24 +00:00
|
|
|
|
|
|
|
define <2 x double> @foo() nounwind {
|
|
|
|
ret <2 x double> bitcast (<2 x i64><i64 -1, i64 -1> to <2 x double>)
|
2012-08-02 00:56:42 +00:00
|
|
|
; CHECK: foo:
|
|
|
|
; CHECK: pcmpeqd %xmm{{[0-9]+}}, %xmm{{[0-9]+}}
|
|
|
|
; CHECK-NEXT: ret
|
2008-12-03 05:21:24 +00:00
|
|
|
}
|
|
|
|
define <2 x double> @bar() nounwind {
|
|
|
|
ret <2 x double> bitcast (<2 x i64><i64 0, i64 0> to <2 x double>)
|
2012-08-02 00:56:42 +00:00
|
|
|
; CHECK: bar:
|
|
|
|
; CHECK: xorps %xmm{{[0-9]+}}, %xmm{{[0-9]+}}
|
|
|
|
; CHECK-NEXT: ret
|
2008-12-03 05:21:24 +00:00
|
|
|
}
|