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

Moshe Kravchik mkravchik at hotmail.com
Wed Jun 12 12:18:06 PDT 2013


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.
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130612/e87ed436/attachment.html>


More information about the llvm-dev mailing list