[committed,AArch64] Tweak gcc.target/aarch64/sve/clastb_8.c
diff mbox series

Message ID mpty2wg140w.fsf@arm.com
State New
Headers show
Series
  • [committed,AArch64] Tweak gcc.target/aarch64/sve/clastb_8.c
Related show

Commit Message

Richard Sandiford Nov. 16, 2019, 10:58 a.m. UTC
clastb_8.c was using scan-tree-dump-times to check for fully-masked
loops, which made it sensitive to the number of times we try to
vectorize.

Tested on aarch64-linux-gnu and applied as r278340.

Richard


2019-11-16  Richard Sandiford  <richard.sandiford@arm.com>

gcc/testsuite/
	* gcc.target/aarch64/sve/clastb_8.c: Use assembly tests to
	check for fully-masked loops.

Patch
diff mbox series

Index: gcc/testsuite/gcc.target/aarch64/sve/clastb_8.c
===================================================================
--- gcc/testsuite/gcc.target/aarch64/sve/clastb_8.c	2019-10-29 08:29:01.800453312 +0000
+++ gcc/testsuite/gcc.target/aarch64/sve/clastb_8.c	2019-11-16 10:57:44.155194560 +0000
@@ -1,5 +1,5 @@ 
 /* { dg-do assemble { target aarch64_asm_sve_ok } } */
-/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details -msve-vector-bits=256 --save-temps" } */
+/* { dg-options "-O2 -ftree-vectorize -msve-vector-bits=256 --save-temps" } */
 
 #include <stdint.h>
 
@@ -19,8 +19,11 @@  TEST_TYPE (uint16_t);
 TEST_TYPE (uint32_t);
 TEST_TYPE (uint64_t);
 
-/* { dg-final { scan-tree-dump-times "using a fully-masked loop." 4 "vect" } } */
 /* { dg-final { scan-assembler {\tclastb\t(b[0-9]+), p[0-7], \1, z[0-9]+\.b\n} } } */
 /* { dg-final { scan-assembler {\tclastb\t(h[0-9]+), p[0-7], \1, z[0-9]+\.h\n} } } */
 /* { dg-final { scan-assembler {\tclastb\t(s[0-9]+), p[0-7], \1, z[0-9]+\.s\n} } } */
 /* { dg-final { scan-assembler {\tclastb\t(d[0-9]+), p[0-7], \1, z[0-9]+\.d\n} } } */
+/* { dg-final { scan-assembler {\twhilelo\tp[0-9]+\.b,} } } */
+/* { dg-final { scan-assembler {\twhilelo\tp[0-9]+\.h,} } } */
+/* { dg-final { scan-assembler {\twhilelo\tp[0-9]+\.s,} } } */
+/* { dg-final { scan-assembler {\twhilelo\tp[0-9]+\.d,} } } */