[committed] RISC-V: Use a tab rather than space with FSFLAGS

Message ID alpine.DEB.2.20.2206082217140.10833@tpp.orcam.me.uk
State Committed
Commit 702a11ade2e87515a7dda1d1c028217bfe28e609
Headers
Series [committed] RISC-V: Use a tab rather than space with FSFLAGS |

Commit Message

Maciej W. Rozycki June 9, 2022, 1:35 p.m. UTC
  Consistently use a tab rather than a space as the separator between the 
assembly instruction mnemonic and its operand with FSFLAGS instructions 
produced with the unordered FP comparison RTL insns.

	gcc/
	* config/riscv/riscv.md 
	(*f<quiet_pattern>_quiet<ANYF:mode><X:mode>4_default)
	(*f<quiet_pattern>_quiet<ANYF:mode><X:mode>4_snan): Emit a tab 
	rather than space with FSFLAGS.
---
Hi,

 Committed as obvious.

  Maciej
---
 gcc/config/riscv/riscv.md |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

gcc-riscv-fcmp-tab.diff
  

Comments

Kito Cheng June 9, 2022, 2:56 p.m. UTC | #1
Thanks :)


On Thu, Jun 9, 2022 at 9:35 PM Maciej W. Rozycki <macro@embecosm.com> wrote:
>
> Consistently use a tab rather than a space as the separator between the
> assembly instruction mnemonic and its operand with FSFLAGS instructions
> produced with the unordered FP comparison RTL insns.
>
>         gcc/
>         * config/riscv/riscv.md
>         (*f<quiet_pattern>_quiet<ANYF:mode><X:mode>4_default)
>         (*f<quiet_pattern>_quiet<ANYF:mode><X:mode>4_snan): Emit a tab
>         rather than space with FSFLAGS.
> ---
> Hi,
>
>  Committed as obvious.
>
>   Maciej
> ---
>  gcc/config/riscv/riscv.md |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> gcc-riscv-fcmp-tab.diff
> Index: gcc/gcc/config/riscv/riscv.md
> ===================================================================
> --- gcc.orig/gcc/config/riscv/riscv.md
> +++ gcc/gcc/config/riscv/riscv.md
> @@ -2344,7 +2344,7 @@
>           QUIET_COMPARISON))
>      (clobber (match_scratch:X 3 "=&r"))]
>    "TARGET_HARD_FLOAT && ! HONOR_SNANS (<ANYF:MODE>mode)"
> -  "frflags\t%3\n\tf<quiet_pattern>.<fmt>\t%0,%1,%2\n\tfsflags %3"
> +  "frflags\t%3\n\tf<quiet_pattern>.<fmt>\t%0,%1,%2\n\tfsflags\t%3"
>    [(set_attr "type" "fcmp")
>     (set_attr "mode" "<UNITMODE>")
>     (set (attr "length") (const_int 12))])
> @@ -2357,7 +2357,7 @@
>           QUIET_COMPARISON))
>      (clobber (match_scratch:X 3 "=&r"))]
>    "TARGET_HARD_FLOAT && HONOR_SNANS (<ANYF:MODE>mode)"
> -  "frflags\t%3\n\tf<quiet_pattern>.<fmt>\t%0,%1,%2\n\tfsflags %3\n\tfeq.<fmt>\tzero,%1,%2"
> +  "frflags\t%3\n\tf<quiet_pattern>.<fmt>\t%0,%1,%2\n\tfsflags\t%3\n\tfeq.<fmt>\tzero,%1,%2"
>    [(set_attr "type" "fcmp")
>     (set_attr "mode" "<UNITMODE>")
>     (set (attr "length") (const_int 16))])
  

Patch

Index: gcc/gcc/config/riscv/riscv.md
===================================================================
--- gcc.orig/gcc/config/riscv/riscv.md
+++ gcc/gcc/config/riscv/riscv.md
@@ -2344,7 +2344,7 @@ 
 	  QUIET_COMPARISON))
     (clobber (match_scratch:X 3 "=&r"))]
   "TARGET_HARD_FLOAT && ! HONOR_SNANS (<ANYF:MODE>mode)"
-  "frflags\t%3\n\tf<quiet_pattern>.<fmt>\t%0,%1,%2\n\tfsflags %3"
+  "frflags\t%3\n\tf<quiet_pattern>.<fmt>\t%0,%1,%2\n\tfsflags\t%3"
   [(set_attr "type" "fcmp")
    (set_attr "mode" "<UNITMODE>")
    (set (attr "length") (const_int 12))])
@@ -2357,7 +2357,7 @@ 
 	  QUIET_COMPARISON))
     (clobber (match_scratch:X 3 "=&r"))]
   "TARGET_HARD_FLOAT && HONOR_SNANS (<ANYF:MODE>mode)"
-  "frflags\t%3\n\tf<quiet_pattern>.<fmt>\t%0,%1,%2\n\tfsflags %3\n\tfeq.<fmt>\tzero,%1,%2"
+  "frflags\t%3\n\tf<quiet_pattern>.<fmt>\t%0,%1,%2\n\tfsflags\t%3\n\tfeq.<fmt>\tzero,%1,%2"
   [(set_attr "type" "fcmp")
    (set_attr "mode" "<UNITMODE>")
    (set (attr "length") (const_int 16))])