[llvm-bugs] [Bug 25657] New: [Inline asm] [ Microsoft ] Binary number under fasm-blocks return with error.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Nov 27 08:01:04 PST 2015


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

            Bug ID: 25657
           Summary: [Inline asm] [ Microsoft ] Binary number under
                    fasm-blocks return with error.
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: michael.zuckerman at intel.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Consider this program      
test.c:

void f()
{
  __asm {
        mov al,0b
  };
}
clang -fasm-blocks test.c
test.c:4:16: error: invalid reference to undefined symbol
        mov al,0b
               ^
1 error generated.

I found that the digit automat LexDigit() does not define for ‘b’ suffix. More,
Microsoft syntax accepts 1111b us a constant, but not as a label. We cannot
define the ‘b’ suffix in the automat, because it will create error for
instruction that use labels , like jmp.

-- 
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/20151127/f5ef801c/attachment.html>


More information about the llvm-bugs mailing list