From: Brian Gaeke Date: Sat, 22 Nov 2003 04:58:25 +0000 (+0000) Subject: C Writer was dumping core on this test case. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b1ef7d6e35e7ff369a330f74f678ef5ffb13928c;p=oota-llvm.git C Writer was dumping core on this test case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10165 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CBackend/2003-11-21-ConstantShiftExpr.ll b/test/CBackend/2003-11-21-ConstantShiftExpr.ll new file mode 100644 index 00000000000..a2a145f4873 --- /dev/null +++ b/test/CBackend/2003-11-21-ConstantShiftExpr.ll @@ -0,0 +1,6 @@ +%y = weak global sbyte 0 +implementation +uint %testcase() { +entry: + ret uint shr (uint cast (sbyte* %y to uint), ubyte 4) +} diff --git a/test/CodeGen/CBackend/2003-11-21-ConstantShiftExpr.ll b/test/CodeGen/CBackend/2003-11-21-ConstantShiftExpr.ll new file mode 100644 index 00000000000..a2a145f4873 --- /dev/null +++ b/test/CodeGen/CBackend/2003-11-21-ConstantShiftExpr.ll @@ -0,0 +1,6 @@ +%y = weak global sbyte 0 +implementation +uint %testcase() { +entry: + ret uint shr (uint cast (sbyte* %y to uint), ubyte 4) +}