diff mbox series

gcc.dg/torture/pr113255.c: Fix ia32 test failure

Message ID 20240123144234.2092090-1-user@gnu-cfl-3
State New
Headers show
Series gcc.dg/torture/pr113255.c: Fix ia32 test failure | expand

Commit Message

H.J. Lu Jan. 23, 2024, 2:42 p.m. UTC
Fix ia32 test failure:

FAIL: gcc.dg/torture/pr113255.c   -O1  (test for excess errors)
Excess errors:
cc1: error: '-mstringop-strategy=rep_8byte' not supported for 32-bit code

	PR rtl-optimization/113255
	* gcc.dg/torture/pr113255.c (dg-additional-options): Add only
	if not ia32.
---
 gcc/testsuite/gcc.dg/torture/pr113255.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.dg/torture/pr113255.c b/gcc/testsuite/gcc.dg/torture/pr113255.c
index 2f009524c6b..78af6a5a563 100644
--- a/gcc/testsuite/gcc.dg/torture/pr113255.c
+++ b/gcc/testsuite/gcc.dg/torture/pr113255.c
@@ -1,5 +1,5 @@ 
 /* { dg-do run } */
-/* { dg-additional-options "-mtune=k8 -mstringop-strategy=rep_8byte" { target { x86_64-*-* i?86-*-* } } } */
+/* { dg-additional-options "-mtune=k8 -mstringop-strategy=rep_8byte" { target { { i?86-*-* x86_64-*-* } && { ! ia32 } } } } */
 
 struct S { unsigned a[10]; unsigned y; unsigned b[6]; } g[2];