Hi Artem,<div><br></div><div>Thanks for the patch. </div><div><span style="font-size:13.1999998092651px"><br></span></div><div><span style="font-size:13.1999998092651px">Couple of things:</span></div><div><span style="font-size:13.1999998092651px"><br></span></div><div><span style="font-size:13.1999998092651px">a) It's usually good to specify when you send the patch out exactly what the problem is and how this fixes it. It solves a lot of back and forth during review.</span></div><div>b) It's nice to attach the patch file (yes, this is different than a lot of projects) or use Phabricator for reviews. (Phabricator documentation is at <a href="http://llvm.org/docs/Phabricator">llvm.org/docs/Phabricator</a>).</div><div><br></div><div>Thanks!</div><div><br></div><div>-eric</div><div><br><div class="gmail_quote">On Thu Jan 08 2015 at 1:46:20 PM Artem Belevich <<a href="mailto:tra@google.com">tra@google.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ping!<br><br>BTW, the issue the patch fixes is a ubsan warning in the following test case:<br><br>test/ExecutionEngine/RuntimeDyld/AArch64/MachO_ARM64_relocations.s /tmp/foo.o<br>third_party/llvm/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h:186:47: runtime error: left shift of negative value -57344<br><br>--Artem<br><br>On Tue, Dec 23, 2014 at 1:02 PM, Artem Belevich <<a href="mailto:tra@google.com" target="_blank">tra@google.com</a>> wrote:<br>><br>> ---<br>> lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h | 5 +++--<br>> 1 file changed, 3 insertions(+), 2 deletions(-)<br>><br>> diff --git a/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h b/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h<br>> index 274c552..8fc58ee 100644<br>> --- a/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h<br>> +++ b/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h<br>> @@ -183,8 +183,9 @@ public:<br>> assert(isInt<33>(Addend) && "Invalid page reloc value.");<br>><br>> // Encode the addend into the instruction.<br>> - uint32_t ImmLoValue = (uint32_t)(Addend << 17) & 0x60000000;<br>> - uint32_t ImmHiValue = (uint32_t)(Addend >> 9) & 0x00FFFFE0;<br>> + uint64_t AddressBits = Addend & 0x1FFFFF000;<br>> + uint32_t ImmLoValue = (uint32_t)(AddressBits << 17) & 0x60000000;<br>> + uint32_t ImmHiValue = (uint32_t)(AddressBits >> 9) & 0x00FFFFE0;<br>> *p = (*p & 0x9F00001F) | ImmHiValue | ImmLoValue;<br>> break;<br>> }<br>> --<br>> 2.2.0.rc0.207.ga3a616c<br>><br><br><br><br>--<br>--Artem Belevich<br><div class="gmail_extra">
</div></div>
______________________________<u></u>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvm-commits</a><br>
</blockquote></div></div>