Page MenuHomePhabricator

[PowerPC] Stop defining _ARCH_PWR6X on POWER7 and up

Authored by hubert.reinterpretcast on Feb 12 2019, 8:23 AM.



The predefined macro _ARCH_PWR6X is associated with GCC's -mcpu=power6x option, which enables generation of P6 "raw mode" instructions such as mftgpr.

Later POWER processors build upon the "architected mode", not the raw one. _ARCH_PWR6X should not be defined for these later processors.

Fixes PR#40236.

Diff Detail

rC Clang

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptFeb 12 2019, 8:23 AM
Herald added a subscriber: jsji. · View Herald Transcript
hfinkel accepted this revision.Feb 12 2019, 9:24 AM


This revision is now accepted and ready to land.Feb 12 2019, 9:24 AM
This revision was automatically updated to reflect the committed changes.