]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc.dg/torture/pr113255.c: Fix ia32 test failure
authorH.J. Lu <(no_default)>
Tue, 23 Jan 2024 14:34:43 +0000 (06:34 -0800)
committerH.J. Lu <(no_default)>
Tue, 23 Jan 2024 14:34:43 +0000 (06:34 -0800)
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

index 2f009524c6bf3ee5210533e5898803f42fc4df6c..78af6a5a5633489d75e52783d5d03d47bd31d099 100644 (file)
@@ -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];