aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/shift.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll
index c6a341f454..5f7d2a59c4 100644
--- a/test/Transforms/InstCombine/shift.ll
+++ b/test/Transforms/InstCombine/shift.ll
@@ -37,3 +37,8 @@ uint %test6(uint %A) {
%B = shl uint %A, ubyte 1 ;; convert to an add instruction
ret uint %B
}
+
+int %test7(ubyte %A) {
+ %B = shr int -1, ubyte %A ;; Always equal to -1
+ ret int %B
+}