public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4376] recog: Support space in "[ cons"
@ 2023-10-03 9:20 Andrea Corallo
0 siblings, 0 replies; only message in thread
From: Andrea Corallo @ 2023-10-03 9:20 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:9d31045b21324166c3997d603961d99e3c4c357d
commit r14-4376-g9d31045b21324166c3997d603961d99e3c4c357d
Author: Andrea Corallo <andrea.corallo@arm.com>
Date: Fri Sep 15 10:23:02 2023 +0200
recog: Support space in "[ cons"
Hi all,
this is to allow for spaces before "cons:" in the definitions of
patterns using the new compact syntax, ex:
(define_insn "aarch64_simd_dup<mode>"
[(set (match_operand:VDQ_I 0 "register_operand")
(vec_duplicate:VDQ_I
(match_operand:<VEL> 1 "register_operand")))]
"TARGET_SIMD"
{@ [ cons: =0 , 1 ; attrs: type ]
[ w , w ; neon_dup<q> ] dup\t%0.<Vtype>, %1.<Vetype>[0]
[ w , ?r ; neon_from_gp<q> ] dup\t%0.<Vtype>, %<vwcore>1
}
)
gcc/Changelog
2023-09-20 Andrea Corallo <andrea.corallo@arm.com>
* gensupport.cc (convert_syntax): Skip spaces before "cons:"
in new compact pattern syntax.
Diff:
---
gcc/gensupport.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/gensupport.cc b/gcc/gensupport.cc
index 7e125e3d8db..dd920d673b4 100644
--- a/gcc/gensupport.cc
+++ b/gcc/gensupport.cc
@@ -894,6 +894,8 @@ convert_syntax (rtx x, file_location loc)
if (!expect_char (&templ, '['))
fatal_at (loc, "expecing `[' to begin section list");
+ skip_spaces (&templ);
+
parse_section_layout (loc, &templ, "cons:", tconvec, true);
if (*templ != ']')
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-03 9:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-03 9:20 [gcc r14-4376] recog: Support space in "[ cons" Andrea Corallo
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).