Hi, Because we switch intrinsics for avx512bf16 to the new type __bf16. Now we could use m128/256bh for vector bf16 type instead of m128/256bf16. And unified builtin for avx512bf16/avxneconvert. Thanks, Lingling > -----Original Message----- > From: Hongtao Liu > Sent: Tuesday, October 25, 2022 1:23 PM > To: Kong, Lingling > Cc: Liu, Hongtao ; gcc-patches@gcc.gnu.org; Jiang, > Haochen > Subject: Re: [PATCH 4/6] Support Intel AVX-NE-CONVERT > > On Mon, Oct 24, 2022 at 2:20 PM Kong, Lingling > wrote: > > > > > From: Gcc-patches > > > > > > On Behalf Of Hongtao Liu via Gcc-patches > > > Sent: Monday, October 17, 2022 1:47 PM > > > To: Jiang, Haochen > > > Cc: Liu, Hongtao ; gcc-patches@gcc.gnu.org > > > Subject: Re: [PATCH 4/6] Support Intel AVX-NE-CONVERT > > > > > > On Fri, Oct 14, 2022 at 3:58 PM Haochen Jiang via Gcc-patches > > > wrote: > > > > > > > > From: Kong Lingling > > > > +(define_insn "vbcstne2ps_" > > > > + [(set (match_operand:VF1_128_256 0 "register_operand" "=x") > > > > + (vec_duplicate:VF1_128_256 > > > > + (unspec:SF > > > > + [(match_operand:HI 1 "memory_operand" "m")] > > > > + VBCSTNE)))] > > > > + "TARGET_AVXNECONVERT" > > > > + "vbcstne2ps\t{%1, %0|%0, %1}" > > > > + [(set_attr "prefix" "vex") > > > > + (set_attr "mode" "")]) > > > Since jakub has support bf16 software emulation, can we rewrite it > > > with general rtl ir without unspec? > > > Like (float_extend:SF (match_operand:BF "memory_operand" "m") > > > > + > > > > +(define_int_iterator VCVTNEBF16 > > > > + [UNSPEC_VCVTNEEBF16SF > > > > + UNSPEC_VCVTNEOBF16SF]) > > > > + > > > > +(define_int_attr vcvtnebf16type > > > > + [(UNSPEC_VCVTNEEBF16SF "ebf16") > > > > + (UNSPEC_VCVTNEOBF16SF "obf16")]) (define_insn > > > > +"vcvtne2ps_" > > > > + [(set (match_operand:VF1_128_256 0 "register_operand" "=x") > > > > + (unspec:VF1_128_256 > > > > + [(match_operand: 1 "memory_operand" "m")] > > > > + VCVTNEBF16))] > > > > + "TARGET_AVXNECONVERT" > > > > + "vcvtne2ps\t{%1, %0|%0, %1}" > > > > + [(set_attr "prefix" "vex") > > > > + (set_attr "mode" "")]) > > > Similar for this one and all those patterns below. > > > > That's great! Thanks for the review! > > Now rewrite it without unspec and use float_extend for new define_insn. > Ok. > > > > Thanks > > Lingling > > > > > > > -- > BR, > Hongtao