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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to