diff options
author | Marek Polacek <polacek@redhat.com> | 2015-11-27 11:38:46 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2015-11-27 11:38:46 +0000 |
commit | af719b2d7837b223d52806e644aee5b3220784b8 (patch) | |
tree | 0be1264074197932cff632c3539ff6dcb425b19b | |
parent | be377c804bf9affa8c063eb2261fd7bf0ce972db (diff) | |
download | gcc-af719b2d7837b223d52806e644aee5b3220784b8.zip gcc-af719b2d7837b223d52806e644aee5b3220784b8.tar.gz gcc-af719b2d7837b223d52806e644aee5b3220784b8.tar.bz2 |
* gcc.dg/pr63568.c: Convert to GIMPLE.
From-SVN: r231007
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr63568.c | 36 |
2 files changed, 30 insertions, 10 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 05aa372..fe39c93 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-11-27 Marek Polacek <polacek@redhat.com> + + * gcc.dg/pr63568.c: Convert to GIMPLE. + 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com> PR rtl-optimization/68506 diff --git a/gcc/testsuite/gcc.dg/pr63568.c b/gcc/testsuite/gcc.dg/pr63568.c index c6b88e7..5c688b0 100644 --- a/gcc/testsuite/gcc.dg/pr63568.c +++ b/gcc/testsuite/gcc.dg/pr63568.c @@ -1,53 +1,69 @@ /* PR middle-end/63568 */ /* { dg-do compile } */ -/* { dg-options "-fdump-tree-original" } */ +/* { dg-options "-O -fdump-tree-cddce1" } */ int fn1 (int a, int b, int m) { - return (a & ~m) | (b & m); + int tem1 = a & ~m; + int tem2 = b & m; + return tem1 | tem2; } int fn2 (int a, int b, int m) { - return (a & ~m) | (m & b); + int tem1 = a & ~m; + int tem2 = m & b; + return tem1 | tem2; } int fn3 (int a, int b, int m) { - return (~m & a) | (m & b); + int tem1 = ~m & a; + int tem2 = m & b; + return tem1 | tem2; } int fn4 (int a, int b, int m) { - return (~m & a) | (b & m); + int tem1 = ~m & a; + int tem2 = b & m; + return tem1 | tem2; } int fn5 (int a, int b, int m) { - return (b & m) | (a & ~m); + int tem1 = b & m; + int tem2 = a & ~m; + return tem1 | tem2; } int fn6 (int a, int b, int m) { - return (m & b) | (a & ~m); + int tem1 = m & b; + int tem2 = a & ~m; + return tem1 | tem2; } int fn7 (int a, int b, int m) { - return (m & b) | (~m & a); + int tem1 = m & b; + int tem2 = ~m & a; + return tem1 | tem2; } int fn8 (int a, int b, int m) { - return (b & m) | (~m & a); + int tem1 = b & m; + int tem2 = ~m & a; + return tem1 | tem2; } -/* { dg-final { scan-tree-dump-not " \\| " "original" } } */ +/* { dg-final { scan-tree-dump-not " \\| " "cddce1" } } */ |