[llvm-bugs] [Bug 31004] New: [inline asm] IMM operand arithmetic parsing error

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Nov 13 03:24:43 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=31004

            Bug ID: 31004
           Summary: [inline asm] IMM operand arithmetic parsing error
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: ziv.izhar at intel.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

test:
int main()
{
  __asm mov eax, (~0xff | (255 & 0))
}

produces " error: unknown token in expression "
if you remove the outer () it will compile correctly:

int main()
{
  __asm mov eax, ~0xff | (255 & 0)
}

there's a problem parsing the outer () in IMM operand with arithmetic
operations

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161113/77065876/attachment.html>


More information about the llvm-bugs mailing list