aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/CBackend/2003-11-21-ConstantShiftExpr.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/CBackend/2003-11-21-ConstantShiftExpr.ll')
-rw-r--r--test/CodeGen/CBackend/2003-11-21-ConstantShiftExpr.ll12
1 files changed, 12 insertions, 0 deletions
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..3866200
--- /dev/null
+++ b/test/CodeGen/CBackend/2003-11-21-ConstantShiftExpr.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=c
+
+%y = weak global sbyte 0
+implementation
+uint %testcaseshr() {
+entry:
+ ret uint shr (uint cast (sbyte* %y to uint), ubyte 4)
+}
+uint %testcaseshl() {
+entry:
+ ret uint shl (uint cast (sbyte* %y to uint), ubyte 4)
+}