]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Reset the length to the default of 4 for FP comparisons
authorMaciej W. Rozycki <macro@embecosm.com>
Mon, 13 Jun 2022 21:29:45 +0000 (22:29 +0100)
committerMaciej W. Rozycki <macro@embecosm.com>
Mon, 13 Jun 2022 21:29:45 +0000 (22:29 +0100)
The default length for floating-point compare operations is overridden
to 8, however the FEQ.fmt, FLT.fmt, FLE.fmt machine instructions and
FGE.fmt, FGT.fmt assembly idioms the relevant RTL insns produce are all
4 bytes long each.  And all the floating-point compare RTL insns that
produce multiple machine instructions explicitly set their lengths.

Remove the override then, letting the default of 4 apply for the single
instruction case.

gcc/
* config/riscv/riscv.md (length): Remove the explicit setting
for "fcmp".

gcc/config/riscv/riscv.md

index 7745290383bee100135954e6860d18e026008cb7..308b64dd30d74d6525fefd858963b5f3351ab632 100644 (file)
 
          (eq_attr "got" "load") (const_int 8)
 
-         (eq_attr "type" "fcmp") (const_int 8)
-
          ;; SHIFT_SHIFTs are decomposed into two separate instructions.
          (eq_attr "move_type" "shift_shift")
                (const_int 8)