This is an archive of the discontinued LLVM Phabricator instance.

[NFC][X86] Add MC tests for all untested VIA PadLock instructions
ClosedPublic

Authored by jrtc27 on Oct 22 2021, 5:16 PM.

Details

Summary

We currently only test the encoding of xstore but none of the other
instructions, which should all have their implicit REP prefix be
verified as working.

Diff Detail

Event Timeline

jrtc27 requested review of this revision.Oct 22 2021, 5:16 PM
jrtc27 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 22 2021, 5:16 PM

Do we have a test for xstorerng alias?

Do we have a test for xstorerng alias?

No. We also don't seem to have tests for, nor even handle, the xstore-rng / xcrypt-ecb forms that seem to be the canonical forms GNU objdump prints.

(Not that I really want to do that myself, I just saw the commit notification email for the FreeBSD workaround and figured I should fix LLVM)

joerg added a subscriber: joerg.Oct 22 2021, 5:30 PM

It should be noted that xstore is currently misassembled compared to GNU as.

This revision is now accepted and ready to land.Oct 22 2021, 5:31 PM

It should be noted that xstore is currently misassembled compared to GNU as.

Yes, that was the motivation for this; see the child revision :)

This revision was landed with ongoing or failed builds.Oct 22 2021, 5:57 PM
This revision was automatically updated to reflect the committed changes.