http://llvm.org/bugs/show_bug.cgi?id=19116

            Bug ID: 19116
           Summary: MS Style Inline Asm failure
           Product: clang
           Version: trunk
          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

When compiling with clang-cl, the following code generates an error. This code
compiles without issue in cl.exe, and is adapted (simplified) from MS headers
(ntddk.h).

int main()
{
    __asm    {
    cmp cl, 32
    jc short done
    inc eax
done:
    inc eax
    }
}

sample.c:5:6: error: expected identifier
                jc short done
                   ^
1 error generated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to