aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/shift.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll
index fd1ac0e830..0834efcaf1 100644
--- a/test/Transforms/InstCombine/shift.ll
+++ b/test/Transforms/InstCombine/shift.ll
@@ -164,3 +164,11 @@ sbyte %test23(int %A) {
%D = cast int %C to sbyte
ret sbyte %D
}
+
+sbyte %test24(sbyte %X) {
+ %Y = and sbyte %X, -5 ; ~4
+ %Z = shl sbyte %Y, ubyte 5
+ %Q = shr sbyte %Z, ubyte 5
+ ret sbyte %Q
+}
+