[cfe-dev] Why isn't my asm matching?

Reid Kleckner rnk at google.com
Tue Mar 25 16:24:15 PDT 2014


Replied here: http://llvm.org/bugs/show_bug.cgi?id=19117#c3


On Thu, Mar 13, 2014 at 2:24 PM, JB Feldman <jb.feldman at kyrus-tech.com>wrote:

> Hi guys, I'm working on: http://llvm.org/bugs/show_bug.cgi?id=19117
>
> I've already gotten it to the point where it properly handles the '.'
> operator in the inline asm, thankfully that one already had a function
> implemented for it. Now I'm getting a new error about invalid operands. To
> test, I have modified the code from the PR to the following:
>
> int foo (LARGE_INTEGER LargeInteger, int x )
> {
>     __asm    {
>         mov     eax, LargeInteger.LowPart
>  mov eax, x
>     }
> }
>
> The first asm line crashes, because it cannot find a match. The second one
> works without issue. I'm currently poking around in the depths of
> validateOperandClass in x86GenAsmMatcher.inc. Any help or pointers would be
> appreciated.
>
> Thanks,
> JB
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140325/f993fc30/attachment.html>


More information about the cfe-dev mailing list