From 2b31dc28c752146d2917a1702d20eac12701d034 Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Thu, 29 Jun 2023 11:44:04 +0100 Subject: [PATCH] [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). --- gcc/testsuite/gcc.target/i386/pieces-memcmp-2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.3