From: Roger Sayle Date: Thu, 29 Jun 2023 10:44:04 +0000 (+0100) Subject: [Committed] Add -mmove-max=128 -mstore-max=128 to pieces-memcmp-2.c X-Git-Tag: basepoints/gcc-15~7952 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b31dc28c752146d2917a1702d20eac12701d034;p=thirdparty%2Fgcc.git [Committed] Add -mmove-max=128 -mstore-max=128 to pieces-memcmp-2.c 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 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). --- diff --git a/gcc/testsuite/gcc.target/i386/pieces-memcmp-2.c b/gcc/testsuite/gcc.target/i386/pieces-memcmp-2.c index 6f996faeced2..6061c9111650 100644 --- a/gcc/testsuite/gcc.target/i386/pieces-memcmp-2.c +++ b/gcc/testsuite/gcc.target/i386/pieces-memcmp-2.c @@ -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) {