public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] RISC-V: Use a tab rather than space with FSFLAGS
@ 2022-06-09 13:35 Maciej W. Rozycki
  2022-06-09 14:56 ` Kito Cheng
  0 siblings, 1 reply; 2+ messages in thread
From: Maciej W. Rozycki @ 2022-06-09 13:35 UTC (permalink / raw)
  To: gcc-patches; +Cc: Andrew Waterman, Jim Wilson, Kito Cheng, Palmer Dabbelt

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))])

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [committed] RISC-V: Use a tab rather than space with FSFLAGS
  2022-06-09 13:35 [committed] RISC-V: Use a tab rather than space with FSFLAGS Maciej W. Rozycki
@ 2022-06-09 14:56 ` Kito Cheng
  0 siblings, 0 replies; 2+ messages in thread
From: Kito Cheng @ 2022-06-09 14:56 UTC (permalink / raw)
  To: Maciej W. Rozycki; +Cc: GCC Patches, Andrew Waterman

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))])

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-09 14:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-09 13:35 [committed] RISC-V: Use a tab rather than space with FSFLAGS Maciej W. Rozycki
2022-06-09 14:56 ` Kito Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).