diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-02-15 21:01:58 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-02-15 21:01:58 +0000 |
commit | 15005154069d43927e474e78d6bb5960112b9052 (patch) | |
tree | 8ea20fd222a5f9bf5eccb4149756305a7d5ce891 /test/CodeGen/CBackend | |
parent | f1f007d2ffeb5534070208938aaa7f3065d70f61 (diff) | |
download | llvm-15005154069d43927e474e78d6bb5960112b9052.tar.gz llvm-15005154069d43927e474e78d6bb5960112b9052.tar.bz2 llvm-15005154069d43927e474e78d6bb5960112b9052.tar.xz |
Update this test to compile properly and check against the correct
string generated by the CBE. This is no longer an XFAIL.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34327 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/CBackend')
-rw-r--r-- | test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll b/test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll index ca04f9b8aa..1dacc4b8ba 100644 --- a/test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll +++ b/test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll @@ -1,7 +1,6 @@ -; RUN: llvm-as < %s | llc -march=c | \ -; RUN: grep 'return ((((ltmp_2_2 == (signed int)ltmp_1_2)) ? (1) : (0)))' ; For PR1099 -; XFAIL: * +; RUN: llvm-as < %s | llc -march=c | \ +; RUN: grep 'return ((((ltmp_2_2 == ltmp_1_2)) ? (1) : (0)))' target datalayout = "e-p:32:32" target triple = "i686-apple-darwin8" @@ -9,21 +8,21 @@ target triple = "i686-apple-darwin8" implementation ; Functions: -define bool @prune_match_entry_2E_ce(%struct.Connector* %a, i16 %b.0.0.val) { +define i1 @prune_match_entry_2E_ce(%struct.Connector* %a, i16 %b.0.0.val) { newFuncRoot: br label %entry.ce cond_next.exitStub: ; preds = %entry.ce - ret bool true + ret i1 true entry.return_crit_edge.exitStub: ; preds = %entry.ce - ret bool false + ret i1 false entry.ce: ; preds = %newFuncRoot - %tmp = getelementptr %struct.Connector* %a, i32 0, i32 0 ; <i16*> [#uses=1] - %tmp = load i16* %tmp ; <i16> [#uses=1] - %tmp = icmp eq i16 %tmp, %b.0.0.val ; <bool> [#uses=1] - br bool %tmp, label %cond_next.exitStub, label %entry.return_crit_edge.exitStub + %tmp1 = getelementptr %struct.Connector* %a, i32 0, i32 0 ; <i16*> [#uses=1] + %tmp2 = load i16* %tmp1 ; <i16> [#uses=1] + %tmp3 = icmp eq i16 %tmp2, %b.0.0.val ; <i1> [#uses=1] + br i1 %tmp3, label %cond_next.exitStub, label %entry.return_crit_edge.exitStub } |