From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 313C33858C5E; Mon, 5 Feb 2024 13:08:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 313C33858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707138505; bh=3l/kI3vX4vYgjYikbF76ajbZjk9W0Y+aEik8qDcUCkM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PrzELFFyuG3HKfIMC7893aY7VTptCvECUUD89CbjTWKSndFyfeErNHueLTppF23CP U/ySe4vygACfJ0W4K9Efr+1TiQnWpiYN/QDhOLmivWRlPteZX7fbw6NszCWYlKC1bo deu6pxthyG5RrUxzjnu/b4nLxpTOss8cWMpnaXcM= From: "sebastian.huber@embedded-brains.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/106680] Test gcc.target/powerpc/bswap64-4.c fails on 32-bit BE Date: Mon, 05 Feb 2024 13:08:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sebastian.huber@embedded-brains.de X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: linkw at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106680 --- Comment #10 from Sebastian Huber -= -- (In reply to Kewen Lin from comment #9) > Note that now we only disable implicit powerpc64 for -m32 when the > OS_MISSING_POWERPC64 is set. >=20 > /* Don't expect powerpc64 enabled on those OSes with OS_MISSING_POWERPC= 64, > since they do not save and restore the high half of the GPRs correct= ly > in all cases. If the user explicitly specifies it, we won't interfe= re > with the user's specification. */ > #ifdef OS_MISSING_POWERPC64 > if (OS_MISSING_POWERPC64 > && TARGET_32BIT > && TARGET_POWERPC64 > && !(rs6000_isa_flags_explicit & OPTION_MASK_POWERPC64)) > rs6000_isa_flags &=3D ~OPTION_MASK_POWERPC64; > #endif >=20 > But rtems.h doesn't define OS_MISSING_POWERPC64 RTEMS supports the 64-bit PowerPC for the 64-bit multilibs. >=20 > gcc/config/rs6000/linux.h:#define OS_MISSING_POWERPC64 1 > gcc/config/rs6000/freebsd64.h:#define OS_MISSING_POWERPC64 !TARGET_64BIT > gcc/config/rs6000/aix.h:#define OS_MISSING_POWERPC64 1 > gcc/config/rs6000/linux64.h:#define OS_MISSING_POWERPC64 !TARGET_64BIT >=20 > meanwhile cpu "e6500" has MASK_POWERPC64 set by default (it's 64bit core). >=20 > That's why you still have powerpc64 flag set when you specify -m32 on rte= ms. For some applications, you don't need the 64-bit support on the e6500 machi= nes. So, we have 32-bit and 64-bit multilibs. This is just a performance optimization for some applications.=