From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8DD7F3858D38; Tue, 29 Nov 2022 06:17:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8DD7F3858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669702651; bh=JazZGN4thybjdEpwSprpYPua3nZ9nn/87dnAo7A5uKY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=brNF5pSxo6zYFT1g9QwLX/Cjsp08dV8K1ypGifC3UpBHaGzBXqop52NEQST7lFIBC RVQtczLe6DDi3aaUB1fpVAGzSkBUMUpHAVgt9pIhkNjv1gxEF5guhNZ7YO4PIQZbQZ zXWqAHBnOh6A/5c2KIs7aIIUHSAHhxrC40R4q7i0= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107863] [10/11/12/13 Regression] ICE with unrecognizable insn when using -funsigned-char with some SSE/AVX builtins Date: Tue, 29 Nov 2022 06:17:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.2.1 X-Bugzilla-Keywords: FIXME, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 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=3D107863 --- Comment #10 from Hongtao.liu --- I notice there's TARGET_PROMOTE_PROTOTYPES which can prevent unsigend char = 255 be extended to int 255 which is a more perfect solution to this problem. Bu= t we can only get fntype in this hook, ideally we should check fndecl to make su= re it's target specific builtins since we don't want to prevent promotion for = args in other normal functions.=