[LLVMbugs] [Bug 8332] New: llvm-gcc inline asm regression wrt 2.7

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 7 12:29:59 PDT 2010


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

           Summary: llvm-gcc inline asm regression wrt 2.7
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu


Both gcc and llvm-gcc from LLVM 2.7 accept this, however latest llvm-gcc says:

$ llvm-gcc -S asm-4.c
error: invalid operand in inline asm: 'test2 X${0:a}Y${0:a}Z'

This is on x86-64 linux.  Testcase:

int main()
{
  int z;
  asm volatile ("test2 X%a0Y%a[arg]Z" : : [arg] "p" (&z));
}

-- 
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