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

            Bug ID: 31169
           Summary: [inline asm] asm goto not supported
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: ziv.iz...@intel.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

the following example doesn't compile in clang, however, gcc,icc do compile it:

void foo(int i, int j)
{
  __asm goto ("cmp %0,%1; je %l2" : : "r"(i), "r"(j) : : skip_stuff);
skip_stuff:
  return ;
}

The error message recieved in clang is:

<source>:3:9: error: 'asm goto' constructs are not supported yet
__asm goto ("cmp %0,%1; je %l2" : : "r"(i), "r"(j) : : skip_stuff);
^
1 error generated.
Compiler exited with result code 1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to