rs6000: add effective-target test ppc_mma_hw
authorAaron Sawdey <acsawdey@linux.ibm.com>
Fri, 10 Jul 2020 22:46:17 +0000 (17:46 -0500)
committerAaron Sawdey <acsawdey@linux.ibm.com>
Mon, 13 Jul 2020 20:17:38 +0000 (15:17 -0500)
commit305ab735bd40b52a451851fa6e2177f184eb05d4
treee987a6b897fd9d35d6dc39b3f50c966b300e354d
parent9cba898481368ce16c6a2d30ef781a82dce27c55
rs6000: add effective-target test ppc_mma_hw

Add a test for dejagnu to determine if execution of MMA instructions is
supported in the test environment. Add an execution test to make sure
that __builtin_cpu_supports("mma") is true if we can execute MMA
instructions.

gcc/testsuite/

* lib/target-supports.exp (check_ppc_mma_hw_available):
New function.
(is-effective-target): Add ppc_mma_hw.
(is-effective-target-keyword): Add ppc_mma_hw.
* gcc.target/powerpc/mma-supported.c: New file.
* gcc.target/powerpc/mma-single-test.c: Require ppc_mma_hw.
* gcc.target/powerpc/mma-double-test.c: Require ppc_mma_hw.
gcc/testsuite/gcc.target/powerpc/mma-double-test.c
gcc/testsuite/gcc.target/powerpc/mma-single-test.c
gcc/testsuite/gcc.target/powerpc/mma-supported.c [new file with mode: 0644]
gcc/testsuite/lib/target-supports.exp