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]: Fix PR85950, Unsafe-math-optimizations regresses optimization using SSE4.1 roundss


Hello!

Attached patch enables l<rounding_insn><MODEF:mode><SWI48:mode>2 for
TARGET_SSE4.1, and while there, also corrects operand 1 predicate of
rounds{s,d} instruction.

2018-05-29  Uros Bizjak  <ubizjak@gmail.com>

    PR target/85950
    * config/i386/i386.md (l<rounding_insn><MODEF:mode><SWI48:mode>2):
    Enable for TARGET_SSE4_1 and generate rounds{s,d} and cvtts{s,d}2si{,q}
    sequence.
    (sse4_1_round<mode>2): Use nonimmediate_operand
    for operand 1 predicate.

testsuite/ChangeLog:

2018-05-29  Uros Bizjak  <ubizjak@gmail.com>

    PR target/85950
    * gcc.target/i386/pr85950.c: New test.

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]