re PR target/81294 (_subborrow_u64 argument order inconsistent with intrinsic referen...
authorUros Bizjak <ubizjak@gmail.com>
Tue, 4 Jul 2017 20:46:38 +0000 (22:46 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 4 Jul 2017 20:46:38 +0000 (22:46 +0200)
commit1fcfac88dec24a5ae005a82b1aa85e0e4291a81e
tree991f689dd7afb95aab39937ce680608b512b9c06
parent06a1b2334039de170886563546096fffa79c804d
re PR target/81294 (_subborrow_u64 argument order inconsistent with intrinsic reference, icc)

PR target/81294
* config/i386/adxintrin.h (_subborrow_u32): Swap _X and _Y
arguments in the call to __builtin_ia32_sbb_u32.
(_subborrow_u64): Swap _X and _Y arguments in the call to
__builtin_ia32_sbb_u64.

testsuite/ChangeLog:

PR target/81294
* gcc.target/i386/adx-addcarryx32-2.c (adx_test): Swap
x and y arguments in the call to _subborrow_u32.
* gcc.target/i386/adx-addcarryx64-2.c (adx_test): Swap
x and y arguments in the call to _subborrow_u64.
* gcc.target/i386/pr81294-1.c: New test.
* gcc.target/i386/pr81294-2.c: Ditto.

From-SVN: r249976
gcc/ChangeLog
gcc/config/i386/adxintrin.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/adx-addcarryx32-2.c
gcc/testsuite/gcc.target/i386/adx-addcarryx64-2.c
gcc/testsuite/gcc.target/i386/pr81294-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr81294-2.c [new file with mode: 0644]