From ff1e6276dd71fde59fde679557b5db1efca9f19c Mon Sep 17 00:00:00 2001 From: Peter Bergner Date: Thu, 30 Apr 2020 18:21:30 -0500 Subject: [PATCH] cse: Add test case. [PR94740] PR rtl-optimization/94740 * gcc.target/powerpc/pr94740.c: New test. --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/powerpc/pr94740.c | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 gcc/testsuite/gcc.target/powerpc/pr94740.c 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]); +} -- 2.30.2