]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Committed] Add -mmove-max=128 -mstore-max=128 to pieces-memcmp-2.c
authorRoger Sayle <roger@nextmovesoftware.com>
Thu, 29 Jun 2023 10:44:04 +0000 (11:44 +0100)
committerRoger Sayle <roger@nextmovesoftware.com>
Thu, 29 Jun 2023 10:44:04 +0000 (11:44 +0100)
Adding -mmove-max=128 and -mstore-max=128 to the dg-options of the
recently added gcc.target/i386/pieces-memcmp-2.c avoids changing the
intent of this testcase when adding -march=cascadelake to RUNTESTFLAGS.
Committed as obvious.

2023-06-29  Roger Sayle  <roger@nextmovesoftware.com>

gcc/testsuite/ChangeLog
* gcc.target/i386/pieces-memcmp-2.c: Specify that 128-bit
comparisons are desired, to see if 256-bit instructions are
generated inappropriately (fixes test on -march=cascadelake).

gcc/testsuite/gcc.target/i386/pieces-memcmp-2.c

index 6f996faeced2db414fcd8e5b27b3056a520a7333..6061c911165027ec5676b86d714b7c5f1e54d0a8 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target ia32 } } */
-/* { dg-options "-O2 -mavx2" } */
+/* { dg-options "-O2 -mavx2 -mmove-max=128 -mstore-max=128" } */
 
 int foo(char *a)
 {