re PR target/85950 (Unsafe-math-optimizations regresses optimization using SSE4.1...
authorUros Bizjak <ubizjak@gmail.com>
Tue, 29 May 2018 18:35:34 +0000 (20:35 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 29 May 2018 18:35:34 +0000 (20:35 +0200)
commit5d2e68ea0afc4dbb3fda7679c19749a0a5dd6def
tree485e4c28ad77497edf7414c5559c5dedad820559
parent72930d9f29c982dea8e5a219ad1baaf3f6d9c750
re PR target/85950 (Unsafe-math-optimizations regresses optimization using SSE4.1 roundss)

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:

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

From-SVN: r260903
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr85950.c [new file with mode: 0644]