<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - ARMv7: Kaleidoscope "2" returns "1.000000"."
   href="http://llvm.org/bugs/show_bug.cgi?id=17817">17817</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ARMv7: Kaleidoscope "2" returns "1.000000".
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mikael@lyngvig.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I am entering the integer literal 2 into the Kaleidoscope sample built using
the stock v3.3 LLVM available in Arch Linux (pacman -S llvm).  The program then
informs me that it evaluated to 1.000000.  The generated IR code seems okay so
the problem must be in the JIT somewhere:

~/bld> ./Kaleidoscope
ready> 2
ready> Evaluated to 1.000000
ready> ; ModuleID = 'my cool jit'

declare void @abort()

define double @0() {
entry:
  ret double 2.000000e+00
}
~/bld>

Also, the declaration of "abort" turns up of itself so this must be something
LLVM generates.

Finally, this command:

    gcc `llvm-config --cxxflags --ldflags` Kaleidoscope.cpp

Gives a trillion unresolved externals.  I am building Kaleidoscope as part of
my own CMAKE project which builds correctly.  The Kaleidscope example's build
command (clang++ -g Kaleidoscope.cpp) doesn't build either.

Architecture: BeagleBoard Black (ARMv7l) running Arch Linux/ARM.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>