[Bug rtl-optimization/86901] [AArch64] Suboptimal register allocation for int/float reinterpret

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 19 19:52:45 GMT 2024


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86901

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |15.0
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed on the trunk. Looks like late_combine1 which helps here.

We now get:
```
f2:
        fmov    x1, d0
        ubfx    x1, x1, 20, 11
        cmp     w1, 1015
        bhi     .L7
        fmul    s0, s0, s0
        str     s0, [x0]
        ret
.L7:
        b       g
```


More information about the Gcc-bugs mailing list