]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Restrict mpc860_no_lwsync.c to Power ilp32 targets [PR125448]
authorKishan Parmar <kishan@linux.ibm.com>
Wed, 27 May 2026 16:24:57 +0000 (21:54 +0530)
committerKishan Parmar <kishan@linux.ibm.com>
Wed, 27 May 2026 16:24:57 +0000 (21:54 +0530)
The recently added mpc860_no_lwsync.c test case fails on 64-bit PowerPC
targets (such as powerpc64le-linux-gnu) because the default -m64 option
conflicts with the 32-bit legacy processor specified by -mcpu=860,
resulting in the error: "cc1: error: '-m64' requires a PowerPC64 cpu".

Fix this by restricting the test case execution to 32-bit PowerPC
targets using the 'ilp32' target requirement.

2026-05-27  Kishan Parmar  <kishan@linux.ibm.com>
    Surya Kumari Jangala  <jskumari@linux.ibm.com>

gcc/testsuite/ChangeLog:
PR target/125448
* gcc.target/powerpc/mpc860_no_lwsync.c: Restrict to ilp32 targets.

gcc/testsuite/gcc.target/powerpc/mpc860_no_lwsync.c

index 575d35e18030a947063dbb071a7187038bb022d3..04f4a932e0f719ba691a1ecef3b0ed737f7f5eef 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target powerpc*-*-* } } */
+/* { dg-do compile { target { powerpc*-*-* && ilp32 } } } */
 /* { dg-options "-mcpu=860 -O2" } */
 
 /* Check that we do not emit lwsync when targeting MPC8xx (MPCCORE),