]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Rename internal operand modifier N to n
authorKito Cheng <kito.cheng@sifive.com>
Thu, 14 Nov 2024 08:41:52 +0000 (16:41 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Tue, 17 Dec 2024 14:28:05 +0000 (22:28 +0800)
Here is a purposal that using N for printing register encoding number,
so let rename the existing internal operand modifier `N` to `n`.

gcc/ChangeLog:

* config/riscv/corev.md (*cv_branch<mode>): Update modifier.
(*branch<mode>): Ditto.
* config/riscv/riscv.cc (riscv_print_operand): Update modifier.
* config/riscv/riscv.md (*branch<mode>): Update modifier.

gcc/config/riscv/corev.md
gcc/config/riscv/riscv.cc
gcc/config/riscv/riscv.md

index 02c270433017aa4089c19f6e4137ad54506680a2..3c0e9cecdfba3142ffa0307019b83381899769a6 100644 (file)
   "TARGET_XCVBI"
 {
   if (get_attr_length (insn) == 12)
-    return "cv.b%N1\t%2,%z3,1f; jump\t%l0,ra; 1:";
+    return "cv.b%n1\t%2,%z3,1f; jump\t%l0,ra; 1:";
 
   return "cv.b%C1imm\t%2,%3,%0";
 }
   "TARGET_XCVBI"
 {
   if (get_attr_length (insn) == 12)
-    return "b%N1\t%2,%z3,1f; jump\t%l0,ra; 1:";
+    return "b%n1\t%2,%z3,1f; jump\t%l0,ra; 1:";
 
   return "b%C1\t%2,%z3,%l0";
 }
index 6492913d8f8062fb43eb17baa977ad38ac432ea1..db2329c0319368d9d73ee5c140b69cac960c6906 100644 (file)
@@ -6823,7 +6823,7 @@ riscv_asm_output_opcode (FILE *asm_out_file, const char *p)
          any outermost HIGH.
    'R' Print the low-part relocation associated with OP.
    'C' Print the integer branch condition for comparison OP.
-   'N' Print the inverse of the integer branch condition for comparison OP.
+   'n' Print the inverse of the integer branch condition for comparison OP.
    'A' Print the atomic operation suffix for memory model OP.
    'I' Print the LR suffix for memory model OP.
    'J' Print the SC suffix for memory model OP.
@@ -6981,7 +6981,7 @@ riscv_print_operand (FILE *file, rtx op, int letter)
       fputs (GET_RTX_NAME (code), file);
       break;
 
-    case 'N':
+    case 'n':
       /* The RTL names match the instruction names. */
       fputs (GET_RTX_NAME (reverse_condition (code)), file);
       break;
index 3a4cd1d93a0fdd77724dcb7ad07f2d6e69bf6b14..1eec51c117a788787e18036a30ea3119ecb3c8e2 100644 (file)
   "!TARGET_XCVBI"
 {
   if (get_attr_length (insn) == 12)
-    return "b%N1\t%2,%z3,1f; jump\t%l0,ra; 1:";
+    return "b%n1\t%2,%z3,1f; jump\t%l0,ra; 1:";
 
   return "b%C1\t%2,%z3,%l0";
 }