From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BCC48385116F; Wed, 24 Aug 2022 18:31:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BCC48385116F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661365891; bh=z7nivqokZOaM4H+Ti3XMCMGT88a0x1gAlP/4HYrBrGs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XQF8U4MsoJDy9ptx1EZAdJwVfBhSXakk93/XjcieLBYB6iL8zKkN9OhMDNn0UezLw 6MfCmA8/tYyzEaGjInyQPbr99GKGD74O1ldYwEx86xFV5TYMvCWWQDABHST7tSUnUX 9eCN0r3A5SluQGp86luJFqpQnr1Lxg0M8AAK+8pA= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/106690] check_effective_target_bswap should be enabled for riscv if ZBB ISA extension is enabled Date: Wed, 24 Aug 2022 18:31:31 +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: 12.0 X-Bugzilla-Keywords: internal-improvement, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pinskia at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D106690 --- Comment #3 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:dec5faa2b2f0d311daa6defd4b4f3c1965748ddf commit r13-2180-gdec5faa2b2f0d311daa6defd4b4f3c1965748ddf Author: Andrew Pinski Date: Fri Aug 19 22:09:30 2022 +0000 Fix PR 106690: enable effective_target_bswap for RISCV targets with ZBB enabled by default While looking for testcases to quickly test, I Noticed that check_effective_target_bswap was not enabled for riscv when ZBB is enabled. This patch checks if ZBB is enabled when targeting RISCV* for bswap. OK? Ran the testsuite for riscv32-linux-gnu both with and without ZBB enabled. PR testsuite/106690 gcc/testsuite/ChangeLog: * lib/target-supports.exp (check_effective_target_bswap): Return true if riscv and ZBB ISA extension is enabled.=