https://gcc.gnu.org/g:f416e737d8463f81eb894fba0507e0f44c0a872d
commit r17-4504-gf416e737d8463f81eb894fba0507e0f44c0a872d Author: Kyrylo Tkachov <[email protected]> Date: Sun Sep 20 19:44:28 2026 +0200 testsuite: Do not force execution of saturation tests vect.exp selects compile-only testing when a target can generate vector code but cannot execute it. These tests override that choice with dg-do run whenever _BitInt is available. On arm-eabi Cortex-M3, the vector options select Armv7-A NEON, but the link uses M-profile runtime objects. The linker rejects the mixed architecture profiles. Require _BitInt without forcing execution. This lets vect.exp compile the tests on targets without runnable vector hardware and run them on targets that have it. Apply the same fix to the shifted truncation test, which has the same latent problem. Bootstrapped and tested on aarch64-unknown-linux-gnu. Tested on arm-eabi with Cortex-M3 options. gcc/testsuite/ChangeLog: * gcc.dg/vect/vect-sat-trunc-range-precision-1.c: Do not force execution. * gcc.dg/vect/vect-sat-trunc-shift-sign-source-1.c: Likewise. Signed-off-by: Kyrylo Tkachov <[email protected]> Diff: --- gcc/testsuite/gcc.dg/vect/vect-sat-trunc-range-precision-1.c | 2 +- gcc/testsuite/gcc.dg/vect/vect-sat-trunc-shift-sign-source-1.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/vect/vect-sat-trunc-range-precision-1.c b/gcc/testsuite/gcc.dg/vect/vect-sat-trunc-range-precision-1.c index 33649e9a2840..1de56c3b4efc 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-sat-trunc-range-precision-1.c +++ b/gcc/testsuite/gcc.dg/vect/vect-sat-trunc-range-precision-1.c @@ -1,4 +1,4 @@ -/* { dg-do run { target bitint } } */ +/* { dg-require-effective-target bitint } */ /* { dg-additional-options "-O3 -fvect-cost-model=unlimited" } */ typedef __INT8_TYPE__ int8_t; diff --git a/gcc/testsuite/gcc.dg/vect/vect-sat-trunc-shift-sign-source-1.c b/gcc/testsuite/gcc.dg/vect/vect-sat-trunc-shift-sign-source-1.c index 5d3fcf3ba3bb..3aca3d4b58ed 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-sat-trunc-shift-sign-source-1.c +++ b/gcc/testsuite/gcc.dg/vect/vect-sat-trunc-shift-sign-source-1.c @@ -1,4 +1,4 @@ -/* { dg-do run { target bitint } } */ +/* { dg-require-effective-target bitint } */ /* { dg-additional-options "-O3 -fvect-cost-model=unlimited" } */ typedef __INT8_TYPE__ int8_t;
