cris: Enable extend operations to SImode to set condition codes.
authorHans-Peter Nilsson <hp@axis.com>
Fri, 31 Jan 2020 07:24:43 +0000 (08:24 +0100)
committerHans-Peter Nilsson <hp@axis.com>
Sat, 9 May 2020 02:08:47 +0000 (04:08 +0200)
commit61c964c7fd2ad96cec262a2bcd1fc13bd2e2eff8
tree500522c95ec87da0da005cfbf71cdc2a0938f2ad
parent3c7016b08f7a1f62e13a0805d1b5eb1685d3c475
cris: Enable extend operations to SImode to set condition codes.

Enable dropping of compares with zero of the result, through the
three CCmode substitutions and the cmpelim pass.

gcc:
* config/cris/cris.md
("<acc><anz><anzvc>extend<mode>si2<setcc><setnz><setnzvc>"):
Rename from "extend<mode>si2".
("<acc><anz><anzvc>zero_extend<mode>si2<setcc><setnz><setnzvc>"):
Similar, from "zero_extend<mode>si2".
gcc/ChangeLog
gcc/config/cris/cris.md