https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111767

            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__ */

Reply via email to