From b1ef7d6e35e7ff369a330f74f678ef5ffb13928c Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Sat, 22 Nov 2003 04:58:25 +0000 Subject: [PATCH] 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 --- test/CBackend/2003-11-21-ConstantShiftExpr.ll | 6 ++++++ test/CodeGen/CBackend/2003-11-21-ConstantShiftExpr.ll | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 test/CBackend/2003-11-21-ConstantShiftExpr.ll create mode 100644 test/CodeGen/CBackend/2003-11-21-ConstantShiftExpr.ll 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) +} -- 2.34.1