testsuite: Compile slsr-39.c without vectorisation
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 23 Jun 2022 11:54:10 +0000 (12:54 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 23 Jun 2022 11:54:10 +0000 (12:54 +0100)
The fix for PR106019 regressed slsr-39.c for -m32 -march=cascadelake
because we are now able to vectorise the code.  (Whether the code model
should be allowing that is a different question -- the vectorised code
looked worse to me.)

The test runs at -O2 and predates vectorisation being enabled at -O2,
so this patch just adds -fno-tree-vectorize.

gcc/testsuite/
* gcc.dg/tree-ssa/slsr-39.c: Force vectorization off.

gcc/testsuite/gcc.dg/tree-ssa/slsr-39.c

index 4a27ede..33e34fa 100644 (file)
@@ -6,7 +6,7 @@
     *PINDEX:   C1 + (C2 * C3) + C4  */
 
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-slsr-details" } */
+/* { dg-options "-O2 -fno-tree-vectorize -fdump-tree-slsr-details" } */
 
 typedef int arr_2[50][50];