rs6000: Fix _mm_min_ps and _mm_max_ps (PR83315)
authorSegher Boessenkool <segher@kernel.crashing.org>
Sat, 31 Mar 2018 03:05:35 +0000 (05:05 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Sat, 31 Mar 2018 03:05:35 +0000 (05:05 +0200)
commitec8d8a5b5c1cf75cd62b908e2ace053ed2b05ec2
treeaf910576a2b61b8e2417e9c3c05bbcfbd62ea8e9
parentc32170880197cf6bc9a1a08b084b3624b1cd6474
rs6000: Fix _mm_min_ps and _mm_max_ps (PR83315)

This makes _mm_{min,max}_ps work correctly for QNaNs.

PR target/83315
* config/rs6000/xmmintrin.h (_mm_set_ps, _mm_max_ps): Handle (quiet)
NaN inputs correctly.

gcc/testsuite/
PR target/83315
* gcc.target/powerpc/sse-maxps-2.c: New test.
* gcc.target/powerpc/sse-minps-2.c: New test.

From-SVN: r258988
gcc/ChangeLog
gcc/config/rs6000/xmmintrin.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/sse-maxps-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/sse-minps-2.c [new file with mode: 0644]