Update this test to match the (corrected) output from the CBE.
[oota-llvm.git] / test / CodeGen / CBackend / 2007-01-08-ParamAttr-ICmp.ll
1 ; For PR1099
2 ; RUN: llvm-as < %s | llc -march=c | \
3 ; RUN:   grep {return ((((((unsigned short )llvm_cbe_tmp2&65535U) == ((unsigned
4 short )llvm_cbe_b_0_0_val&65535U))) ? (1) : (0)))}
5
6 target datalayout = "e-p:32:32"
7 target triple = "i686-apple-darwin8"
8         %struct.Connector = type { i16, i16, i8, i8, %struct.Connector*, i8* }
9
10
11 define i1 @prune_match_entry_2E_ce(%struct.Connector* %a, i16 %b.0.0.val) {
12 newFuncRoot:
13         br label %entry.ce
14
15 cond_next.exitStub:             ; preds = %entry.ce
16         ret i1 true
17
18 entry.return_crit_edge.exitStub:                ; preds = %entry.ce
19         ret i1 false
20
21 entry.ce:               ; preds = %newFuncRoot
22         %tmp1 = getelementptr %struct.Connector* %a, i32 0, i32 0                ; <i16*> [#uses=1]
23         %tmp2 = load i16* %tmp1           ; <i16> [#uses=1]
24         %tmp3 = icmp eq i16 %tmp2, %b.0.0.val             ; <i1> [#uses=1]
25         br i1 %tmp3, label %cond_next.exitStub, label %entry.return_crit_edge.exitStub
26 }
27
28