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]: Improve split condition for complex MMX with SSE emulations


Attached patch improves the split condition from using
TARGET_MMX_WITH_SSE to TARGET_SSEx && SSE_REGNO_P, which is what these
splitters really split.

2019-07-02  Uroš Bizjak  <ubizjak@gmail.com>

    * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
    Use TARGET_SSE2 && SSE_REGNO_P in split condition.
    (mmx_packssdw): Ditto.
    (mmx_punpckhbw): Ditto.
    (mmx_punpcklbw): Ditto.
    (mmx_punpckhwd): Ditto.
    (mmx_punpcklwd): Ditto.
    (mmx_punpckhdq): Ditto.
    (mmx_punpckldq): Ditto.
    (*vec_dupv4hi): Ditto.
    (*vec_dupv2si): Ditto.
    (mmx_pmovmskb): Ditto.
    * config/i386/sse.md (sse_cvtpi2ps): Use
    TARGET_SSE2 && SSE_REG_P in split condition.
    (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
    TARGET_SSSE3 && SSE_REGNO_P in split condition.
    (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
    (ssse3_pshufbv8qi3): Ditto.
    (ssse3_palignrdi): 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]