[cfe-dev] MS inline asm parsing failures

Will Wilson will at indefiant.com
Fri Mar 8 03:51:21 PST 2013


Hi All,

I'm doing AST based analysis of some code that uses MS style inline asm
(target: i686-pc-win32) and I'm seeing some new errors since the
recent(ish) changes to inline parsing:

prefetchnta 64[ESI]


   - unexpected token in argument list

prefetchnta [esi + (200*64)]

   - unexpected token in argument list

movq mm1,  0[ESI]

   -

   unexpected token in argument list

and ecx, 111b

   -

   invalid reference to undefined symbol

add ecx, offset $label_name

   - Asserts in
   X86AsmParser::ParseIntelOffsetOfOperator() with "Expected an identifier"

Should these cases be supported in the first place?

- Will.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130308/fc4202e3/attachment.html>


More information about the cfe-dev mailing list