aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@embecosm.com>2022-08-18 16:50:26 +0100
committerMaciej W. Rozycki <macro@embecosm.com>2022-08-18 16:50:26 +0100
commit7f5ec900e53f6c7f7c06c641b4fb303ebdc83785 (patch)
tree89473045ab7973fb5f3525fff188286a7dd95c1c
parent5b0d0542920a336d7a41f647a903b60e3e63e2c6 (diff)
downloadgcc-7f5ec900e53f6c7f7c06c641b4fb303ebdc83785.zip
gcc-7f5ec900e53f6c7f7c06c641b4fb303ebdc83785.tar.gz
gcc-7f5ec900e53f6c7f7c06c641b4fb303ebdc83785.tar.bz2
RISC-V: Standardize formatting of SFB ALU conditional move
Standardize the formatting of SFB ALU conditional move operations from: beq a2,zero,1f; mv a0,zero; 1: # movcc to: beq a2,zero,1f # movcc mv a0,zero 1: for consistency with other assembly code produced. No functional change. gcc/ * config/riscv/riscv.md (*mov<GPR:mode><X:mode>cc): Fix output pattern formatting.
-rw-r--r--gcc/config/riscv/riscv.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/riscv/riscv.md b/gcc/config/riscv/riscv.md
index c517ae0..f4a5ff0 100644
--- a/gcc/config/riscv/riscv.md
+++ b/gcc/config/riscv/riscv.md
@@ -2254,8 +2254,8 @@
(match_operand:GPR 4 "sfb_alu_operand" "rJ,IL")))]
"TARGET_SFB_ALU"
"@
- b%C5 %1,%z2,1f; mv %0,%z4; 1: # movcc
- b%C5 %1,%z2,1f; li %0,%4; 1: # movcc"
+ b%C5\t%1,%z2,1f\t# movcc\;mv\t%0,%z4\n1:
+ b%C5\t%1,%z2,1f\t# movcc\;li\t%0,%4\n1:"
[(set_attr "length" "8")
(set_attr "type" "sfb_alu")
(set_attr "mode" "<GPR:MODE>")])