[LLVMbugs] [Bug 8595] New: error:instruction requires a CPU feature not currently enabled for pusha, popa, .code32, .code64,

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 12 11:17:41 PST 2010


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

           Summary: error:instruction requires a CPU feature not currently
                    enabled for pusha, popa, .code32, .code64,
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: santosh.nagarakatte at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=5764)
 --> (http://llvm.org/bugs/attachment.cgi?id=5764)
.i file with popa pusha .cod32 .code64 causing the problem

I am compiling bitvisor-1.1 with clang. While compiling the attached file
callrealmode.i, I am getting the following errors.

callrealmode.c:62:3: error: instruction requires a CPU feature not currently
enabled
                "push %%rax\n"
                ^
<inline asm>:30:1: note: instantiated into assembly here
pusha


callrealmode.c:62:3: error: warning: ignoring directive for now
                "push %%rax\n"
                ^
<inline asm>:40:1: note: instantiated into assembly here
.code64

callrealmode.c:62:3: error: instruction requires a CPU feature not currently
enabled
                "push %%rax\n"
                ^
<inline asm>:32:1: note: instantiated into assembly here
popa
^

The -cc1 commandline is below

clang -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name
callrealmode.c -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -disable-red-zone -target-cpu x86-64
-target-feature -sse -target-linker-version 2.20.51 -v -g -nostdinc
-resource-dir
/home/santoshn/llvm/llvm-svn-obj/Debug+Asserts/bin/../lib/clang/2.9 -O2 -Wall
-ferror-limit 19 -fmessage-length 166 -fno-builtin -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o callrealmode.s -x cpp-output
callrealmode.i

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