C Writer was dumping core on this test case.
authorBrian Gaeke <gaeke@uiuc.edu>
Sat, 22 Nov 2003 04:58:25 +0000 (04:58 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Sat, 22 Nov 2003 04:58:25 +0000 (04:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10165 91177308-0d34-0410-b5e6-96231b3b80d8

test/CBackend/2003-11-21-ConstantShiftExpr.ll [new file with mode: 0644]
test/CodeGen/CBackend/2003-11-21-ConstantShiftExpr.ll [new file with mode: 0644]

diff --git a/test/CBackend/2003-11-21-ConstantShiftExpr.ll b/test/CBackend/2003-11-21-ConstantShiftExpr.ll
new file mode 100644 (file)
index 0000000..a2a145f
--- /dev/null
@@ -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 (file)
index 0000000..a2a145f
--- /dev/null
@@ -0,0 +1,6 @@
+%y = weak global sbyte 0
+implementation
+uint %testcase() {
+entry:
+       ret uint shr (uint cast (sbyte* %y to uint), ubyte 4)
+}