[LLVMbugs] [Bug 7471] New: Clang doesn't complain when using 32-bit only inline asm statements in with -arch x86_64

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 23 13:07:59 PDT 2010


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

           Summary: Clang doesn't complain when using 32-bit only inline
                    asm statements in with -arch x86_64
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu


$ cat test.c
void f() {
  __asm("pusha\n");
}
$ gcc -arch i386 -c test.c  # works, good
$ clang -arch i386 -c test.c  # works, good
$ gcc -arch x86_64 -c test.c  # complains, good
/var/folders/++/++1Gyk++6+0++4RjPqRgNE++ojg/-Tmp-//ccQENppe.s:9:`pusha' is not
supported in 64-bit mode
$ clang -arch i386 -c test.c  # doesn't complain, bad

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