[LLVMbugs] [Bug 8592] New: error: invalid instruction mnemonic 'lretq'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Nov 11 21:02:48 PST 2010


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

           Summary: error: invalid instruction mnemonic 'lretq'
           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


While compiling the bitvisor-1.1, a hypervisor, I am encountering the following
error with clang

callrealmode.c:62:3: error: invalid instruction mnemonic 'lretq'
               "push %%rax\n"
               ^
<inline asm>:20:1: note: instantiated into assembly here
lretq
^
callrealmode.c:62:3: error: warning: ignoring directive for now
               "push %%rax\n"
               ^
<inline asm>:21:1: note: instantiated into assembly here
.code32
^
callrealmode.c:62:3: error: instruction requires a CPU feature not
currently enabled
               "push %%rax\n"

I have attached the callrealmode.i

The commandline to produce the error is below. the error occurs when the
integrated assembler of clang is invoked.

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 157 -fno-builtin -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o callrealmode.s -x cpp-output
callrealmode.i


clang -cc1as -triple x86_64-unknown-linux-gnu -filetype obj -o callrealmode.o
callrealmode.s

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