i386: Fix abs an maxmin expanders for TARGET_PARTIAL_REG_STALL [PR98079].
authorUros Bizjak <ubizjak@gmail.com>
Wed, 2 Dec 2020 07:15:03 +0000 (08:15 +0100)
committerUros Bizjak <ubizjak@gmail.com>
Wed, 2 Dec 2020 07:28:11 +0000 (08:28 +0100)
commit018248ef6d03ca0088d5928928f966df99af134c
tree65623437285c5439c5f005480e6a91397e7376d0
parent49ca22dd67817acd196e81f7615162a88cb39587
i386: Fix abs an maxmin expanders for TARGET_PARTIAL_REG_STALL [PR98079].

QImode shold be enabled only for !TARGET_PARTIAL_REG_STALL

2020-12-02  Uroš Bizjak  <ubizjak@gmail.com>

PR target/98079

gcc/
* config/i386/i386.md (abs<mode>2): Enable QImode
only for !TARGET_PARTIAL_REG_STALL.
(*abs<mode>2_1): Ditto.
(<maxmin:code><mode>3): Ditto.
(*<maxmin:code><mode>3_1): Ditto.

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