[LLVMdev] About a problem in SROA

Eli Friedman eli.friedman at gmail.com
Wed Nov 14 11:09:22 PST 2012


On Wed, Nov 14, 2012 at 1:28 AM, Shaltiel, Alon <ashaltiel at nds.com> wrote:
> Hello,
>
> I’m trying to use clang to compile a file on Mac OS (x86_64) and get the
> following error.
>
>
>
> <inline asm>:4:2: error: instruction requires a CPU feature not currently
> enabled
>
>         jmp *%edx
>
>         ^
>
> fatal error: error in backend: Error parsing inline asm
>
>
>
> This file does compile on an Ubuntu 32bit machine
>
>
>
> I checked on google and didn’t find anything helpful about it.
>
> Does anyone know what CPU feature this instruction requires?

It requires that you're compiling in 32-bit mode.  The 64-bit
equivalent requires referencing a 64-bit register.

(Also, please don't use "reply" in your mail client to send a message
about an unrelated topic.)

-Eli




More information about the llvm-dev mailing list