[LLVMdev] Clang error - CPU feature not currently enabled

Eric Christopher echristo at gmail.com
Wed Nov 14 10:10:44 PST 2012


Hey cool, thanks!

-eric


On Wed, Nov 14, 2012 at 10:06 AM, Jim Grosbach <grosbach at apple.com> wrote:

> Yep. That diagnostic is terrible.
>
> As of r167937 we get:
> error: instruction requires: 32-bit mode
> jmp *%edx
> ^
>
> -Jim
>
>
> On Nov 14, 2012, at 8:41 AM, Eric Christopher <echristo at gmail.com> wrote:
>
> Most likely candidate for sure. Not a helpful error message though :(
>
> -eric
>
>
> On Wed, Nov 14, 2012 at 8:17 AM, Craig Topper <craig.topper at gmail.com>wrote:
>
>>  I believe it's failing on 64-bit because that's a 32-bit indirect jump.
>> 64-bit needs jmp *%rdx.
>>
>>
>> On Wednesday, November 14, 2012, Shaltiel, Alon wrote:
>>
>>>  ** **
>>>
>>> ** **
>>>
>>> *From:* Shaltiel, Alon
>>> *Sent:* Wednesday, November 14, 2012 11:39 AM
>>> *To:* 'llvmdev at cs.uiuc.edu'
>>> *Subject:* Clang error - CPU feature not currently enabled****
>>>
>>> ** **
>>>
>>> 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?****
>>>
>>>  ****
>>>
>>> Thanks,****
>>>
>>> Alon****
>>>
>>> ** **
>>>
>>> PS****
>>>
>>> Sorry for the Subject mistake in the last email****
>>>
>>> ** **
>>>  ------------------------------
>>>
>>>
>>> This message is confidential and intended only for the addressee. If you
>>> have received this message in error, please immediately notify the
>>> postmaster at nds.com and delete it from your system as well as any
>>> copies. The content of e-mails as well as traffic data may be monitored by
>>> NDS for employment and security purposes.
>>> To protect the environment please do not print this e-mail unless
>>> necessary.
>>>
>>> An NDS Group Limited company. www.nds.com****
>>>
>>
>>
>> --
>> ~Craig
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121114/a9aec3c2/attachment.html>


More information about the llvm-dev mailing list