2012-01-10 23:09:53 +00:00
|
|
|
; RUN: llc -mtriple=x86_64-apple-macosx10 -mattr=avx -show-mc-encoding < %s | FileCheck %s
|
|
|
|
|
|
|
|
define i64 @t1(double %d_ivar) nounwind uwtable ssp {
|
|
|
|
entry:
|
|
|
|
; CHECK: t1
|
|
|
|
%0 = bitcast double %d_ivar to i64
|
2013-10-08 05:53:50 +00:00
|
|
|
; CHECK: vmovq
|
2012-01-10 23:09:53 +00:00
|
|
|
; CHECK: encoding: [0xc4,0xe1,0xf9,0x7e,0xc0]
|
|
|
|
ret i64 %0
|
|
|
|
}
|
|
|
|
|
|
|
|
define double @t2(i64 %d_ivar) nounwind uwtable ssp {
|
|
|
|
entry:
|
|
|
|
; CHECK: t2
|
|
|
|
%0 = bitcast i64 %d_ivar to double
|
2013-10-08 05:53:50 +00:00
|
|
|
; CHECK: vmovq
|
2012-01-10 23:09:53 +00:00
|
|
|
; CHECK: encoding: [0xc4,0xe1,0xf9,0x6e,0xc7]
|
|
|
|
ret double %0
|
|
|
|
}
|