[PATCH] Support APX NF

H.J. Lu hjl.tools@gmail.com
Wed Feb 28 16:11:25 GMT 2024


On Tue, Feb 27, 2024 at 1:02 AM Cui, Lili <lili.cui@intel.com> wrote:
>
> gas/ChangeLog:
>
>         * config/tc-i386.c (enum i386_error): Add unsupported_nf.
>         (struct _i386_insn): Add has_nf.
>         (need_evex_encoding): Ditto.
>         (is_apx_evex_encoding): Ditto.
>         (build_apx_evex_prefix): Encode the NF bit.
>         (md_assemble): Handle unsupported_nf.
>         (parse_insn): Handle Prefix_NF.
>         (match_template): Check NF support.
>         * testsuite/gas/i386/x86-64.exp: Add apx nf tests.
>         * testsuite/gas/i386/x86-64-apx-nf-intel.d: New test.
>         * testsuite/gas/i386/x86-64-apx-nf.d: Ditto.
>         * testsuite/gas/i386/x86-64-apx-nf.s: Ditto.
>
> opcodes/ChangeLog:
>
>         * i386-dis-evex.h: Add %XN to the instructions that support APX NF and
>         add new instruction imul, popcnt, tzcnt and lzcnt to EVEX table.
>         * i386-dis-evex-reg.h: Ditto.
>         * i386-dis.c (struct instr_info): Add nf.
>         (struct dis386): Add "XN" for EVEX.NF.
>         (get_valid_dis386): Set ins->vex.nf.
>         (print_insn): Handle ins.vex.nf.
>         (putop): Handle "%XN".
>         * i386-opc.h (Prefix_NoOptimize): Adjust the value.
>         (Prefix_NF): New.
>         * i386-opc.tbl: Add new entries for the instructions that support APX NF.
>         * i386-mnem.h: Regenerated.
>         * i386-tbl.h: Regenerated.
>

Please mention it in gas/NEWS.

H.J.


More information about the Binutils mailing list