[llvm-bugs] [Bug 31172] New: [inline asm] _asm not supported - ms compatibilty

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Nov 27 05:29:03 PST 2016


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

            Bug ID: 31172
           Summary: [inline asm] _asm not supported - ms compatibilty
           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: ziv.izhar at intel.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

The following code, does not compile in clang, however, it does compile in
visual studio (and in icc aswell):

int main(){
  _asm {mov eax,ebx}
  return 0;
}

with __asm, it does work.

the error:
<source>:2:3: error: use of undeclared identifier '_asm'
_asm {mov eax,ebx}
^
1 error generated.
Compiler exited with result code 1

-- 
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/20161127/17cd1824/attachment.html>


More information about the llvm-bugs mailing list