[LLVMdev] Apple clang 4.2 based on llvm 3.2 produces a wrong "instruction requires:arm-mode"

Eric Christopher echristo at gmail.com
Wed Jun 12 13:10:21 PDT 2013


Hi Moshe,

Tim just did tell you what to do :)

"Reporting it at llvm.org/bugs (and/or bugreporter.apple.com since
that seems to be your platform) would make sure it doesn't get lost."

So filing a bug report would be best.

-eric


On Wed, Jun 12, 2013 at 12:18 PM, Moshe Kravchik <mkravchik at hotmail.com> wrote:
> So probably it is a LLVM issue - can anyone from the team look at it and let
> me know if there is anything to do.
>
> Moshe
>
>> Date: Wed, 12 Jun 2013 10:53:56 -0700
>> Subject: Re: [LLVMdev] Apple clang 4.2 based on llvm 3.2 produces a wrong
>> "instruction requires:arm-mode"
>> From: t.p.northover at gmail.com
>> To: mkravchik at hotmail.com
>> CC: llvmdev at cs.uiuc.edu
>
>>
>> Hi Moshe,
>>
>> The others are right that you'll likely get better Apple-specific help
>> at the forums, but this problem happens to be the same in generic
>> LLVM.
>>
>> > ./src/asm.s:30:5: error: instruction requires a CPU feature not
>> > currently enabled
>> >
>> > add r2, pc, r2
>> >
>> > According to ARM specification:
>>
>> The specifications you're referring to are a little vague, and the
>> actual instruction definitions give the real situation (page/section
>> A3-308).
>>
>> I think it boils down to:
>> "add r2, r2, pc" should be allowed (but LLVM doesn't, this is a bug).
>> "add r2, pc" should be allowed (and is)
>> "add r2, pc, r2" should be allowed *if* it's in an IT block (but LLVM
>> doesn't, this is a bug).
>>
>> That last one might be rather tricky to implement. I'll take a bit of
>> a look, but may not have time to do it properly. Reporting it at
>> llvm.org/bugs (and/or bugreporter.apple.com since that seems to be
>> your platform) would make sure it doesn't get lost.
>>
>> Cheers.
>>
>> Tim.
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>



More information about the llvm-dev mailing list