[Committed] Tweak new gcc.target/i386/pr107548-1.c for -march=cascadelake.
Checks
Commit Message
My recently added testcases gcc.target/i386/pr107548-[12].c need to be
tweaked slightly for -march=cascadelake. Committed as obvious.
2022-12-24 Roger Sayle <roger@nextmovesoftware.com>
gcc/testsuite/ChangeLog
PR target/107548
* gcc.target/i386/pr107548-1.c: Match both vmovd and movd.
* gcc.target/i386/pr107548-2.c: Match both vpaddq and paddq.
Roger
--
Comments
On Dez 24 2022, Roger Sayle wrote:
> +/* { dg-final { scan-assembler-times "v?paddd" 6 } } */
Since this is not anchored, the v? pattern is redundant.
> +/* { dg-final { scan-assembler-times "v?paddq" 2 } } */
> +/* { dg-final { scan-assembler "v?psrldq" } } */
Likewise.
@@ -20,6 +20,6 @@ unsigned int foo3 (v4si a, v4si b)
return a[0] + a[3];
}
-/* { dg-final { scan-assembler-times "\tmovd\t" 3 } } */
-/* { dg-final { scan-assembler-times "paddd" 6 } } */
+/* { dg-final { scan-assembler-times "\tv?movd\t" 3 } } */
+/* { dg-final { scan-assembler-times "v?paddd" 6 } } */
/* { dg-final { scan-assembler-not "addl" } } */
@@ -9,5 +9,5 @@ unsigned long long foo(v2di a, v2di b)
}
/* { dg-final { scan-assembler-not "\taddq\t" } } */
-/* { dg-final { scan-assembler-times "paddq" 2 } } */
-/* { dg-final { scan-assembler "psrldq" } } */
+/* { dg-final { scan-assembler-times "v?paddq" 2 } } */
+/* { dg-final { scan-assembler "v?psrldq" } } */