]> git.ipfire.org Git - thirdparty/gcc.git/commit
cris: Enable *movsi_internal to set condition codes.
authorHans-Peter Nilsson <hp@axis.com>
Thu, 30 Jan 2020 07:34:31 +0000 (08:34 +0100)
committerHans-Peter Nilsson <hp@axis.com>
Sat, 9 May 2020 01:54:10 +0000 (03:54 +0200)
commita82c9fb3f70ddc750cba82589894d473de48016e
tree9164052b4ced5c75ef39935677e943b829a1dd50
parentb3e01c3d1b61ecc903b577920ca43804a2cb5497
cris: Enable *movsi_internal to set condition codes.

Completion of, and first use of, the CRIS-specific parts of the
condition-code-setting framework, making use of the define_subst
machinery and the cmpelim optimization pass.  This round, just
moves in SImode.  Note the re-use of the cc0 era "cc" attribute
(tweaks needed).

gcc:
* config/cris/cris.md ("cc"): Comment on new use.
("cc_enabled"): New attribute.
("enabled"): Make default fall back to cc_enabled.
("setnz", "ccnz", "setnzvc", "ccnzvc", "setcc", "cccc"): New
default_subst_attrs.
("setnz_subst", "setnzvc_subst", "setcc_subst"): New default_subst.
("*movsi_internal<setcc><setnz><setnzvc>"): Rename from
"*movsi_internal".  Correct contents of, and rename attribute
"cc" to "cc<cccc><ccnz><ccnzvc>".
gcc/ChangeLog
gcc/config/cris/cris.md