]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Reorder comment on SFB patterns
authorMaciej W. Rozycki <macro@embecosm.com>
Wed, 22 Nov 2023 01:18:23 +0000 (01:18 +0000)
committerMaciej W. Rozycki <macro@embecosm.com>
Wed, 22 Nov 2023 01:18:23 +0000 (01:18 +0000)
Our `mov<mode>cc' expander is no longer specific to short forward branch
targets, so move its associated comment accordingly.

gcc/
* config/riscv/riscv.md (mov<mode>cc): Move comment on SFB
patterns over to...
(*mov<GPR:mode><X:mode>cc): ... here.

gcc/config/riscv/riscv.md

index 1522b0b27ccd2a0854c5703ac6badf9e8362a1d4..e6d90c2265fe42941ec9164b33232ec93a1c73c6 100644 (file)
   [(set_attr "type" "branch")
    (set_attr "mode" "none")])
 
-;; Patterns for implementations that optimize short forward branches.
-
 (define_expand "mov<mode>cc"
   [(set (match_operand:GPR 0 "register_operand")
        (if_then_else:GPR (match_operand 1 "comparison_operator")
     FAIL;
 })
 
+;; Patterns for implementations that optimize short forward branches.
+
 (define_insn "*mov<GPR:mode><X:mode>cc"
   [(set (match_operand:GPR 0 "register_operand" "=r,r")
        (if_then_else:GPR