aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/shift.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll
index dde01f5658..c6a341f454 100644
--- a/test/Transforms/InstCombine/shift.ll
+++ b/test/Transforms/InstCombine/shift.ll
@@ -33,3 +33,7 @@ uint "test5"(uint %A) {
ret uint %B
}
+uint %test6(uint %A) {
+ %B = shl uint %A, ubyte 1 ;; convert to an add instruction
+ ret uint %B
+}