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]: Add missing *mmx_pextrb and *mmx_pextr{b,w}_zext patterns


We can implement these for TARGET_MMX_WITH_SSE (and TARGET_SSE4_1 in
case of.pextrb).

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

    * config/i386/i386.md (ix86_expand_vector_extract) <case E_V2SImode>:
    Use vec_extr path for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
    <case E_V8QImode>: Ditto.
    * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
    Use SWI48 mode iterator.  Use %k to output operand 0.
    (*mmx_pextrw): New insn pattern.
    (*mmx_pextrb): Ditto.
    (*mmx_pextrb_zext): Ditto.

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]