Re: [PATCH] i386: Improve code generation of smin(x,0) with -m32.

2020-08-10 Thread Uros Bizjak via Gcc-patches
On Mon, Aug 10, 2020 at 10:36 AM Roger Sayle wrote: > > > To make amends for the recent (temporary) testsuite failure > of my new gcc.target/i386/minmax-9.c when compiled with -m32, > this patch improves the -m32 code we generate for the examples > in that test case. > > Currently, smax(x,0) gener

[PATCH] i386: Improve code generation of smin(x,0) with -m32.

2020-08-10 Thread Roger Sayle
To make amends for the recent (temporary) testsuite failure of my new gcc.target/i386/minmax-9.c when compiled with -m32, this patch improves the -m32 code we generate for the examples in that test case. Currently, smax(x,0) generates the very cool implementation: smax0: movl4(%esp), %eax