[PATCH v1 0/1] testsuite: arm: add require effective target for cmse tests

Torbjörn Svensson via Sourceware Forge <[email protected]>
Newsgroups gmane.comp.gcc.patches
Message-ID <[email protected]>
Hi gcc-patches mailing list,
Torbjörn Svensson via Sourceware Forge <[email protected]> has requested that the following forgejo pull request
be published on the mailing list.

Created on: 2026-08-07 16:20:38+00:00
Latest update: 2026-08-07 16:20:39+00:00
Changes: 2 changed files, 4 additions, 2 deletions
Head revision: azoff/gcc ref pr/gcc.target/arm/cmse/cmse-18-and-19 commit 25ebe2bd6a529a7cac86e25360617dcbc9cb789e
Base revision: gcc/gcc ref trunk commit 32657f29f918712ad7110bd54d8ebb3bf6b0a2a8 r17-2833-g32657f29f91871
Merge base: 32657f29f918712ad7110bd54d8ebb3bf6b0a2a8
Full diff url: https://forge.sourceware.org/gcc/gcc/pulls/212.diff
Discussion:  https://forge.sourceware.org/gcc/gcc/pulls/212
Requested Reviewers:

Regtested for arm-none-eabi on top of r17-2833-g32657f29f91871.

Ok for trunk and releases/gcc-16?

--

In order for the tests to pass, -mcpu=unset is needed to avoid conflict
between -march and any previous -mcpu argument.

Only run tests when able to, potentially, switch target to
armv8-m.main+fp and armv8.1-m.main+mve.
I did not use dg-add-options to do the target switching since it might
allow more options for the arch than +fp/+mve, for example +dsp, and
this will cause the

scan-rtl-dump final "call \\(mem:SI \\(reg/f:SI [0-7] r[0-7]"

test to fail.

gcc/testsuite/ChangeLog:

	* gcc.target/arm/cmse/cmse-18.c: Require effective target
	arm_arch_v8m_main_ok and add -mcpu=unset.
	* gcc.target/arm/cmse/cmse-19.c: Require effective target
	arm_v8_1m_mve_ok and add -mcpu=unset.

Signed-off-by: Torbjörn SVENSSON <[email protected]>

--


Changed files:
- M: gcc/testsuite/gcc.target/arm/cmse/cmse-18.c
- M: gcc/testsuite/gcc.target/arm/cmse/cmse-19.c


Torbjörn SVENSSON (1):
  testsuite: arm: add require effective target for cmse tests

 gcc/testsuite/gcc.target/arm/cmse/cmse-18.c | 3 ++-
 gcc/testsuite/gcc.target/arm/cmse/cmse-19.c | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

-- 
2.54.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.