This is an archive of the discontinued LLVM Phabricator instance.

[X86][InlineAsm][Bugfix] Use mem size information (*word ptr) for "global variable + registers" memory expression in inline asm.
ClosedPublic

Authored by xiangzhangllvm on Sep 13 2021, 10:33 PM.

Details

Summary

Currently we miss the mem size info (e.g. *word ptr) for parsing MS InlineAsm
which use a global variable and one/two registers in a memory expression.

There was error of "ambiguous operand size for some instructions. (e.g. 'fmul')"

Diff Detail

Event Timeline

xiangzhangllvm requested review of this revision.Sep 13 2021, 10:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 13 2021, 10:33 PM
pengfei accepted this revision.Sep 14 2021, 6:51 PM

LGTM.

This revision is now accepted and ready to land.Sep 14 2021, 6:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 15 2021, 1:12 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript