x86-64: Add vector vararg ABI tests
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 17 May 2019 16:02:20 +0000 (16:02 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 17 May 2019 16:02:20 +0000 (09:02 -0700)
commit2a380e2ed0522b30070cf0b3f730f47eb1375976
tree0516c78535cc4569be5009b71850495f5016dff8
parent45641b316a7b2c9bdf1d7807631731457b8cc0f1
x86-64: Add vector vararg ABI tests

We can scan stack for return address to get vector arguments passed on
stack.

Tested on Linux/x86-64 and Linux/x32.

* gcc.target/x86_64/abi/test_varargs-m128.c: New file.
* gcc.target/x86_64/abi/avx/test_varargs-m256.c: Likewise.
* gcc.target/x86_64/abi/avx512f/test_varargs-m512.c: Likewise.

From-SVN: r271329
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/x86_64/abi/avx/test_varargs-m256.c [new file with mode: 0644]
gcc/testsuite/gcc.target/x86_64/abi/avx512f/test_varargs-m512.c [new file with mode: 0644]
gcc/testsuite/gcc.target/x86_64/abi/test_varargs-m128.c [new file with mode: 0644]