]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix testcase pr112337.c to check the options [PR112337]
authorSaurabh Jha <saujha01@e130340.arm.com>
Tue, 30 Jan 2024 15:03:36 +0000 (15:03 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Tue, 5 Mar 2024 15:28:55 +0000 (15:28 +0000)
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.

gcc/testsuite/gcc.target/arm/pr112337.c

index 5dacf0aa4f866cfcafd4691ef25c6c15b51caea5..10b7881b9f94e521f8e102025e70deed75099b17 100644 (file)
@@ -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); }