blob: ca04f9b8aaaa04fc612f731c85c215a252daf468 [file] [log] [blame]
Reid Spencera878bab2007-01-09 06:25:15 +00001; 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
6target datalayout = "e-p:32:32"
Reid Spencera878bab2007-01-09 06:25:15 +00007target triple = "i686-apple-darwin8"
8 %struct.Connector = type { i16, i16, i8, i8, %struct.Connector*, i8* }
9
10implementation ; Functions:
11
Reid Spencere3ff5ad2007-01-26 08:25:06 +000012define bool @prune_match_entry_2E_ce(%struct.Connector* %a, i16 %b.0.0.val) {
Reid Spencera878bab2007-01-09 06:25:15 +000013newFuncRoot:
14 br label %entry.ce
15
16cond_next.exitStub: ; preds = %entry.ce
17 ret bool true
18
19entry.return_crit_edge.exitStub: ; preds = %entry.ce
20 ret bool false
21
22entry.ce: ; preds = %newFuncRoot
23 %tmp = getelementptr %struct.Connector* %a, i32 0, i32 0 ; <i16*> [#uses=1]
24 %tmp = load i16* %tmp ; <i16> [#uses=1]
25 %tmp = icmp eq i16 %tmp, %b.0.0.val ; <bool> [#uses=1]
26 br bool %tmp, label %cond_next.exitStub, label %entry.return_crit_edge.exitStub
27}
28
29