[LLVMbugs] [Bug 20329] Demo Kaleidoscope/MCJIT Produces Incorrect Output on ARM

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 21 14:31:28 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20329

Jesse Medley <mjllvmbugzilla at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Jesse Medley <mjllvmbugzilla at gmail.com> ---
Just had a chance to try this out:
ready> def add(x y) x+y;
ready> Read function definition:
define double @add(double %x, double %y) {
entry:
  %y2 = alloca double
  %x1 = alloca double
  store double %x, double* %x1
  store double %y, double* %y2
  %x3 = load double* %x1
  %y4 = load double* %y2
  %addtmp = fadd double %x3, %y4
  ret double %addtmp
}

ready> add(1, 2);
ready> Evaluated to 3.000000

So it's working correctly now. Thanks, Renato! I also attached a little patch
that I used to get the example to compile. I was going to go ahead and send
that to the commits mailing list if that's okay.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140721/55d3ac28/attachment.html>


More information about the llvm-bugs mailing list