Don't emit a bit test if there is only one case the test can yield false. A simple...
[oota-llvm.git] / test / CodeGen / X86 / avx-128.ll
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -march=x86 -mcpu=corei7 -mattr=avx | FileCheck %s
2
3 @z = common global <4 x float> zeroinitializer, align 16
4
5 define void @zero() nounwind ssp {
6 entry:
7   ; CHECK: vxorps
8   ; CHECK: vmovaps
9   store <4 x float> zeroinitializer, <4 x float>* @z, align 16
10   ret void
11 }
12
13 define void @fpext() nounwind uwtable {
14 entry:
15   %f = alloca float, align 4
16   %d = alloca double, align 8
17   %tmp = load float* %f, align 4
18   ; CHECK: vcvtss2sd
19   %conv = fpext float %tmp to double
20   store double %conv, double* %d, align 8
21   ret void
22 }