testsuite: Port 'check-function-bodies' to nvptx

2023-09-12 Thread Thomas Schwinge
nction-bodies dg-final test >> >>>> The regexps in parse_function_bodies are fairly general, but might >>>> still need to be extended in future for targets like Darwin or AIX. >>> >>> ..., or nvptx. [...] >> Any comments before I push the a

Re: testsuite: Port 'check-function-bodies' to nvptx

2023-09-05 Thread Richard Sandiford via Gcc-patches
-set label {^(\S+):$} >> +#TODO >> +set label {^// BEGIN GLOBAL FUNCTION DEF: ([a-zA-Z_]\S+)$} > > There's actually no reason that the expected output syntax (this one) has > to match the assembly -- so I restored that, to use the same syntax for > nvptx here

testsuite: Port 'check-function-bodies' to nvptx (was: Add dg test for matching function bodies)

2023-09-05 Thread Thomas Schwinge
c check-function-bodies { args } { > > set count 0 > set function_regexp "" > -set label {^(\S+):$} > +#TODO > +set label {^// BEGIN GLOBAL FUNCTION DEF: ([a-zA-Z_]\S+)$} There's actually no reason that the expected output syntax (this one

[WIP] testsuite: Port 'check-function-bodies' to nvptx (was: Add dg test for matching function bodies)

2023-09-04 Thread Thomas Schwinge
e regexps in parse_function_bodies are fairly general, but might > still need to be extended in future for targets like Darwin or AIX. ..., or nvptx. As an example, I'm attaching the 'abort.s' generated for 'gcc.target/nvptx/abort.c'. I'm further attaching a c