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

--- Comment #4 from Roland Illig <roland.illig at gmx dot de> ---
While here:
> (*
>    BuildDivM2 - build and return ((op2 < 0) : (op1 divtrunc op2) ? (op1 
> divfloor op2))
>                 when -fiso, -fpim4 or -fpositive-mod-floor-div is present else
>                 return op1 div trunc op2
> *)

Did you swap the operators '?' and ':' here?
I had to look this up because this message was completely unclear to me:

> force positive result from MOD and DIV result floor

The explanation from gm2.texi is much clearer:

> All modulus results are positive and the results from the division are
rounded to the floor.

Reply via email to