From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B519E3858C52; Wed, 11 Oct 2023 08:20:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B519E3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697012439; bh=eGFhhQBMQlWnT+oKIcUupq5B8XY6FxFg1CuaH/YhFRs=; h=From:To:Subject:Date:From; b=TTMnYOOMpK0nmb+NpllISQN++Tlo516P7FEOsff6gpzFFKp4sFfVsui/+JC2LOZGv FJGitgM59gtdYlLqcmJoq54eP3t3T+Aj0jLMTw9ZgjNjcx8WKGUa/o5YzoblxzOrgi SSIKn/TiUWjZSLhfpO180sGC73pqmUIgRBmS+cvI= From: "joony.wie at samsung dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/111767] New: cast __mmask32 parameter to __mmask8 from macro function Date: Wed, 11 Oct 2023 08:20:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joony.wie at samsung 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=3D111767 Bug ID: 111767 Summary: cast __mmask32 parameter to __mmask8 from macro function Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: joony.wie at samsung dot com Target Milestone: --- the macro function cast the parameter "u" to __mmask8 for debug build. but the "u" should be __mmask32. /* Intrinsics vfpclassph. */ #ifdef __OPTIMIZE__ _mm512_mask_fpclass_ph_mask (__mmask32 __U, __m512h __A, const int __imm); #else #define _mm512_mask_fpclass_ph_mask(u, x, c) \ ((__mmask32) __builtin_ia32_fpclassph512_mask ((__v32hf) (__m512h) (x), \ (int) (c),(__mmask8)(u))) #endif /* __OPIMTIZE__ */=