Add a few patterns to match allzeros without having to use the fp unit.
[oota-llvm.git] / test / CodeGen / X86 / avx-cmp-fp.ll
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
2
3 declare void @scale() nounwind uwtable
4
5 ; CHECK: vucomisd
6 define void @render() nounwind uwtable {
7 entry:
8   br i1 undef, label %for.cond5, label %for.end52
9
10 for.cond5:
11   %or.cond = and i1 undef, false
12   br i1 %or.cond, label %for.body33, label %for.cond5
13
14 for.cond30:
15   br i1 false, label %for.body33, label %for.cond5
16
17 for.body33:
18   %tobool = fcmp une double undef, 0.000000e+00
19   br i1 %tobool, label %if.then, label %for.cond30
20
21 if.then:
22   call void @scale()
23   br label %for.cond30
24
25 for.end52:
26   ret void
27 }
28