Re: [PATCH, i386]: Fix PR72867, incorrect optimization of VMINPS/VMAXPS at compile time

2016-08-16 Thread Jakub Jelinek
On Mon, Aug 15, 2016 at 08:53:35PM +0200, Uros Bizjak wrote: > 2016-08-15 Uros Bizjak > > PR target/72867 > * gcc.target/i386/pr72867.c: New test. The testcase fails on i686-linux, because -msse isn't provided. Fixed thusly, tested on i686-linux, committed as

[PATCH, i386]: Fix PR72867, incorrect optimization of VMINPS/VMAXPS at compile time

2016-08-15 Thread Uros Bizjak
Hello! Attached patch applies min/max IEEE rules w.r.t. NaN and signed zeros also to SSE intrinsics. Before the patch, intrinsics were expanded to a generic min/max pattern with commutative operands. Patched compiler expands intrinsics to an UNSPEC or generic min/max, depending on