]> git.ipfire.org Git - thirdparty/gcc.git/commit
rs6000: Add "enabled" attribute
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 May 2019 21:33:13 +0000 (21:33 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 May 2019 21:33:13 +0000 (21:33 +0000)
commit5d5bb87c59754c50195261b06f1720acd3f42fde
tree391d537b4417edfbcaf811ecad861dd5f25213d2
parent83987c445f83fbfcd95b460313d52b610cc75a57
rs6000: Add "enabled" attribute

This adds the "enabled" attribute to the rs6000 backend.  It uses the
(new) "isa" attribute to automatically select which instruction
alternatives should be enabled.

For now it allows isa strings of "p5", "p6", "p7", meaning the
instructions introduced on that CPU, not requiring vectors; and "p7v",
"p8v", "p9v" for the same, but with vectors.

These are currently mapped to TARGET_POPCNTB, TARGET_CMPB,
TARGET_POPCNTD, TARGET_VSX, TARGET_P8_VECTOR, and TARGET_P9_VECTOR;
that will change to something a bit saner later.

* config/rs6000/rs6000.md (isa): New attribute.
(enabled): New attribute.

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