summaryrefslogtreecommitdiff
path: root/test/Transforms
diff options
context:
space:
mode:
authorShuxin Yang <shuxin.llvm@gmail.com>2012-11-13 00:08:49 +0000
committerShuxin Yang <shuxin.llvm@gmail.com>2012-11-13 00:08:49 +0000
commit4df2826166f1339eb7ddf5c5c84565fccb794de8 (patch)
tree89e793dc40f96c6acbeab5291f76bc8fed770944 /test/Transforms
parent43736c7cfaea3b0c3e2660b9cd5c01e306f7c0df (diff)
downloadllvm-4df2826166f1339eb7ddf5c5c84565fccb794de8.tar.gz
llvm-4df2826166f1339eb7ddf5c5c84565fccb794de8.tar.bz2
llvm-4df2826166f1339eb7ddf5c5c84565fccb794de8.tar.xz
revert r167740
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r--test/Transforms/Reassociate/mul_neg.ll13
-rw-r--r--test/Transforms/Reassociate/multistep.ll6
2 files changed, 3 insertions, 16 deletions
diff --git a/test/Transforms/Reassociate/mul_neg.ll b/test/Transforms/Reassociate/mul_neg.ll
deleted file mode 100644
index e8765ffaa4..0000000000
--- a/test/Transforms/Reassociate/mul_neg.ll
+++ /dev/null
@@ -1,13 +0,0 @@
-; RUN: opt -S -reassociate < %s | FileCheck %s
-
-; t=-a; retval = t*7|t => t-a; retval => a*-7|t
-define i32 @mulneg(i32 %a) nounwind uwtable ssp {
-entry:
- %sub = sub nsw i32 0, %a
- %tmp1 = mul i32 %sub, 7
- %tmp2 = xor i32 %sub, %tmp1
- ret i32 %tmp2
-; CHECK: entry
-; CHECK: %tmp1 = mul i32 %a, -7
-; CHECK: ret
-}
diff --git a/test/Transforms/Reassociate/multistep.ll b/test/Transforms/Reassociate/multistep.ll
index 60727c1bf6..7466d2e99d 100644
--- a/test/Transforms/Reassociate/multistep.ll
+++ b/test/Transforms/Reassociate/multistep.ll
@@ -1,7 +1,7 @@
; RUN: opt < %s -reassociate -S | FileCheck %s
define i64 @multistep1(i64 %a, i64 %b, i64 %c) {
-; Check that a*a*b+a*a*c is turned into (a*a)*(b+c).
+; Check that a*a*b+a*a*c is turned into a*(a*(b+c)).
; CHECK: @multistep1
%t0 = mul i64 %a, %b
%t1 = mul i64 %a, %t0 ; a*(a*b)
@@ -9,8 +9,8 @@ define i64 @multistep1(i64 %a, i64 %b, i64 %c) {
%t3 = mul i64 %a, %t2 ; a*(a*c)
%t4 = add i64 %t1, %t3
; CHECK-NEXT: add i64 %c, %b
-; CHECK-NEXT: mul i64 %a, %a
-; CHECK-NEXT: mul i64 %tmp{{.*}}, %tmp{{.*}}
+; CHECK-NEXT: mul i64 %tmp{{.*}}, %a
+; CHECK-NEXT: mul i64 %tmp{{.*}}, %a
; CHECK-NEXT: ret
ret i64 %t4
}