From: Peter Bergner Date: Thu, 30 Apr 2020 23:21:30 +0000 (-0500) Subject: cse: Add test case. [PR94740] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff1e6276dd71fde59fde679557b5db1efca9f19c;p=gcc.git cse: Add test case. [PR94740] PR rtl-optimization/94740 * gcc.target/powerpc/pr94740.c: New test. --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3df8a19a4d9..dbd464633f2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-04-30 Peter Bergner + + PR rtl-optimization/94740 + * gcc.target/powerpc/pr94740.c: New test. + 2020-04-30 Jakub Jelinek PR c/94842 diff --git a/gcc/testsuite/gcc.target/powerpc/pr94740.c b/gcc/testsuite/gcc.target/powerpc/pr94740.c new file mode 100644 index 00000000000..78e40fc84da --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/pr94740.c @@ -0,0 +1,11 @@ +/* PR rtl-optimization/94740 */ +/* { dg-do compile } */ +/* { dg-require-effective-target powerpc_future_ok } */ +/* { dg-options "-O2 -mdejagnu-cpu=future -mpcrel" } */ + +int array[8]; +int +foo (void) +{ + return __builtin_bswap32 (array[1]); +}