On 18/05/18 21:34, Michael Collison wrote:
> This patch improves additional cases of FP to integer conversions.
>
> Example 1:
>
> unsigned long
> f7 (double x)
> {
> return (unsigned) y;
> }
>
>
> At -O2
>
> Trunk generates:
>
> f7:
> fcvtzu w0, d0
> uxtwx0, w0
> ret
Michael Collison writes:
> This patch improves additional cases of FP to integer conversions.
>
> Example 1:
>
> unsigned long
> f7 (double x)
> {
> return (unsigned) y;
> }
>
>
> At -O2
>
> Trunk generates:
>
> f7:
> fcvtzu w0, d0
> uxtwx0, w0
> ret
>
> With the patch we
This patch improves additional cases of FP to integer conversions.
Example 1:
unsigned long
f7 (double x)
{
return (unsigned) y;
}
At -O2
Trunk generates:
f7:
fcvtzu w0, d0
uxtwx0, w0
ret
With the patch we can merge the zero-extend and reduce the sequence to on