From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 44942385841F; Mon, 17 Oct 2022 03:09:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 44942385841F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665976146; bh=14ygyIinqthzl30REPgnPSJjwUnn1okDhkAadzLWsAg=; h=From:To:Subject:Date:From; b=Mbd+1dls4eeno+BIoSo/8eBsFm4oMC0AhG2jKgpy7QFJpLV31EDj+51apG8o6TDCi xDr4Po5OiLghcvVIMcaThpdksmWjb3ScjoXYDUchnw4V0UmVoWIMjxTZ7Sn1oC3XgF mP7fc+A1rt0mFoSMIocYYiloN+f5MUryRQ3ar45c= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/107284] New: Option properties Mask infrastructure can be extended with wide_int_bitmask Date: Mon, 17 Oct 2022 03:09:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D107284 Bug ID: 107284 Summary: Option properties Mask infrastructure can be extended with wide_int_bitmask Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: crazylht at gmail dot com Target Milestone: --- For x86, as more and more ISAs are introduced, we're almost running out of ix86_isa_flags2, a ix86_isa_flags3 needs to be introduced, that caused maintainance difficulty since there're depenedence between bits in different isa_flag(and several values used as same purpose for isa bit mask), it woul= d be nice if we can introduce wide_int_bit_mask in the opth-gen.awk/opts-functions.awk ..etc, extend wide_int_bit_mask to 256 bits, and overload bit set/shift in wide_int_bitmask.h. So the backend can be released from maintain those "overloads" for mask bits.=