[SDAG] Now that we have a way to communicate the exact bit on sdiv use it to simplify...
[oota-llvm.git] / test / CodeGen / X86 / avx-bitcast.ll
index ecc71be7c0dc22847beebe5523f6c296a81e5b97..e34c20fcbd730d71d2d3512996518f28cda4683f 100644 (file)
@@ -1,9 +1,12 @@
-; RUN: llc < %s -O0 -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
+; RUN: llc < %s -O0 -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s
 
-; CHECK: vmovsd (%
-; CHECK-NEXT: vmovd %xmm
 define i64 @bitcasti64tof64() {
-  %a = load double* undef
+; CHECK-LABEL: bitcasti64tof64:
+; CHECK:       # BB#0:
+; CHECK:         vmovsd {{.*#+}} xmm0 = mem[0],zero
+; CHECK-NEXT:    vmovq %xmm0, %rax
+; CHECK-NEXT:    retq
+  %a = load double, double* undef
   %b = bitcast double %a to i64
   ret i64 %b
 }