[llvm-bugs] [Bug 35115] New: clang-cl: error: expected identifier 'short' with inline asm jne short foo

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Oct 28 04:51:15 PDT 2017


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

            Bug ID: 35115
           Summary: clang-cl: error: expected identifier 'short' with
                    inline asm jne short foo
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: amine.khaldi at reactos.org
                CC: llvm-bugs at lists.llvm.org

int main() {
    __asm {
        jne short foo
    foo:
        push ebx
    }
}

cl compiles it, but clang-cl emits:

test.c(3,13) :  error: expected identifier
        jne short foo
            ^
test.c(3,13) :  error: use of undeclared label 'short foo
        foo:
        push ebx'
2 errors generated.

-- 
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/20171028/8d54f781/attachment.html>


More information about the llvm-bugs mailing list