aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/avx-bitcast.ll
blob: e34c20fcbd730d71d2d3512996518f28cda4683f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llc < %s -O0 -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s

define i64 @bitcasti64tof64() {
; 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
}