2019-08-26 21:53:29 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
2015-04-04 01:09:37 +08:00
|
|
|
; RUN: llc < %s -O0 -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s
|
2011-09-09 05:52:33 +08:00
|
|
|
|
|
|
|
define i64 @bitcasti64tof64() {
|
2015-04-04 01:09:37 +08:00
|
|
|
; CHECK-LABEL: bitcasti64tof64:
|
2017-12-05 01:18:51 +08:00
|
|
|
; CHECK: # %bb.0:
|
2019-08-26 21:53:29 +08:00
|
|
|
; CHECK-NEXT: # implicit-def: $rax
|
|
|
|
; CHECK-NEXT: vmovsd {{.*#+}} xmm0 = mem[0],zero
|
2015-04-04 01:09:37 +08:00
|
|
|
; CHECK-NEXT: vmovq %xmm0, %rax
|
|
|
|
; CHECK-NEXT: retq
|
2015-02-28 05:17:42 +08:00
|
|
|
%a = load double, double* undef
|
2011-09-09 05:52:33 +08:00
|
|
|
%b = bitcast double %a to i64
|
|
|
|
ret i64 %b
|
|
|
|
}
|
|
|
|
|