i386: Use SWI48DWI mode iterator for abs and maxmin [PR97873]
authorUros Bizjak <ubizjak@gmail.com>
Sun, 22 Nov 2020 21:26:48 +0000 (22:26 +0100)
committerUros Bizjak <ubizjak@gmail.com>
Sun, 22 Nov 2020 21:27:35 +0000 (22:27 +0100)
commite23f47ec4065e9eec53c4ad9db91bc36a4f90793
treeb11fbf0779b3e971e693060c3d6d456a2d0a2db7
parentf16897cb4b1468374d63b1a6b12d8b7be845874a
i386: Use SWI48DWI mode iterator for abs and maxmin [PR97873]

Generate special double mode sequence also for TImode on 64bit targets.

2020-11-22  Uroš Bizjak  <ubizjak@gmail.com>

PR target/97873

gcc/
* config/i386/i386.md (abs<mode>2): Use SWI48DWI mode iterator.
(*abs<dwi>2_doubleword): Use DWIH mode iterator.

(<maxmin:code><mode>3): Use SWI48DWI mode iterator.
(*<maxmin:code><dwi>3_doubleword): Use DWIH mode iterator.

gcc/testsuite/
* gcc.target/i386/pr97873-2.c: New test.
gcc/config/i386/i386.md
gcc/testsuite/gcc.target/i386/pr97873-2.c [new file with mode: 0644]