blob: c29cb5d36c33a5d65a29da0e191d48400344b765 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
; RUN: llc < %s -mtriple=x86_64-apple-darwin -march=x86 -mcpu=corei7 -mattr=avx | FileCheck %s
@z = common global <4 x float> zeroinitializer, align 16
define void @zero() nounwind ssp {
entry:
; CHECK: vxorps
; CHECK: vmovaps
store <4 x float> zeroinitializer, <4 x float>* @z, align 16
ret void
}
define void @fpext() nounwind uwtable {
entry:
%f = alloca float, align 4
%d = alloca double, align 8
%tmp = load float* %f, align 4
; CHECK: vcvtss2sd
%conv = fpext float %tmp to double
store double %conv, double* %d, align 8
ret void
}
|