e6760e30d1f080f2989965de1bb33788d56b176f
[oota-llvm.git] / test / CodeGen / CBackend / 2007-01-08-ParamAttr-ICmp.ll
1 ; RUN: llvm-as < %s | llc -march=c | \
2 ; RUN:   grep 'return ((((ltmp_2_2 == (signed int)ltmp_1_2)) ?  (1) : (0)))'
3 ; For PR1099
4 ; XFAIL: *
5
6 target datalayout = "e-p:32:32"
7 target endian = little
8 target pointersize = 32
9 target triple = "i686-apple-darwin8"
10         %struct.Connector = type { i16, i16, i8, i8, %struct.Connector*, i8* }
11
12 implementation   ; Functions:
13
14 define bool %prune_match_entry_2E_ce(%struct.Connector* %a, i16 %b.0.0.val) {
15 newFuncRoot:
16         br label %entry.ce
17
18 cond_next.exitStub:             ; preds = %entry.ce
19         ret bool true
20
21 entry.return_crit_edge.exitStub:                ; preds = %entry.ce
22         ret bool false
23
24 entry.ce:               ; preds = %newFuncRoot
25         %tmp = getelementptr %struct.Connector* %a, i32 0, i32 0                ; <i16*> [#uses=1]
26         %tmp = load i16* %tmp           ; <i16> [#uses=1]
27         %tmp = icmp eq i16 %tmp, %b.0.0.val             ; <bool> [#uses=1]
28         br bool %tmp, label %cond_next.exitStub, label %entry.return_crit_edge.exitStub
29 }
30
31