summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/add-sitofp.ll
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
commitfe3595555a2ac3e11c8f39182f4a481e83849f76 (patch)
tree64580ffcc550864c407efff9ab80756645be4a7b /test/Transforms/InstCombine/add-sitofp.ll
parent7c44beaf93098fae6db9a5a03799f6c66938db90 (diff)
downloadllvm-fe3595555a2ac3e11c8f39182f4a481e83849f76.tar.gz
llvm-fe3595555a2ac3e11c8f39182f4a481e83849f76.tar.bz2
llvm-fe3595555a2ac3e11c8f39182f4a481e83849f76.tar.xz
Code that checks WillNotOverflowSignedAdd before creating an Add
can safely use the NSW bit on the Add. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/add-sitofp.ll')
-rw-r--r--test/Transforms/InstCombine/add-sitofp.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Transforms/InstCombine/add-sitofp.ll b/test/Transforms/InstCombine/add-sitofp.ll
index 24319df0b7..98a8cb452a 100644
--- a/test/Transforms/InstCombine/add-sitofp.ll
+++ b/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