Optimized FCMP_OEQ and FCMP_UNE for x86.
[oota-llvm.git] / test / CodeGen / X86 / remat-mov0.ll
1 ; RUN: llvm-as < %s | llc -march=x86 | grep xor | count 3
2
3         %struct.FILE = type { i8*, i32, i32, i16, i16, %struct.__sbuf, i32, i8*, i32 (i8*)*, i32 (i8*, i8*, i32)*, i64 (i8*, i64, i32)*, i32 (i8*, i8*, i32)*, %struct.__sbuf, %struct.__sFILEX*, i32, [3 x i8], [1 x i8], %struct.__sbuf, i32, i64 }
4         %struct.ImgT = type { i8, i8*, i8*, %struct.FILE*, i32, i32, i32, i32, i8*, double*, float*, float*, float*, i32*, double, double, i32*, double*, i32*, i32* }
5         %struct._CompT = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, i8, %struct._PixT*, %struct._CompT*, i8, %struct._CompT* }
6         %struct._PixT = type { i32, i32, %struct._PixT* }
7         %struct.__sFILEX = type opaque
8         %struct.__sbuf = type { i8*, i32 }
9
10 declare fastcc void @MergeComponents(%struct._CompT*, %struct._CompT*, %struct._CompT*, %struct._CompT**, %struct.ImgT*) nounwind 
11
12 define fastcc void @MergeToLeft(%struct._CompT* %comp, %struct._CompT** %head, %struct.ImgT* %img) nounwind  {
13 entry:
14         br label %bb208
15
16 bb105:          ; preds = %bb200
17         br i1 false, label %bb197, label %bb149
18
19 bb149:          ; preds = %bb105
20         %tmp151 = getelementptr %struct._CompT* null, i32 0, i32 0              ; <i32*> [#uses=1]
21         br i1 false, label %bb184, label %bb193
22
23 bb184:          ; preds = %bb149
24         tail call fastcc void @MergeComponents( %struct._CompT* %comp, %struct._CompT* null, %struct._CompT* null, %struct._CompT** %head, %struct.ImgT* %img ) nounwind 
25         tail call fastcc void @MergeToLeft( %struct._CompT* %comp, %struct._CompT** %head, %struct.ImgT* %img ) nounwind 
26         br label %bb193
27
28 bb193:          ; preds = %bb184, %bb149
29         %tmp196 = load i32* %tmp151, align 4            ; <i32> [#uses=1]
30         br label %bb197
31
32 bb197:          ; preds = %bb193, %bb105
33         %last_comp.0 = phi i32 [ %tmp196, %bb193 ], [ 0, %bb105 ]               ; <i32> [#uses=0]
34         %indvar.next = add i32 %indvar, 1               ; <i32> [#uses=1]
35         br label %bb200
36
37 bb200:          ; preds = %bb208, %bb197
38         %indvar = phi i32 [ 0, %bb208 ], [ %indvar.next, %bb197 ]               ; <i32> [#uses=2]
39         %xm.0 = sub i32 %indvar, 0              ; <i32> [#uses=1]
40         %tmp202 = icmp slt i32 %xm.0, 1         ; <i1> [#uses=1]
41         br i1 %tmp202, label %bb105, label %bb208
42
43 bb208:          ; preds = %bb200, %entry
44         br label %bb200
45 }