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) +}