This is an archive of the discontinued LLVM Phabricator instance.

'into' instruction should not be decoded as valid in 64-bit mode
ClosedPublic

Authored by avt77 on Aug 30 2017, 4:29 AM.

Details

Summary

It's a tiny patch to close https://bugs.llvm.org/show_bug.cgi?id=32808. Hope it will be accepted quickly.

Diff Detail

Event Timeline

avt77 created this revision.Aug 30 2017, 4:29 AM
craig.topper added inline comments.Sep 1 2017, 10:09 PM
lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp
761 ↗(On Diff #113240)

We don't need to do this here. Just add Requires<[Not64BitMode]> to the end of the instruction definition in X86InstrSystem.td.

craig.topper requested changes to this revision.Sep 1 2017, 10:10 PM
This revision now requires changes to proceed.Sep 1 2017, 10:10 PM
avt77 updated this revision to Diff 115816.Sep 19 2017, 3:17 AM
avt77 edited edge metadata.

I re-implemented the fix accordingly to Craig suggest.

This revision is now accepted and ready to land.Sep 19 2017, 5:44 PM
avt77 closed this revision.Sep 21 2017, 1:07 AM

r313735