<div dir="ltr">Hi Renalto,<div><br></div><div>Looking more closely at that log message, it seems like it's the LHS that's going wrong - the decode_operand call. That is somewhat surprising, since there is more to go wrong on the RHS, but at least makes it easy to narrow down. If decode_operand is returning the wrong value, it must be that either (1) we're pointing at the wrong location (unlikely), (2) we have assembled the bits incorrectly, or (3) we have decoded the bits incorrectly.</div>
<div><br></div><div>Could you please run the llvm-mc line from the top of the test case and send me the resulting foo.o object? That would help me rule out the second option.</div><div><br></div><div>Cheers,</div><div>Lang.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 30, 2014 at 8:50 AM, Lang Hames <span dir="ltr"><<a href="mailto:lhames@gmail.com" target="_blank">lhames@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Renalto,<div><br></div><div>This test is notionally platform independent (in the sense that it should run the same on any target). I'll see if I can figure out what's going wrong here.</div><div>
<br>
</div><div>Thanks for the heads up!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>- Lang.</div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Wed, Jul 30, 2014 at 4:06 AM, Renato Golin <span dir="ltr"><<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 30 July 2014 04:35, Lang Hames <<a href="mailto:lhames@gmail.com" target="_blank">lhames@gmail.com</a>> wrote:<br>


> Author: lhames<br>
> Date: Tue Jul 29 22:35:05 2014<br>
> New Revision: 214285<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=214285&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=214285&view=rev</a><br>
> Log:<br>
> [MCJIT] Fix the ARM BR24 relocation in RuntimeDyldMachO.<br>
><br>
> We now (1) correctly decode the branch immediate, (2) modify the immediate to<br>
> corretly treat it as PC-rel, and (3) properly populate the stub entry.<br>
> Previously we had been doing each of these wrong.<br>
<br>
<br>
</div>Hi Lang,<br>
<br>
You've probably seen it, but just in case you didn't, this broke the ARM bot:<br>
<br>
<a href="http://lab.llvm.org:8011/builders/clang-native-arm-cortex-a15/builds/2150" target="_blank">http://lab.llvm.org:8011/builders/clang-native-arm-cortex-a15/builds/2150</a><br>
<br>
Is this a MachO specific thing that the JIT is not getting it right on Linux?<br>
<br>
cheers,<br>
--renato<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>