2017-08-02 08:28:10 +08:00
|
|
|
; RUN: llc < %s -mtriple=i686-- -mattr=+sse2,-avx | FileCheck %s
|
2008-12-03 13:21:24 +08:00
|
|
|
|
|
|
|
define <2 x double> @foo() nounwind {
|
|
|
|
ret <2 x double> bitcast (<2 x i64><i64 -1, i64 -1> to <2 x double>)
|
2013-07-14 14:24:09 +08:00
|
|
|
; CHECK-LABEL: foo:
|
2012-08-02 14:33:58 +08:00
|
|
|
; CHECK: pcmpeqd %xmm0, %xmm0
|
|
|
|
; CHECK-NOT: %xmm
|
|
|
|
; CHECK: ret
|
2008-12-03 13:21:24 +08:00
|
|
|
}
|
|
|
|
define <2 x double> @bar() nounwind {
|
|
|
|
ret <2 x double> bitcast (<2 x i64><i64 0, i64 0> to <2 x double>)
|
2013-07-14 14:24:09 +08:00
|
|
|
; CHECK-LABEL: bar:
|
2012-08-02 14:33:58 +08:00
|
|
|
; CHECK: xorps %xmm0, %xmm0
|
|
|
|
; CHECK-NOT: %xmm
|
|
|
|
; CHECK: ret
|
2008-12-03 13:21:24 +08:00
|
|
|
}
|