summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/sve_clastb_2_run.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/aarch64/sve_clastb_2_run.c')
-rw-r--r--gcc/testsuite/gcc.target/aarch64/sve_clastb_2_run.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/gcc/testsuite/gcc.target/aarch64/sve_clastb_2_run.c b/gcc/testsuite/gcc.target/aarch64/sve_clastb_2_run.c
index 0503ba36c3d..0d5187ba3ae 100644
--- a/gcc/testsuite/gcc.target/aarch64/sve_clastb_2_run.c
+++ b/gcc/testsuite/gcc.target/aarch64/sve_clastb_2_run.c
@@ -1,25 +1,23 @@
/* { dg-do run { target aarch64_sve_hw } } */
-/* { dg-options "-O2 -ftree-vectorize -fno-inline -march=armv8-a+sve" } */
+/* { dg-options "-O2 -ftree-vectorize -march=armv8-a+sve" } */
#include "sve_clastb_2.c"
-extern void abort (void) __attribute__ ((noreturn));
-
-int
+int __attribute__ ((optimize (1)))
main (void)
{
unsigned int a[N] = {
- 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
- 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
- 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
- 31, 32
+ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
+ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
+ 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
+ 31, 32
};
- __builtin_memset (a+32, 43, (N-32)*sizeof (int));
+ __builtin_memset (a + 32, 43, (N - 32) * sizeof (int));
unsigned int ret = condition_reduction (a, 16);
if (ret != 10)
- abort ();
+ __builtin_abort ();
return 0;
}