aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/CBackend/2003-11-21-ConstantShiftExpr.ll6
1 files changed, 6 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..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)
+}