aboutsummaryrefslogtreecommitdiff
path: root/llvm/test
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-26 22:14:22 +0000
committerDan Gohman <gohman@apple.com>2009-10-26 22:14:22 +0000
commit672927f3934b51ade873e02d6ba1fc6e90c74548 (patch)
tree0231cbfdb0f769f3a0f1bd4056bb688bfb6484a2 /llvm/test
parent12e678d550258829920d0996a50bbc7f0e298e9f (diff)
downloadllvm-672927f3934b51ade873e02d6ba1fc6e90c74548.zip
llvm-672927f3934b51ade873e02d6ba1fc6e90c74548.tar.gz
llvm-672927f3934b51ade873e02d6ba1fc6e90c74548.tar.bz2
Code that checks WillNotOverflowSignedAdd before creating an Add
can safely use the NSW bit on the Add. llvm-svn: 85164
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Transforms/InstCombine/add-shrink.ll2
-rw-r--r--llvm/test/Transforms/InstCombine/add-sitofp.ll2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/InstCombine/add-shrink.ll b/llvm/test/Transforms/InstCombine/add-shrink.ll
index 52b8e32..cc57478 100644
--- a/llvm/test/Transforms/InstCombine/add-shrink.ll
+++ b/llvm/test/Transforms/InstCombine/add-shrink.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {add i32}
+; RUN: opt < %s -instcombine -S | grep {add nsw i32}
; RUN: opt < %s -instcombine -S | grep sext | count 1
; Should only have one sext and the add should be i32 instead of i64.
diff --git a/llvm/test/Transforms/InstCombine/add-sitofp.ll b/llvm/test/Transforms/InstCombine/add-sitofp.ll
index 24319df..98a8cb4 100644
--- a/llvm/test/Transforms/InstCombine/add-sitofp.ll
+++ b/llvm/test/Transforms/InstCombine/add-sitofp.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -instcombine -S | grep {add i32}
+; RUN: opt < %s -instcombine -S | grep {add nsw i32}
define double @x(i32 %a, i32 %b) nounwind {
%m = lshr i32 %a, 24