]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: Rename crotate attribute to inv_rotate
authorUros Bizjak <ubizjak@gmail.com>
Tue, 2 Jun 2026 09:03:32 +0000 (11:03 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Tue, 2 Jun 2026 09:28:16 +0000 (11:28 +0200)
The crotate code attribute maps a rotation operation to its
inverse direction (rotate <-> rotatert). Since "counter rotate"
does not accurately describe this relationship, rename the
attribute to inv_rotate.

No functional change intended.

gcc/
* config/i386/i386.md (crotate): Rename to inv_rotate.
Update all uses accordingly.

gcc/config/i386/i386.md

index 0fdf99416e691a425cde0457f6e0946e617ab096..223fdb538cfa58dbce195cafc315901295c62b79 100644 (file)
 ;; Base name for insn mnemonic.
 (define_code_attr rotate [(rotate "rol") (rotatert "ror")])
 
-;; Counter rotate.
-(define_code_attr crotate [(rotate "rotatert") (rotatert "rotate")])
+;; Mapping to the inverse rotation RTL code.
+(define_code_attr inv_rotate [(rotate "rotatert") (rotatert "rotate")])
 
 ;; Mapping of abs neg operators
 (define_code_iterator absneg [abs neg])
   "&& 1"
   [(parallel
      [(set (match_dup 0)
-          (<crotate>:SWI (match_dup 1) (match_dup 2)))
+          (<inv_rotate>:SWI (match_dup 1) (match_dup 2)))
       (clobber (reg:CC FLAGS_REG))])]
 {
   operands[2] = force_reg (GET_MODE (operands[2]), operands[2]);
  "(INTVAL (operands[3]) & (<MODE_SIZE> * BITS_PER_UNIT - 1)) == 0"
  [(set (match_dup 4) (match_dup 1))
   (set (match_dup 0)
-       (<crotate>:SWI (match_dup 4) (subreg:QI (match_dup 2) 0)))]
+       (<inv_rotate>:SWI (match_dup 4) (subreg:QI (match_dup 2) 0)))]
  "operands[4] = gen_reg_rtx (<MODE>mode);")
 
 (define_insn_and_split "*<insn><mode>3_sub_1"
   "&& 1"
   [(parallel
      [(set (match_dup 0)
-          (<crotate>:SWI (match_dup 1) (match_dup 2)))
+          (<inv_rotate>:SWI (match_dup 1) (match_dup 2)))
       (clobber (reg:CC FLAGS_REG))])]
  "operands[2] = force_reg (GET_MODE (operands[2]), operands[2]);")
 
  "(INTVAL (operands[3]) & (<MODE_SIZE> * BITS_PER_UNIT - 1)) == 0"
  [(set (match_dup 4) (match_dup 1))
   (set (match_dup 0)
-       (<crotate>:SWI (match_dup 4) (match_dup 2)))]
+       (<inv_rotate>:SWI (match_dup 4) (match_dup 2)))]
  "operands[4] = gen_reg_rtx (<MODE>mode);")
 
 ;; Implement rotation using two double-precision