[cfe-dev] error:instruction requires a CPU feature not currently enabled for pusha, popa, .code32, .code64,

Chris Lattner clattner at apple.com
Mon Nov 15 13:16:22 PST 2010


On Nov 15, 2010, at 12:21 AM, Sebastian Redl wrote:

> On 12.11.2010 20:24, Santosh Nagarakatte wrote:
>> While compiling bitvisor-1.1 with clang, I am getting the following
>> errors. I am using clang from the trunk 118916 with x86_64 on linux.
>> 
>> I have filed a new bug report 8595
>> 
>> http://llvm.org/bugs/show_bug.cgi?id=8595
>> 
>> callrealmode.c:62:3: error: instruction requires a CPU feature not currently
>> enabled
>>                 "push %%rax\n"
>>                 ^
> Looks like the assembler thinks it's compiling for a 32-bit CPU. There 
> really isn't any other CPU feature other than 64-bit support that's 
> required for this instruction.

Yep, the issue here is that the mc assembler currently ignores .code32 and .code64, so it doesn't see the mode switch.

-Chris



More information about the cfe-dev mailing list