This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Stop defining _ARCH_PWR6X on POWER7 and up
ClosedPublic

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

Details

Summary

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

Repository
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

LGTM

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.