PR92398: Fix testcase failure of pr72804.c
authorLuo Xiong Hu <luoxhu@linux.ibm.com>
Mon, 2 Dec 2019 01:59:26 +0000 (01:59 +0000)
committerXiong Hu Luo <luoxhu@gcc.gnu.org>
Mon, 2 Dec 2019 01:59:26 +0000 (01:59 +0000)
commite549dd44b5ff0547004a640554ebe55f1ce2936b
tree3864f706fad9dde8643d8745d4c415259aadba2f
parentaa2d575313b70ab55f5b52a91c3cef3aef3bad62
PR92398: Fix testcase failure of pr72804.c

P9LE generated instruction is not worse than P8LE.
mtvsrdd;xxlnot;stxv vs. not;not;std;std.
It can have longer latency, but latency via memory is not so critical,
and this does save decode and other resources.  It's hard to choose
which is best.  Update the test case to fix failures.

gcc/testsuite/ChangeLog:

2019-12-02  Luo Xiong Hu  <luoxhu@linux.ibm.com>

PR testsuite/92398
* gcc.target/powerpc/pr72804.c: Split the store function to...
* gcc.target/powerpc/pr92398.h: ... this one.  New.
* gcc.target/powerpc/pr92398.p9+.c: New.
* gcc.target/powerpc/pr92398.p9-.c: New.
* lib/target-supports.exp (check_effective_target_p8): New.
(check_effective_target_p9+): New.

From-SVN: r278890
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr72804.c
gcc/testsuite/gcc.target/powerpc/pr92398.h [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr92398.p9+.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr92398.p9-.c [new file with mode: 0644]
gcc/testsuite/lib/target-supports.exp