Disable ppc MMA for gcc-10 and below.
Disable ppc MMA for gcc-10 and below.
gcc-10 doesn't seem to officially support power10
Though it does seem to work on some systems, on others the compiler reports that the builtins exist, but the assembler fails with
/tmp/cci27rsX.s: Assembler messages:
/tmp/cci27rsX.s:153632: Error: invalid machine `power10'
/tmp/cci27rsX.s:153956: Error: unrecognized opcode: `xxsetaccz'
/tmp/cci27rsX.s:153958: Error: unrecognized opcode: `xxmfacc'
/tmp/cci27rsX.s:153959: Error: unrecognized opcode: `stxvp'
...
This happens, for example, using the docker ubuntu:20.04 image (both on a ppc64le machine, and on an x86-64 machine cross-compiling via powerpc64le-linux-gnu-g++-10).
g++-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
The only way to prevent breaks seems to be to explicitly disable MMA for gcc-10 and below.
cc: @ChipKerchner