aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/add.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll
index 80f7402af9..6359dde0bf 100644
--- a/test/Transforms/InstCombine/add.ll
+++ b/test/Transforms/InstCombine/add.ll
@@ -163,3 +163,9 @@ endif:
ret int %tmp.4
}
+int %test24(int %A) {
+ %B = add int %A, 1
+ %C = shl int %B, ubyte 1
+ %D = sub int %C, 2
+ ret int %D ;; A << 1
+}