<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>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.<div><br></div><div>Moshe<br><br><div>> Date: Wed, 12 Jun 2013 10:53:56 -0700<br>> Subject: Re: [LLVMdev] Apple clang 4.2 based on llvm 3.2 produces a wrong "instruction requires:arm-mode"<br>> From: t.p.northover@gmail.com<br>> To: mkravchik@hotmail.com<br>> CC: llvmdev@cs.uiuc.edu<br>> <br>> Hi Moshe,<br>> <br>> The others are right that you'll likely get better Apple-specific help<br>> at the forums, but this problem happens to be the same in generic<br>> LLVM.<br>> <br>> > ./src/asm.s:30:5: error: instruction requires a CPU feature not currently enabled<br>> ><br>> >     add r2, pc, r2<br>> ><br>> > According to ARM specification:<br>> <br>> The specifications you're referring to are a little vague, and the<br>> actual instruction definitions give the real situation (page/section<br>> A3-308).<br>> <br>> I think it boils down to:<br>> "add r2, r2, pc" should be allowed (but LLVM doesn't, this is a bug).<br>> "add r2, pc" should be allowed (and is)<br>> "add r2, pc, r2" should be allowed *if* it's in an IT block (but LLVM<br>> doesn't, this is a bug).<br>> <br>> That last one might be rather tricky to implement. I'll take a bit of<br>> a look, but may not have time to do it properly. Reporting it at<br>> llvm.org/bugs (and/or bugreporter.apple.com since that seems to be<br>> your platform) would make sure it doesn't get lost.<br>> <br>> Cheers.<br>> <br>> Tim.<br></div></div>                                     </div></body>
</html>