From: Saurabh Jha Date: Tue, 30 Jan 2024 15:03:36 +0000 (+0000) Subject: Fix testcase pr112337.c to check the options [PR112337] X-Git-Tag: basepoints/gcc-15~818 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ba3171f161452df476485272cc966bc523d9859;p=thirdparty%2Fgcc.git Fix testcase pr112337.c to check the options [PR112337] gcc.target/arm/pr112337.c was failing to validate that adding MVE options was compatible with the test environment, so add the missing checks. gcc/testsuite/ChangeLog: PR target/112337 * gcc.target/arm/pr112337.c: Check for, then use the right MVE options. --- diff --git a/gcc/testsuite/gcc.target/arm/pr112337.c b/gcc/testsuite/gcc.target/arm/pr112337.c index 5dacf0aa4f86..10b7881b9f94 100644 --- a/gcc/testsuite/gcc.target/arm/pr112337.c +++ b/gcc/testsuite/gcc.target/arm/pr112337.c @@ -1,5 +1,7 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -march=armv8.1-m.main+fp.dp+mve.fp -mfloat-abi=hard" } */ +/* { dg-options "-O2" } */ +/* { dg-require-effective-target arm_v8_1m_mve_ok } */ +/* { dg-add-options arm_v8_1m_mve } */ #pragma GCC arm "arm_mve_types.h" int32x4_t h(void *p) { return __builtin_mve_vldrwq_sv4si(p); }