<div dir="auto">I think we really ought to move the discussion over to the experts at vm-dev. CC’ed. </div><div dir="auto"><br></div><div dir="auto">–Vanessa–</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Mon, May 10, 2021 at 03:55 Bruce O'Neel <<a href="mailto:bruce.oneel@pckswarms.ch">bruce.oneel@pckswarms.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div>Hi,<br></div><div><br></div><div>So, um, kind of good news but maybe not.<br></div><div><br></div><div>So I built a collection of different VMs on ARM64 and the most recent build is below.  The stack VM gives the right answer, the cog one not.   The dates are the dates of the most recent commit from the git repository.<br></div><div><br></div><div>2020/03/24 - Cog VM does not build, stack vm builds with the right answer.<br></div><div>2021/01/09 - Both stack and cog VMs build.  Stack VM gives the right answer.<br></div><div>2021/03/24 - Both stack and cog VMs build.  Stack VM gives the right answer.</div><div><br></div><div>All of this on a Ubuntu 18.04 based system with Gcc 7.5.0 on an NVIDIA Jetson Nano which has A57 cores.<br></div><div><br></div><div>I also in all cases with the cog VMs I tested the debug build as well in hopes that it was a GCC optimization problem, but, alas, no luck there.<br></div><div><br></div><div>Tim, is it possible to try a stack build and see if that gives the correct answer for you?<br></div><div><br></div><div>Thanks.<br></div><div><br></div><div>bruce<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><img title="image.png" alt="image.png" rel="width:400px;" src="cid:17956f1f6e4ea654a7f1" style="width: 926px; max-width: 100%;"></div><div id="m_-6722144466338867447editorUserSignature" style="display:none"><br></div><div><br></div><div><br></div><div><i>09 May 2021 19:56 tim Rowledge <<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>> wrote:</i><br></div><blockquote><div><br></div><div><br></div><div>> On 2021-05-09, at 7:31 AM, David T. Lewis wrote:<br></div><div> ><br></div><div> <br></div><div> > If the primitive is failing for 16r80000000 squared, then I wonder if we<br></div><div> > may be looking at a signed/unsigned arithmetic problem somewhere in the<br></div><div> > plugin.<br></div><div> <br></div><div> Ah, but that is the extra-weird bit. It *sometimes* gives the right answer. The only thing I can think of that could explain that & that might be ARM64 code specific is something to do with the address of the LPI, which obviously is sometihng that varies with each test. If there is some code expecting base addresses to always match some requirement and that is not always being met, subsequent code might be reading the wrong values.<br></div><div> <br></div><div> Another possibility is that the compiled result of the LI plugin has a bug; it's not like C compilers never get it wrong.<br></div><div> <br></div><div> Another possibility must be that I screwed up somewhere and the 'correct' result I saw was not actually with the prim enabled - but I'm fairly sure I did that in a different image anyway. Grr.<br></div><div> <br></div><div> And now I do more testing, and I haven't yet got the right answer again for 16r80000000 squared.<br></div><div> 16r80000001 squared always seems to be ok. 16r[9ABCDEF]0000000 squared always seems to be ok. And 16r[7654321]0000000 squared always seems to be right.<br></div><div> <br></div><div> Also 16r40000000 squared * 4 seems always ok. So we're rather pointed to some peculiarity of the 16r80000000 bit-pattern? My brian hurts.<br></div><div> <br></div><div> tim<br></div><div> --<br></div><div> tim Rowledge; <a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" target="_blank">http://www.rowledge.org/tim</a><br></div><div> Strange OpCodes: SG: Show Garbage<br></div><div> <br></div><div> <br></div><div> <br></div></blockquote><div><br></div><br>
</blockquote></div></div>