aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/sub.ll6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/Transforms/InstCombine/sub.ll b/test/Transforms/InstCombine/sub.ll
index 15903b678c..fbec5e8a38 100644
--- a/test/Transforms/InstCombine/sub.ll
+++ b/test/Transforms/InstCombine/sub.ll
@@ -18,4 +18,8 @@ int "test2"(int %A) {
ret int %B
}
-
+int "test3"(int %A) {
+ %B = sub int 0, %A ; B = -A
+ %C = sub int 0, %B ; C = -B = A
+ ret int %C
+}