]> git.ipfire.org Git - thirdparty/gcc.git/commit
rs6000: Change the length attribute default
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Aug 2018 19:40:07 +0000 (19:40 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Aug 2018 19:40:07 +0000 (19:40 +0000)
commit11a0bca53ffeafb1a69c26834e6b507b0a7b2f0b
tree0271cf031118408d52e3a3902419fafea8aaeca2
parentbef0714819bca838c9f6015a5251bdc2545df98b
rs6000: Change the length attribute default

This moves what is currently the default of the length attribute to
the only branch instruction patterns where it applies, namely, the
B-form instructions.  It was used for the "jump" instruction as well
before, but that is an I-form instruction and always has length 4.

* config/rs6000/rs6000.md (length): Always define as const_int 4.
(unnamed conditional branch define_insn): Set length to 4 or 8
depending on offset.
(<bd>_<mode>): Similar, for alternative 0.
(<bd>tf_<mode>): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263601 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/rs6000/rs6000.md