diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2020-03-17 15:26:22 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2020-04-09 13:01:26 +0100 |
commit | 7ed2d6cbd094871a0dd23f2d433b962d5f462936 (patch) | |
tree | b6f46ebc5cf129ed060e2b62f7412d8bd7faf750 /gcc | |
parent | bb40460646ce4e6ad27a2f6795106d004d405314 (diff) | |
download | gcc-7ed2d6cbd094871a0dd23f2d433b962d5f462936.zip gcc-7ed2d6cbd094871a0dd23f2d433b962d5f462936.tar.gz gcc-7ed2d6cbd094871a0dd23f2d433b962d5f462936.tar.bz2 |
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 <richard.sandiford@arm.com>
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.
Diffstat (limited to 'gcc')
54 files changed, 134 insertions, 58 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 80492ef..d211d73 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2020-04-09 Richard Sandiford <richard.sandiford@arm.com> + + * 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 <andrea.corallo@arm.com> PR target/94530 diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index 26a57e3..0bccae8 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 ba530077..991241e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,61 @@ +2020-04-09 Richard Sandiford <richard.sandiford@arm.com> + + * 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 <rguenther@suse.de> 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 ab7c4a1..4509fff 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 <arm_sve.h> 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 43a5088..29e80dc 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 <arm_sve.h> 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 49fdfc9..611f3d0 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 <arm_sve.h> 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 4f15fdd..c40d63e 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 <arm_sve.h> 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 f6328c9..8ad1604 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 450a3f0..d351a1d2 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 75d1e22..c164c01 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 c9ea268..cb0f2f0 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 62bc695..c5d7181 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 f687689..41b3eff 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 efaa813..676be9d 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 <arm_sve.h> 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 7104644..2bb6c79 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 <arm_sve.h> 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 00eb2cb..1e38371 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 4351963..491c35a 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 6b49022..eebb913 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 8256645..73c3b2e 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 1e0f6bb..29744c8 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 5b58ed7..cf25c31 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 55c78e1..9ad3e22 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 <arm_sve.h> 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 52e9916..d573e5f 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 <arm_sve.h> 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 cfb2f38..200b0eb 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 <arm_sve.h> 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 6f37d9d..f6f8858 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 <arm_sve.h> 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 7ba094e..e62f59c 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 <arm_sve.h> 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 36b14d4..483558c 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 <arm_sve.h> 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 72468ea..1bc2f43 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 <stdint.h> 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 b6f267e..de69d9a 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 <stdint.h> 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 fd83845..4f190fd 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 <stdint.h> 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 46b7d68..0b64ff2 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 <stdint.h> 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 0487249..9eb71e3 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 <stdint.h> 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 9817d85..8b8d0c7 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 <stdint.h> 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 7c4884d..f9532d3 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 872364f..bbc4f84 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 4ba71c0..8e734d4 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 c3acd40..fab393a 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 1fe86b0..2d29ce2 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 <arm_sve.h> 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 aa67bee..38a414c 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 ab232d7..f8fe5d1 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 e41de10..41193b4 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 6987245..72960fd 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 <arm_sve.h> #include <stdarg.h> 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 7909885..9b91620 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 <arm_sve.h> #include <stdarg.h> 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 325b0b2..b979f43 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 <arm_sve.h> #include <stdarg.h> 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 07a6c70..6f2235f 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 <arm_sve.h> #include <stdarg.h> 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 1730638..523d3be 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 <arm_sve.h> #include <stdarg.h> 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 d93db8f..afde5a7 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 <arm_sve.h> #include <stdarg.h> 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 b8c7745..d119d0a 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 <arm_sve.h> #include <stdarg.h> 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 de7cbe3..ce6d663 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 <arm_sve.h> #include <stdarg.h> 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 59c9ca7..50ae7ba 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 <arm_sve.h> #include <stdarg.h> 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 3050ad5..d726c72 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 <arm_sve.h> #include <stdarg.h> 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 94322a3..ef1265c 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 <arm_sve.h> #include <stdarg.h> 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 cf8ac21..e6a82fe 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 <arm_sve.h> #include <stdarg.h> diff --git a/gcc/testsuite/lib/scanasm.exp b/gcc/testsuite/lib/scanasm.exp index f7d2773..8d2364f 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 + } } } |