re PR target/62055 (missed optimization: recognize fnabs (FP negative absolute value...
authorUros Bizjak <uros@gcc.gnu.org>
Mon, 17 Jun 2019 18:40:22 +0000 (20:40 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 17 Jun 2019 18:40:22 +0000 (20:40 +0200)
commita064fd4c7385442dd4f9f3a1b538aef2fdac5209
tree8f24018f01d949be7aed5c71b94ea8254f667a31
parentbf0af866a4f2792a91310d8b809e25ffbdd9e1f7
re PR target/62055 (missed optimization: recognize fnabs (FP negative absolute value) (x86-64))

PR target/62055
* config/i386/i386.md (*nabstf2_1): New insn pattern.
(*nabs<mode>2_1): Ditto.
(nabs sse-reg splitter): New splitter.
* config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.

testsuite/ChangeLog:

PR target/62055
* gcc.target/i386/fnabs.c: New test.

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