From 7ed2d6cbd094871a0dd23f2d433b962d5f462936 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Tue, 17 Mar 2020 15:26:22 +0000 Subject: [PATCH] testsuite: Tweak check-function-bodies interface In g:2171a9207f51bc486ed9c502cb4da706f594615e I'd tried to fix various ILP32 testsuite failures by restricting some tests to LP64. Unfortunately, I messed up the check-function-bodies syntax and passed the target selector as the "option" parameter, which had the effect of disabling the tests for both ILP32 and LP64. The fix ought to have been to add "" as the option parameter. However, check-function-bodies wasn't treating "" in the same way as an omitted argument. The easiest fix seemed to be turn the argument into a list of options, which also makes the interface a bit more general. Having done that, it seemed a good idea to check for things that look like target/xfail selectors, so that the mistake isn't silent next time. 2020-04-09 Richard Sandiford gcc/ * doc/sourcebuild.texi (check-function-bodies): Treat the third parameter as a list of option regexps and require each regexp to match. gcc/testsuite/ * lib/scanasm.exp (check-function-bodies): Treat the third parameter as a list of option regexps and require each regexp to match. Check for cases in which a target/xfail selector was mistakenly passed to the options argument. * gcc.target/aarch64/sve/pcs/args_1.c: Add an empty options list to the invocation of check-function-bodies. * gcc.target/aarch64/sve/pcs/args_2.c: Likewise. * gcc.target/aarch64/sve/pcs/args_3.c: Likewise. * gcc.target/aarch64/sve/pcs/args_4.c: Likewise. * gcc.target/aarch64/sve/pcs/return_1.c: Likewise. * gcc.target/aarch64/sve/pcs/return_1_1024.c: Likewise. * gcc.target/aarch64/sve/pcs/return_1_128.c: Likewise. * gcc.target/aarch64/sve/pcs/return_1_2048.c: Likewise. * gcc.target/aarch64/sve/pcs/return_1_256.c: Likewise. * gcc.target/aarch64/sve/pcs/return_1_512.c: Likewise. * gcc.target/aarch64/sve/pcs/return_2.c: Likewise. * gcc.target/aarch64/sve/pcs/return_3.c: Likewise. * gcc.target/aarch64/sve/pcs/return_4.c: Likewise. * gcc.target/aarch64/sve/pcs/return_4_1024.c: Likewise. * gcc.target/aarch64/sve/pcs/return_4_128.c: Likewise. * gcc.target/aarch64/sve/pcs/return_4_2048.c: Likewise. * gcc.target/aarch64/sve/pcs/return_4_256.c: Likewise. * gcc.target/aarch64/sve/pcs/return_4_512.c: Likewise. * gcc.target/aarch64/sve/pcs/return_5.c: Likewise. * gcc.target/aarch64/sve/pcs/return_5_1024.c: Likewise. * gcc.target/aarch64/sve/pcs/return_5_128.c: Likewise. * gcc.target/aarch64/sve/pcs/return_5_2048.c: Likewise. * gcc.target/aarch64/sve/pcs/return_5_256.c: Likewise. * gcc.target/aarch64/sve/pcs/return_5_512.c: Likewise. * gcc.target/aarch64/sve/pcs/return_6.c: Likewise. * gcc.target/aarch64/sve/pcs/return_6_1024.c: Likewise. * gcc.target/aarch64/sve/pcs/return_6_128.c: Likewise. * gcc.target/aarch64/sve/pcs/return_6_2048.c: Likewise. * gcc.target/aarch64/sve/pcs/return_6_256.c: Likewise. * gcc.target/aarch64/sve/pcs/return_6_512.c: Likewise. * gcc.target/aarch64/sve/pcs/saves_2_be_nowrap.c: Likewise. * gcc.target/aarch64/sve/pcs/saves_2_be_wrap.c: Likewise. * gcc.target/aarch64/sve/pcs/saves_2_le_nowrap.c: Likewise. * gcc.target/aarch64/sve/pcs/saves_2_le_wrap.c: Likewise. * gcc.target/aarch64/sve/pcs/saves_3.c: Likewise. * gcc.target/aarch64/sve/pcs/saves_4_be.c: Likewise. * gcc.target/aarch64/sve/pcs/saves_4_le.c: Likewise. * gcc.target/aarch64/sve/pcs/stack_clash_2_128.c: Likewise. * gcc.target/aarch64/sve/pcs/varargs_1.c: Likewise. * gcc.target/aarch64/sve/pcs/varargs_2_f16.c: Likewise. * gcc.target/aarch64/sve/pcs/varargs_2_f32.c: Likewise. * gcc.target/aarch64/sve/pcs/varargs_2_f64.c: Likewise. * gcc.target/aarch64/sve/pcs/varargs_2_s16.c: Likewise. * gcc.target/aarch64/sve/pcs/varargs_2_s32.c: Likewise. * gcc.target/aarch64/sve/pcs/varargs_2_s64.c: Likewise. * gcc.target/aarch64/sve/pcs/varargs_2_s8.c: Likewise. * gcc.target/aarch64/sve/pcs/varargs_2_u16.c: Likewise. * gcc.target/aarch64/sve/pcs/varargs_2_u32.c: Likewise. * gcc.target/aarch64/sve/pcs/varargs_2_u64.c: Likewise. * gcc.target/aarch64/sve/pcs/varargs_2_u8.c: Likewise. --- gcc/ChangeLog | 6 ++ gcc/doc/sourcebuild.texi | 12 ++-- gcc/testsuite/ChangeLog | 58 +++++++++++++++++++ .../gcc.target/aarch64/sve/pcs/args_1.c | 2 +- .../gcc.target/aarch64/sve/pcs/args_2.c | 2 +- .../gcc.target/aarch64/sve/pcs/args_3.c | 2 +- .../gcc.target/aarch64/sve/pcs/args_4.c | 2 +- .../gcc.target/aarch64/sve/pcs/return_1.c | 2 +- .../aarch64/sve/pcs/return_1_1024.c | 2 +- .../gcc.target/aarch64/sve/pcs/return_1_128.c | 2 +- .../aarch64/sve/pcs/return_1_2048.c | 2 +- .../gcc.target/aarch64/sve/pcs/return_1_256.c | 2 +- .../gcc.target/aarch64/sve/pcs/return_1_512.c | 2 +- .../gcc.target/aarch64/sve/pcs/return_2.c | 2 +- .../gcc.target/aarch64/sve/pcs/return_3.c | 2 +- .../gcc.target/aarch64/sve/pcs/return_4.c | 2 +- .../aarch64/sve/pcs/return_4_1024.c | 2 +- .../gcc.target/aarch64/sve/pcs/return_4_128.c | 2 +- .../aarch64/sve/pcs/return_4_2048.c | 2 +- .../gcc.target/aarch64/sve/pcs/return_4_256.c | 2 +- .../gcc.target/aarch64/sve/pcs/return_4_512.c | 2 +- .../gcc.target/aarch64/sve/pcs/return_5.c | 2 +- .../aarch64/sve/pcs/return_5_1024.c | 2 +- .../gcc.target/aarch64/sve/pcs/return_5_128.c | 2 +- .../aarch64/sve/pcs/return_5_2048.c | 2 +- .../gcc.target/aarch64/sve/pcs/return_5_256.c | 2 +- .../gcc.target/aarch64/sve/pcs/return_5_512.c | 2 +- .../gcc.target/aarch64/sve/pcs/return_6.c | 2 +- .../aarch64/sve/pcs/return_6_1024.c | 2 +- .../gcc.target/aarch64/sve/pcs/return_6_128.c | 2 +- .../aarch64/sve/pcs/return_6_2048.c | 2 +- .../gcc.target/aarch64/sve/pcs/return_6_256.c | 2 +- .../gcc.target/aarch64/sve/pcs/return_6_512.c | 2 +- .../aarch64/sve/pcs/saves_2_be_nowrap.c | 2 +- .../aarch64/sve/pcs/saves_2_be_wrap.c | 2 +- .../aarch64/sve/pcs/saves_2_le_nowrap.c | 2 +- .../aarch64/sve/pcs/saves_2_le_wrap.c | 2 +- .../gcc.target/aarch64/sve/pcs/saves_3.c | 2 +- .../gcc.target/aarch64/sve/pcs/saves_4_be.c | 2 +- .../gcc.target/aarch64/sve/pcs/saves_4_le.c | 2 +- .../aarch64/sve/pcs/stack_clash_2_128.c | 2 +- .../gcc.target/aarch64/sve/pcs/varargs_1.c | 2 +- .../aarch64/sve/pcs/varargs_2_f16.c | 2 +- .../aarch64/sve/pcs/varargs_2_f32.c | 2 +- .../aarch64/sve/pcs/varargs_2_f64.c | 2 +- .../aarch64/sve/pcs/varargs_2_s16.c | 2 +- .../aarch64/sve/pcs/varargs_2_s32.c | 2 +- .../aarch64/sve/pcs/varargs_2_s64.c | 2 +- .../gcc.target/aarch64/sve/pcs/varargs_2_s8.c | 2 +- .../aarch64/sve/pcs/varargs_2_u16.c | 2 +- .../aarch64/sve/pcs/varargs_2_u32.c | 2 +- .../aarch64/sve/pcs/varargs_2_u64.c | 2 +- .../gcc.target/aarch64/sve/pcs/varargs_2_u8.c | 2 +- gcc/testsuite/lib/scanasm.exp | 16 ++++- 54 files changed, 134 insertions(+), 58 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 80492ef4163..d211d7391a8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2020-04-09 Richard Sandiford + + * doc/sourcebuild.texi (check-function-bodies): Treat the third + parameter as a list of option regexps and require each regexp + to match. + 2020-04-09 Andrea Corallo PR target/94530 diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index 26a57e3199b..0bccae8eeee 100644 --- a/gcc/doc/sourcebuild.texi +++ b/gcc/doc/sourcebuild.texi @@ -2754,17 +2754,19 @@ assembly output. Passes if @var{symbol} is not defined as a hidden symbol in the test's assembly output. -@item check-function-bodies @var{prefix} @var{terminator} [@var{option} [@{ target/xfail @var{selector} @}]] +@item check-function-bodies @var{prefix} @var{terminator} [@var{options} [@{ target/xfail @var{selector} @}]] Looks through the source file for comments that give the expected assembly output for selected functions. Each line of expected output starts with the prefix string @var{prefix} and the expected output for a function as a whole is followed by a line that starts with the string @var{terminator}. Specifying an empty terminator is equivalent to specifying @samp{"*/"}. -If @var{option} is specified, the test only applies to command lines -that contain @var{option}. This can be useful if a source file is compiled -both with and without optimization, since it is rarely useful to check the -assembly output for unoptimized code. +@var{options}, if specified, is a list of regular expressions, each of +which matches a full command-line option. A non-empty list prevents +the test from running unless all of the given options are present on the +command line. This can help if a source file is compiled both with +and without optimization, since it is rarely useful to check the full +function body for unoptimized code. The first line of the expected output for a function @var{fn} has the form: diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ba530077ee2..991241ee27f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,61 @@ +2020-04-09 Richard Sandiford + + * lib/scanasm.exp (check-function-bodies): Treat the third + parameter as a list of option regexps and require each regexp + to match. Check for cases in which a target/xfail selector + was mistakenly passed to the options argument. + * gcc.target/aarch64/sve/pcs/args_1.c: Add an empty options list + to the invocation of check-function-bodies. + * gcc.target/aarch64/sve/pcs/args_2.c: Likewise. + * gcc.target/aarch64/sve/pcs/args_3.c: Likewise. + * gcc.target/aarch64/sve/pcs/args_4.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_1.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_1_1024.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_1_128.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_1_2048.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_1_256.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_1_512.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_2.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_3.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_4.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_4_1024.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_4_128.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_4_2048.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_4_256.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_4_512.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_5.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_5_1024.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_5_128.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_5_2048.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_5_256.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_5_512.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_6.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_6_1024.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_6_128.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_6_2048.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_6_256.c: Likewise. + * gcc.target/aarch64/sve/pcs/return_6_512.c: Likewise. + * gcc.target/aarch64/sve/pcs/saves_2_be_nowrap.c: Likewise. + * gcc.target/aarch64/sve/pcs/saves_2_be_wrap.c: Likewise. + * gcc.target/aarch64/sve/pcs/saves_2_le_nowrap.c: Likewise. + * gcc.target/aarch64/sve/pcs/saves_2_le_wrap.c: Likewise. + * gcc.target/aarch64/sve/pcs/saves_3.c: Likewise. + * gcc.target/aarch64/sve/pcs/saves_4_be.c: Likewise. + * gcc.target/aarch64/sve/pcs/saves_4_le.c: Likewise. + * gcc.target/aarch64/sve/pcs/stack_clash_2_128.c: Likewise. + * gcc.target/aarch64/sve/pcs/varargs_1.c: Likewise. + * gcc.target/aarch64/sve/pcs/varargs_2_f16.c: Likewise. + * gcc.target/aarch64/sve/pcs/varargs_2_f32.c: Likewise. + * gcc.target/aarch64/sve/pcs/varargs_2_f64.c: Likewise. + * gcc.target/aarch64/sve/pcs/varargs_2_s16.c: Likewise. + * gcc.target/aarch64/sve/pcs/varargs_2_s32.c: Likewise. + * gcc.target/aarch64/sve/pcs/varargs_2_s64.c: Likewise. + * gcc.target/aarch64/sve/pcs/varargs_2_s8.c: Likewise. + * gcc.target/aarch64/sve/pcs/varargs_2_u16.c: Likewise. + * gcc.target/aarch64/sve/pcs/varargs_2_u32.c: Likewise. + * gcc.target/aarch64/sve/pcs/varargs_2_u64.c: Likewise. + * gcc.target/aarch64/sve/pcs/varargs_2_u8.c: Likewise. + 2020-04-09 Richard Biener PR testsuite/93369 diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_1.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_1.c index ab7c4a10cfb..4509fff223a 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_1.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_1.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_2.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_2.c index 43a50887dc9..29e80dc7733 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_2.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_2.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_3.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_3.c index 49fdfc98464..611f3d03bca 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_3.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_3.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_4.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_4.c index 4f15fdd50a5..c40d63e678e 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_4.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/args_4.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1.c index f6328c901ae..8ad16045ef0 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ /* ** callee_pred: diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_1024.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_1024.c index 450a3f02971..d351a1d2520 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_1024.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_1024.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=1024 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ /* ** callee_pred: diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_128.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_128.c index 75d1e2252f3..c164c01a944 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_128.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_128.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=128 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target { aarch64_little_endian && lp64 } } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target { aarch64_little_endian && lp64 } } } } */ /* ** callee_pred: diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_2048.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_2048.c index c9ea2689926..cb0f2f0ee53 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_2048.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_2048.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=2048 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ /* ** callee_pred: diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_256.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_256.c index 62bc695d141..c5d7181831a 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_256.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_256.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=256 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ /* ** callee_pred: diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_512.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_512.c index f687689ce9f..41b3eff9aa1 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_512.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_1_512.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=512 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ /* ** callee_pred: diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_2.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_2.c index efaa81394a9..676be9d90ea 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_2.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_2.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_3.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_3.c index 71046447d7b..2bb6c792651 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_3.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_3.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4.c index 00eb2cbda8d..1e38371842f 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #define CALLEE(SUFFIX, TYPE) \ TYPE __attribute__((noipa)) \ diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_1024.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_1024.c index 43519634c45..491c35af221 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_1024.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_1024.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=1024 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #define CALLEE(SUFFIX, TYPE) \ TYPE __attribute__((noipa)) \ diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_128.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_128.c index 6b490226bff..eebb913273a 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_128.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_128.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=128 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target { aarch64_little_endian && lp64 } } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target { aarch64_little_endian && lp64 } } } } */ #define CALLEE(SUFFIX, TYPE) \ TYPE __attribute__((noipa)) \ diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_2048.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_2048.c index 8256645f56c..73c3b2ec045 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_2048.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_2048.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=2048 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #define CALLEE(SUFFIX, TYPE) \ TYPE __attribute__((noipa)) \ diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_256.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_256.c index 1e0f6bb96f8..29744c81402 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_256.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_256.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=256 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #define CALLEE(SUFFIX, TYPE) \ TYPE __attribute__((noipa)) \ diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_512.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_512.c index 5b58ed73454..cf25c31bcbf 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_512.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_4_512.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=512 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #define CALLEE(SUFFIX, TYPE) \ TYPE __attribute__((noipa)) \ diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5.c index 55c78e16f65..9ad3e227654 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_1024.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_1024.c index 52e9916d8bc..d573e5fc69c 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_1024.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_1024.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=1024 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_128.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_128.c index cfb2f381937..200b0eb8242 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_128.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_128.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=128 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target { aarch64_little_endian && lp64 } } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target { aarch64_little_endian && lp64 } } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_2048.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_2048.c index 6f37d9d6c44..f6f8858fd47 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_2048.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_2048.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=2048 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_256.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_256.c index 7ba094e1667..e62f59cc885 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_256.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_256.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=256 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_512.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_512.c index 36b14d42089..483558cb576 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_512.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_5_512.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=512 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6.c index 72468eab1fd..1bc2f43bcf9 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_1024.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_1024.c index b6f267e7695..de69d9a42ce 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_1024.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_1024.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=1024 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_128.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_128.c index fd838453feb..4f190fd1444 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_128.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_128.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=128 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target { aarch64_little_endian && lp64 } } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target { aarch64_little_endian && lp64 } } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_2048.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_2048.c index 46b7d683e02..0b64ff2e8c2 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_2048.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_2048.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=2048 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_256.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_256.c index 04872493c86..9eb71e3dcc3 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_256.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_256.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=256 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_512.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_512.c index 9817d856a13..8b8d0c7c860 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_512.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/return_6_512.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -msve-vector-bits=512 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_2_be_nowrap.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_2_be_nowrap.c index 7c4884d0e59..f9532d3ca7f 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_2_be_nowrap.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_2_be_nowrap.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -mbig-endian -fno-shrink-wrap -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ void standard_callee (void); __attribute__((aarch64_vector_pcs)) void vpcs_callee (void); diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_2_be_wrap.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_2_be_wrap.c index 872364f8752..bbc4f84ec9f 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_2_be_wrap.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_2_be_wrap.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -mbig-endian -fshrink-wrap -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ void standard_callee (void); __attribute__((aarch64_vector_pcs)) void vpcs_callee (void); diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_2_le_nowrap.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_2_le_nowrap.c index 4ba71c0abae..8e734d47b59 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_2_le_nowrap.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_2_le_nowrap.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -mlittle-endian -fno-shrink-wrap -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ void standard_callee (void); __attribute__((aarch64_vector_pcs)) void vpcs_callee (void); diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_2_le_wrap.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_2_le_wrap.c index c3acd40faca..fab393aec06 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_2_le_wrap.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_2_le_wrap.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -mlittle-endian -fshrink-wrap -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ void standard_callee (void); __attribute__((aarch64_vector_pcs)) void vpcs_callee (void); diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_3.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_3.c index 1fe86b0eac3..2d29ce2c000 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_3.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_3.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_4_be.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_4_be.c index aa67bee255d..38a414cb4bd 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_4_be.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_4_be.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -mbig-endian -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ void standard_callee (__SVInt8_t *); diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_4_le.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_4_le.c index ab232d7ee7a..f8fe5d1cc0d 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_4_le.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/saves_4_le.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -mlittle-endian -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ void standard_callee (__SVInt8_t *); diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/stack_clash_2_128.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/stack_clash_2_128.c index e41de101d79..41193b411e6 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/stack_clash_2_128.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/stack_clash_2_128.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -fshrink-wrap -fstack-clash-protection -msve-vector-bits=128 -g" } */ -/* { dg-final { check-function-bodies "**" "" { target { aarch64_little_endian && lp64 } } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target { aarch64_little_endian && lp64 } } } } */ #pragma GCC aarch64 "arm_sve.h" diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_1.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_1.c index 6987245a6fc..72960fd4ef2 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_1.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_1.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_f16.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_f16.c index 79098851cd6..9b9162051a7 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_f16.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_f16.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_f32.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_f32.c index 325b0b2aaff..b979f43eac1 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_f32.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_f32.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_f64.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_f64.c index 07a6c707e05..6f2235f0266 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_f64.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_f64.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_s16.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_s16.c index 1730638337d..523d3becdb7 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_s16.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_s16.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_s32.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_s32.c index d93db8fc80e..afde5a7151b 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_s32.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_s32.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_s64.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_s64.c index b8c77455d7d..d119d0ae356 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_s64.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_s64.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_s8.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_s8.c index de7cbe37d48..ce6d663ae09 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_s8.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_s8.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_u16.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_u16.c index 59c9ca7dbb8..50ae7ba2454 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_u16.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_u16.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_u32.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_u32.c index 3050ad5f6c1..d726c723df9 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_u32.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_u32.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_u64.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_u64.c index 94322a34c79..ef1265c88b1 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_u64.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_u64.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include #include diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_u8.c b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_u8.c index cf8ac21711d..e6a82fed0bd 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_u8.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/pcs/varargs_2_u8.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-stack-clash-protection -g" } */ -/* { dg-final { check-function-bodies "**" "" { target lp64 } } } */ +/* { dg-final { check-function-bodies "**" "" "" { target lp64 } } } */ #include #include diff --git a/gcc/testsuite/lib/scanasm.exp b/gcc/testsuite/lib/scanasm.exp index f7d27735112..8d2364f93a9 100644 --- a/gcc/testsuite/lib/scanasm.exp +++ b/gcc/testsuite/lib/scanasm.exp @@ -617,7 +617,7 @@ proc check-function-bodies { args } { } if { [llength $args] >= 3 } { - set required_flag [lindex $args 2] + set required_flags [lindex $args 2] upvar 2 dg-extra-tool-flags extra_tool_flags set flags $extra_tool_flags @@ -626,8 +626,18 @@ proc check-function-bodies { args } { if { [info exists torture_current_flags] } { append flags " " $torture_current_flags } - if { ![regexp " $required_flag " $flags] } { - return + foreach required_flag $required_flags { + switch -- $required_flag { + target - + xfail { + error "misplaced $required_flag in check-function-bodies" + } + } + } + foreach required_flag $required_flags { + if { ![regexp " $required_flag " $flags] } { + return + } } } -- 2.30.2