From a878bab41855959faa3742fe0813279480e08130 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Tue, 9 Jan 2007 06:25:15 +0000 Subject: [PATCH] Test case for PR1099. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33033 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../CBackend/2007-01-08-ParamAttr-ICmp.ll | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll diff --git a/test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll b/test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll new file mode 100644 index 00000000000..e6760e30d1f --- /dev/null +++ b/test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll @@ -0,0 +1,31 @@ +; RUN: llvm-as < %s | llc -march=c | \ +; RUN: grep 'return ((((ltmp_2_2 == (signed int)ltmp_1_2)) ? (1) : (0)))' +; For PR1099 +; XFAIL: * + +target datalayout = "e-p:32:32" +target endian = little +target pointersize = 32 +target triple = "i686-apple-darwin8" + %struct.Connector = type { i16, i16, i8, i8, %struct.Connector*, i8* } + +implementation ; Functions: + +define bool %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 + +entry.return_crit_edge.exitStub: ; preds = %entry.ce + ret bool false + +entry.ce: ; preds = %newFuncRoot + %tmp = getelementptr %struct.Connector* %a, i32 0, i32 0 ; [#uses=1] + %tmp = load i16* %tmp ; [#uses=1] + %tmp = icmp eq i16 %tmp, %b.0.0.val ; [#uses=1] + br bool %tmp, label %cond_next.exitStub, label %entry.return_crit_edge.exitStub +} + +