This is an archive of the discontinued LLVM Phabricator instance.

[msan] Check for AVX regs using offset
ClosedPublic

Authored by paulkirth on Jan 5 2022, 1:22 PM.

Details

Summary

glibc versions < 2.26 use different names for the fields.
However the layout is unchanged, so using the offset should be a
portable way to address this issue across platforms.

Fixes: https://github.com/llvm/llvm-project/issues/53014

Diff Detail

Event Timeline

paulkirth requested review of this revision.Jan 5 2022, 1:22 PM
paulkirth created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 5 2022, 1:22 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
phosek accepted this revision.Jan 5 2022, 2:36 PM

LGTM

This revision is now accepted and ready to land.Jan 5 2022, 2:36 PM
paulkirth updated this revision to Diff 397732.Jan 5 2022, 4:03 PM

Add Missing Header

phosek added inline comments.Jan 5 2022, 6:11 PM
compiler-rt/test/msan/Linux/signal_mcontext2.cpp
5

I'd use stdint.h instead which is more consistent with other tests and avoids header dependency on C++ standard library.

phosek added a comment.Jan 5 2022, 6:12 PM

Add Missing Header

Do we need the same header in the other tests as well?

paulkirth updated this revision to Diff 397765.Jan 5 2022, 6:28 PM

Address comments regarding header

paulkirth added inline comments.Jan 5 2022, 6:56 PM
compiler-rt/test/msan/Linux/signal_mcontext2.cpp
5

good point

This revision was landed with ongoing or failed builds.Jan 5 2022, 7:25 PM
This revision was automatically updated to reflect the committed changes.