This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Add DFP compare instructions.
ClosedPublic

Authored by stefanp on May 18 2023, 12:09 PM.

Details

Summary

This patch adds the DFP compare instructions:
dcmpu, dcmpuq, dcmpo, dcmpoq

Diff Detail

Event Timeline

stefanp created this revision.May 18 2023, 12:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2023, 12:09 PM
stefanp requested review of this revision.May 18 2023, 12:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2023, 12:09 PM
amyk added a comment.May 19 2023, 11:11 AM

I think this patch looks OK to me, but I had one question regarding it.

llvm/lib/Target/PowerPC/PPCInstrDFP.td
46

I noticed some other compare instructions set hasSideEffects to 0 accordingly, but I was wondering if we need to do that here?

stefanp updated this revision to Diff 524838.May 23 2023, 12:10 PM

Missed a few flags for the instructions. Added them now.

llvm/lib/Target/PowerPC/PPCInstrDFP.td
46

Actually, I seem to have missed a few flags here and not just that one. I'll add the flags for this now.

amyk accepted this revision.May 24 2023, 7:59 AM

Thanks for addressing my comment, Stefan.
I do not have any further comments/questions, so I'm going to approve this. LGTM.

This revision is now accepted and ready to land.May 24 2023, 7:59 AM
This revision was automatically updated to reflect the committed changes.