mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 23:42:52 +01:00
44d438eb55
FIXME: Could +avx be checked here too? llvm-svn: 161156
17 lines
429 B
LLVM
17 lines
429 B
LLVM
; RUN: llc < %s -march=x86 -mattr=+sse2,-avx | FileCheck %s
|
|
|
|
define <2 x double> @foo() nounwind {
|
|
ret <2 x double> bitcast (<2 x i64><i64 -1, i64 -1> to <2 x double>)
|
|
; CHECK: foo:
|
|
; CHECK: pcmpeqd %xmm0, %xmm0
|
|
; CHECK-NOT: %xmm
|
|
; CHECK: ret
|
|
}
|
|
define <2 x double> @bar() nounwind {
|
|
ret <2 x double> bitcast (<2 x i64><i64 0, i64 0> to <2 x double>)
|
|
; CHECK: bar:
|
|
; CHECK: xorps %xmm0, %xmm0
|
|
; CHECK-NOT: %xmm
|
|
; CHECK: ret
|
|
}
|