[LLVMbugs] [Bug 14408] New: unsupported inline asm: input with type 'long' matching output with type 'int'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 21 23:42:59 PST 2012


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

             Bug #: 14408
           Summary: unsupported inline asm: input with type 'long'
                    matching output with type 'int'
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: zhenbo1987 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


clang generate error instead of warning in the following testcase.

TestCase:
static inline __attribute__((no_instrument_function)) int ffs(int x)
{
   int r;
   long tmp = -1;
   asm("bsfl %1,%0"
       : "=r" (r)
       : "rm" (x), "0" (tmp));
   return r + 1;
}

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list