x86-64: Update AVX512FP16 ABI tests for x32
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 9 Sep 2021 14:23:16 +0000 (07:23 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 9 Sep 2021 15:42:35 +0000 (08:42 -0700)
commitde515ce0b209cc7e5a780d9846e5154d380a763e
tree54c68b42850f19d14e80b9e38724032f6a72030b
parent013cfc648405a8a118d07436f103e4d70224fe00
x86-64: Update AVX512FP16 ABI tests for x32

On x32, long is the same as int and pointer is 32 bits.  Update AVX512FP16
ABI tests:

1. Replace long with long long for 64-bit integers.
2. Update type and alignment for long and pointer.
3. Skip tests for long on x32.

* gcc.target/x86_64/abi/avx512fp16/args.h: Replace long with
long long.
(XMM_T): Rename _long to _longlong and _ulong to _ulonglong.
(X87_T): Rename _ulong to _ulonglong.
* gcc.target/x86_64/abi/avx512fp16/defines.h (TYPE_SIZE_LONG):
Define to 4 if __ILP32__ is defined.
(TYPE_SIZE_POINTER): Likewise.
(TYPE_ALIGN_LONG): Likewise.
(TYPE_ALIGN_POINTER): Likewise.
* gcc.target/x86_64/abi/avx512fp16/test_3_element_struct_and_unions.c
(main): Skip test for long if __ILP32__ is defined.
* gcc.target/x86_64/abi/avx512fp16/test_m64m128_returning.c
(do_test): Replace _long with _longlong.
* gcc.target/x86_64/abi/avx512fp16/test_struct_returning.c:
(check_300): Replace _ulong with _ulonglong.
* gcc.target/x86_64/abi/avx512fp16/m256h/args.h: Replace long
with long long.
(YMM_T): Rename _long to _longlong and _ulong to _ulonglong.
(X87_T): Rename _ulong to _ulonglong.
* gcc.target/x86_64/abi/avx512fp16/m512h/args.h: Replace long
with long long.
(ZMM_T): Rename _long to _longlong and _ulong to _ulonglong.
(X87_T): Rename _ulong to _ulonglong.
gcc/testsuite/gcc.target/x86_64/abi/avx512fp16/args.h
gcc/testsuite/gcc.target/x86_64/abi/avx512fp16/defines.h
gcc/testsuite/gcc.target/x86_64/abi/avx512fp16/m256h/args.h
gcc/testsuite/gcc.target/x86_64/abi/avx512fp16/m512h/args.h
gcc/testsuite/gcc.target/x86_64/abi/avx512fp16/test_3_element_struct_and_unions.c
gcc/testsuite/gcc.target/x86_64/abi/avx512fp16/test_m64m128_returning.c
gcc/testsuite/gcc.target/x86_64/abi/avx512fp16/test_struct_returning.c