summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-11-22 04:58:25 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-11-22 04:58:25 +0000
commitb1ef7d6e35e7ff369a330f74f678ef5ffb13928c (patch)
tree55e95620c52ab353e30604c8a13c3a75da3d0cdc
parentab25f5a6c1cbbbc68c46a519148650b5a1095000 (diff)
downloadexternal_llvm-b1ef7d6e35e7ff369a330f74f678ef5ffb13928c.zip
external_llvm-b1ef7d6e35e7ff369a330f74f678ef5ffb13928c.tar.gz
external_llvm-b1ef7d6e35e7ff369a330f74f678ef5ffb13928c.tar.bz2
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
-rw-r--r--test/CBackend/2003-11-21-ConstantShiftExpr.ll6
-rw-r--r--test/CodeGen/CBackend/2003-11-21-ConstantShiftExpr.ll6
2 files changed, 12 insertions, 0 deletions
diff --git a/test/CBackend/2003-11-21-ConstantShiftExpr.ll b/test/CBackend/2003-11-21-ConstantShiftExpr.ll
new file mode 100644
index 0000000..a2a145f
--- /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 0000000..a2a145f
--- /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)
+}