diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-11-28 07:18:55 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-11-28 07:18:55 +0100 |
commit | f933ab3d6d0d1218bf5f575ae2f5de6f657d23ca (patch) | |
tree | 149fbe7587fd3af4972d7a5c3196042ab362f05c /test/Transforms/InstSimplify/compare.ll | |
parent | 41ef0ec9e25a34ffb598ce0d5749b3bfa3b0b929 (diff) | |
parent | 3668de5ba6ce154b365ef2f0b001be155c014e6f (diff) | |
download | llvm-f933ab3d6d0d1218bf5f575ae2f5de6f657d23ca.tar.gz llvm-f933ab3d6d0d1218bf5f575ae2f5de6f657d23ca.tar.bz2 llvm-f933ab3d6d0d1218bf5f575ae2f5de6f657d23ca.tar.xz |
Merge branch 'release-3.2' into embtk-support-release-3.2
Diffstat (limited to 'test/Transforms/InstSimplify/compare.ll')
-rw-r--r-- | test/Transforms/InstSimplify/compare.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstSimplify/compare.ll b/test/Transforms/InstSimplify/compare.ll index ced74bd4be..ce2bb799c8 100644 --- a/test/Transforms/InstSimplify/compare.ll +++ b/test/Transforms/InstSimplify/compare.ll @@ -266,6 +266,15 @@ define i1 @add5(i32 %x, i32 %y) { ; CHECK: ret i1 true } +define i1 @add6(i64 %A, i64 %B) { +; CHECK: @add6 + %s1 = add i64 %A, %B + %s2 = add i64 %B, %A + %cmp = icmp eq i64 %s1, %s2 + ret i1 %cmp +; CHECK: ret i1 true +} + define i1 @addpowtwo(i32 %x, i32 %y) { ; CHECK: @addpowtwo %l = lshr i32 %x, 1 |