Page MenuHomePhabricator

[X86] Add a memory clobber to the bittest intrinsic inline asm. Get default clobbers from the target

Authored by craig.topper on Tue, Sep 22, 4:25 PM.



I believe the inline asm emitted here should have a memory clobber since it writes to memory.

It was also missing the dirflag clobber that we use by default along with flags and fpsr. To avoid missing defaults in the future, get the default list from the target

Diff Detail

Event Timeline

craig.topper requested review of this revision.Tue, Sep 22, 4:25 PM
craig.topper created this revision.
RKSimon added inline comments.Wed, Sep 23, 2:43 AM

Can you replace the regex with explicit checks for the clobbers here as well?

Update more check lines to fully check the clobbers

rnk accepted this revision.Wed, Sep 23, 11:12 AM


This revision is now accepted and ready to land.Wed, Sep 23, 11:12 AM
RKSimon accepted this revision.Wed, Sep 23, 1:17 PM

LGTM as well cheers

Herald added a project: Restricted Project. · View Herald TranscriptWed, Sep 23, 2:55 PM