]> git.ipfire.org Git - thirdparty/gcc.git/commit
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)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:17:33 +0000 (13:17 -0300)
commit6a1b4991c4624e54bfa4bec2f4a828fcb3137bed
tree9d3cc982df0af9815d2a702917db0db05aab6017
parente6c1ce1d2a4859051360d971bfc007572ab0b31a
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