This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, i386]: Introduce uavg<mode>3_ceil for 64bit MMX modes


Attached patch introduces uavg<mode>3_ceil for V8QI and V4HI modes for
TARGET_MMX_WITH_SSE targets.  Also, the patch fixes invalid RTX
generation for SSE and AVX uavg<mode>3 patterns.

2019-08-16  Uroš Bizjak  <ubizjak@gmail.com>

    * config/i386/mmx.md (mmxdoublemode): New mode attribute.
    (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
    mmx_uavgv4hi3 using MMXMODE12 mode iterator.
    (uavg<mode>3_ceil): New expander.
    * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
    mode iterator when creating CONST1_RTX.
    (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
    (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
    mode iterator for const1_operand predicate.

Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.

Committed to mainline SVN.

Uros.

Attachment: p.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]