]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: aarch64: restore torture options in bf16_dup.c
authorChristophe Lyon <christophe.lyon@linaro.org>
Mon, 17 Mar 2025 23:37:25 +0000 (23:37 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Tue, 25 Mar 2025 12:57:59 +0000 (12:57 +0000)
Remove dg-options, so that the test is executed as expected using the
options defined by advsimd-intrinsics.exp.
(Previously we pretend we do, but in fact all torture options are
silently overriden with -O2)

We skip it at -O0, because the tested optimizations does not take
place at this level.

gcc/testsuite/
* gcc.target/aarch64/advsimd-intrinsics/bf16_dup.c: Remove
dg-options.

gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/bf16_dup.c

index c42c7acbbe92d348e9cd18d3a03a38895af83632..da9370ba52bb68ef4397b6b072b5ae7a3e2e035b 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do assemble { target { aarch64*-*-* } } } */
+/* { dg-skip-if "no optimizations" { *-*-* } { "-O0" } { "" } } */
 /* { dg-require-effective-target arm_v8_2a_bf16_neon_ok } */
-/* { dg-options "-O2" } */
 /* { dg-add-options arm_v8_2a_bf16_neon }  */
 /* { dg-additional-options "-save-temps" } */