testsuite, X86, Darwin: Fix bf16 ABI tests for Mach-O/MacOS ABI.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 3 Dec 2022 20:51:54 +0000 (20:51 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Tue, 6 Dec 2022 04:59:58 +0000 (04:59 +0000)
commit6a6f2cbf9ab366ea38cbe4c8d574486ce2bbe873
tree4fad5ab993c9e036176dcf2998992ce00e3523af
parent769370f3e2e04823c8a621d8ffa756dd83ebf21e
testsuite, X86, Darwin: Fix bf16 ABI tests for Mach-O/MacOS ABI.

These tests have failed since introduction since they assume that the
assembler output is ELF and that the ABI targeted supports the addressing.

For Darwin, Mach-O and ABI we need to make several changes:
1. Use the __USER_LABEL__PREFIX__
2. Remove the use of ELF-specific constructs (.size, .type etc.)
3. We cannot make direct access to common variables in the ABI, so that we
   must move these to BSS.

These changes are made in darwin-specific asm files.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/testsuite/ChangeLog:

* gcc.target/x86_64/abi/bf16/abi-bf16.exp: Use separate asm for Darwin.
* gcc.target/x86_64/abi/bf16/m256bf16/abi-bf16-ymm.exp: Likewise.
* gcc.target/x86_64/abi/bf16/m512bf16/abi-bf16-zmm.exp: Likewise.
* gcc.target/x86_64/abi/bf16/args.h: Make xmm_regs, x87_regs extern.
* gcc.target/x86_64/abi/bf16/m256bf16/args.h: Likewise.
* gcc.target/x86_64/abi/bf16/m512bf16/args.h: Likewise.
* gcc.target/x86_64/abi/bf16/asm-support-darwin.S: New file.
* gcc.target/x86_64/abi/bf16/m256bf16/asm-support-darwin.S: New file.
* gcc.target/x86_64/abi/bf16/m512bf16/asm-support-darwin.S: New file.
gcc/testsuite/gcc.target/x86_64/abi/bf16/abi-bf16.exp
gcc/testsuite/gcc.target/x86_64/abi/bf16/args.h
gcc/testsuite/gcc.target/x86_64/abi/bf16/asm-support-darwin.S [new file with mode: 0644]
gcc/testsuite/gcc.target/x86_64/abi/bf16/m256bf16/abi-bf16-ymm.exp
gcc/testsuite/gcc.target/x86_64/abi/bf16/m256bf16/args.h
gcc/testsuite/gcc.target/x86_64/abi/bf16/m256bf16/asm-support-darwin.S [new file with mode: 0644]
gcc/testsuite/gcc.target/x86_64/abi/bf16/m512bf16/abi-bf16-zmm.exp
gcc/testsuite/gcc.target/x86_64/abi/bf16/m512bf16/args.h
gcc/testsuite/gcc.target/x86_64/abi/bf16/m512bf16/asm-support-darwin.S [new file with mode: 0644]