This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Make speculation-hardening-sls.ll x16 test more robust
ClosedPublic

Authored by dmgreen on Oct 4 2021, 7:06 AM.

Details

Summary

As suggested in D110830, this copies the Arm backend method of testing function calls through specific registers, using inline assembly to force the variable into x16 to check that the __llvm_slsblr_thunk calls do not use a register that may be clobbered by the linker.

Diff Detail

Event Timeline

dmgreen requested review of this revision.Oct 4 2021, 7:06 AM
dmgreen created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 4 2021, 7:06 AM
kristof.beyls accepted this revision.Oct 4 2021, 7:54 AM

LGTM, thanks!

This revision is now accepted and ready to land.Oct 4 2021, 7:54 AM