summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/avx-bitcast.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/avx-bitcast.ll')
-rw-r--r--test/CodeGen/X86/avx-bitcast.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/avx-bitcast.ll b/test/CodeGen/X86/avx-bitcast.ll
new file mode 100644
index 0000000..ecc71be
--- /dev/null
+++ b/test/CodeGen/X86/avx-bitcast.ll
@@ -0,0 +1,10 @@
+; RUN: llc < %s -O0 -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
+
+; CHECK: vmovsd (%
+; CHECK-NEXT: vmovd %xmm
+define i64 @bitcasti64tof64() {
+ %a = load double* undef
+ %b = bitcast double %a to i64
+ ret i64 %b
+}
+
OpenPOWER on IntegriCloud