amend SLP reduction testcases
authorRichard Biener <rguenther@suse.de>
Wed, 30 Sep 2020 14:12:20 +0000 (16:12 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 30 Sep 2020 14:54:37 +0000 (16:54 +0200)
This amends SLP reduction testcases that currently trigger
vect_attempt_slp_rearrange_stmts eliding load permutations to
verify this is actually happening.

2020-09-30  Richard Biener  <rguenther@suse.de>

* gcc.dg/vect/pr37027.c: Amend.
* gcc.dg/vect/pr67790.c: Likewise.
* gcc.dg/vect/pr92324-4.c: Likewise.
* gcc.dg/vect/pr92558.c: Likewise.
* gcc.dg/vect/pr95495.c: Likewise.
* gcc.dg/vect/slp-reduc-1.c: Likewise.
* gcc.dg/vect/slp-reduc-2.c: Likewise.
* gcc.dg/vect/slp-reduc-3.c: Likewise.
* gcc.dg/vect/slp-reduc-4.c: Likewise.
* gcc.dg/vect/slp-reduc-5.c: Likewise.
* gcc.dg/vect/slp-reduc-7.c: Likewise.
* gcc.dg/vect/vect-reduc-in-order-4.c: Likewise.

12 files changed:
gcc/testsuite/gcc.dg/vect/pr37027.c
gcc/testsuite/gcc.dg/vect/pr67790.c
gcc/testsuite/gcc.dg/vect/pr92324-4.c
gcc/testsuite/gcc.dg/vect/pr92558.c
gcc/testsuite/gcc.dg/vect/pr95495.c
gcc/testsuite/gcc.dg/vect/slp-reduc-1.c
gcc/testsuite/gcc.dg/vect/slp-reduc-2.c
gcc/testsuite/gcc.dg/vect/slp-reduc-3.c
gcc/testsuite/gcc.dg/vect/slp-reduc-4.c
gcc/testsuite/gcc.dg/vect/slp-reduc-5.c
gcc/testsuite/gcc.dg/vect/slp-reduc-7.c
gcc/testsuite/gcc.dg/vect/vect-reduc-in-order-4.c

index ef6760ec9247d1b2fe8583c62a1d6ff0ff21e45b..69f58264de9256103196acdf3216a73b36e7c682 100644 (file)
@@ -33,4 +33,4 @@ foo (void)
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_int_add } } } */
 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_no_int_add } } } */
-
+/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 0 "vect" } } */
index 5e2d506a730b3d44e5153c08b9b6dca57c0f8402..32eacd91fdaa209dc04efe934798e524ac5fea8d 100644 (file)
@@ -38,3 +38,4 @@ int main()
 }
 
 /* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */
+/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 0 "vect" } } */
index 834798522336ba6909301dcc46947753b5bd6ba3..57e117ca1098c6c368a0b0f48642f609a49eff3d 100644 (file)
@@ -28,3 +28,5 @@ int main ()
     __builtin_abort ();
   return 0;
 }
+
+/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 0 "vect" } } */
index 1d24fa0f2f85208bab2e2976529a4d4b769deff6..11f41320ec1d5a2fcce64a51041fd850412b5968 100644 (file)
@@ -21,3 +21,5 @@ int main()
     __builtin_abort ();
   return 0;
 }
+
+/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 0 "vect" } } */
index a961aef59fcc531a01a068ec978209c55a5d0fff..683f0f26a824f4335008b01779c244486c2ed59d 100644 (file)
@@ -14,3 +14,5 @@ h()
     d += e[f].b >> 1 | e[f].b & 1;
   }
 }
+
+/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 0 "vect" } } */
index b353dd7ccf8270624a0df5498bcf3cf6f82372c7..b9bddb8599448693f45e6c757ae427fc1a79f989 100644 (file)
@@ -44,4 +44,4 @@ int main (void)
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_int_add } } } */
 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_no_int_add } } } */
-
+/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 0 "vect" } } */
index 15dd59922fcbd36b9f48724af891b6dec1b87167..aa09d01975a7ea68ed0da10d65274273ed5760fc 100644 (file)
@@ -41,4 +41,5 @@ int main (void)
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_int_add } } } */
 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_no_int_add } } } */
+/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 0 "vect" } } */
 
index 7358275c3cba6b3fd41b34cb2449c85810b0a35c..4969fe82b257f75db27eb1f1ba4b848e3428697a 100644 (file)
@@ -60,3 +60,4 @@ int main (void)
 /* { dg-final { scan-tree-dump-times "vect_recog_dot_prod_pattern: detected" 1 "vect" { xfail *-*-* } } } */
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { target { vect_short_mult && { vect_widen_sum_hi_to_si  && vect_unpack } } } } } */ 
 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail { vect_widen_sum_hi_to_si_pattern || { ! vect_unpack } } } } } */
+/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 0 "vect" } } */
index d58e5b0fd22ae82d45cd3e7f4cc7a89056a659b4..266b439f0a63c1e66779fca627949223be9eff55 100644 (file)
@@ -58,4 +58,5 @@ int main (void)
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_int_min_max } } } */
 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail { vect_no_int_min_max || vect_variable_length } } } } */
+/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 0 "vect" } } */
 
index f457c11aa3c9743d50b0ae9e93d7182665f3ef77..11f5a7414cf30eda182bfdddbb52f6f3730954f3 100644 (file)
@@ -46,4 +46,4 @@ int main (void)
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { xfail vect_no_int_min_max } } } */
 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_no_int_min_max } } } */
-
+/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 0 "vect" } } */
index 43d1cee9fbee58ceddf4ac7978df65a5d867ef3e..05cc9eddacb8603e03c4d2e5e600d79b2466f521 100644 (file)
@@ -56,4 +56,4 @@ int main (void)
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_int_add } } } */
 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail { vect_no_int_add || vect_variable_length } } } } */
-
+/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 0 "vect" } } */
index 1cc046e4af41635c9f18eb034148377216201bfa..7706a2dc5b2a45a536c97796b4e8bc1b00479e68 100644 (file)
@@ -43,3 +43,4 @@ main ()
 
 /* { dg-final { scan-tree-dump {in-order unchained SLP reductions not supported} "vect" } } */
 /* { dg-final { scan-tree-dump-not {vectorizing stmts using SLP} "vect" } } */
+/* { dg-final { scan-tree-dump-times "VECT_PERM_EXPR" 0 "vect" } } */