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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2026-10-15
             Status|UNCONFIRMED                 |NEW

--- Comment #3 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

The instruction which is moved:
```
(insn 25 45 20 5 (set (reg:DI 146)
        (unspec:DI [
                (reg:DF 142 [ MEM[(const double *)s_19] ])
            ] UNSPEC_CEIL)) "/app/example.cpp":8:18 227 {lceildfdi2}
     (nil))
```


And yes unspec_may_trap_p is not implemented for riscv.  the default
unspec_may_trap_p only returns true if the result is a FP mode and not if one
of the operands is an FP mode:
  /* Any floating arithmetic may trap.  */
  if ((SCALAR_FLOAT_MODE_P (GET_MODE (x)) && flag_trapping_math))
    return 1;

Reply via email to