This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Changed sema checking range for tdw td builtin
ClosedPublic

Authored by Conanap on Jul 26 2021, 12:16 PM.

Details

Summary

To match xlc behaviour and definition in the PowerPC ISA3.1,
it is a better idea to have ibm-clang produce an error when a
0 is passed to the builtin, which will match xlc's behaviour.
This patch changes the accepted range from 0 to 31 to 1 to 31.

Diff Detail

Event Timeline

Conanap created this revision.Jul 26 2021, 12:16 PM
Conanap requested review of this revision.Jul 26 2021, 12:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2021, 12:16 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
Conanap added reviewers: Restricted Project, nemanjai.Jul 26 2021, 12:17 PM
Conanap updated this revision to Diff 361754.Jul 26 2021, 12:23 PM

Updated test cases

NeHuang accepted this revision as: NeHuang.Jul 26 2021, 12:50 PM
NeHuang added a subscriber: NeHuang.

LGTM.

This revision is now accepted and ready to land.Jul 26 2021, 12:50 PM
Conanap edited the summary of this revision. (Show Details)Jul 26 2021, 1:40 PM
amyk accepted this revision as: amyk.Jul 26 2021, 2:48 PM
amyk added a subscriber: amyk.

LGTM.

This revision was landed with ongoing or failed builds.Jul 26 2021, 4:44 PM
This revision was automatically updated to reflect the committed changes.