[PATCH 2/4][PR target/88808]Enable bitwise operator for AVX512 masks.

Hongtao Liu crazylht@gmail.com
Fri Aug 14 08:25:06 GMT 2020

  Enable direct move between masks and gprs in pass_reload with
consideration of cost model.

        * config/i386/i386.c (inline_secondary_memory_needed):
        No memory is needed between mask regs and gpr.
        (ix86_hard_regno_mode_ok): Add condition TARGET_AVX512F for
        mask regno.
        * config/i386/i386.h (enum reg_class): Add INT_MASK_REGS.
        (REG_CLASS_NAMES): Ditto.
        (REG_CLASS_CONTENTS): Ditto.
        * config/i386/i386.md: Exclude mask register in
        define_peephole2 which is available only for gpr.

        * gcc.target/i386/pr71453-1.c: New tests.
        * gcc.target/i386/pr71453-2.c: Ditto.
        * gcc.target/i386/pr71453-3.c: Ditto.
        * gcc.target/i386/pr71453-4.c: Ditto.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Enable-direct-movement-between-gpr-and-mask-register.patch
Type: text/x-patch
Size: 7928 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200814/04c08db4/attachment.bin>

More information about the Gcc-patches mailing list