<html>
    <head>
      <base href="https://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 --- - Missing handling of endianness(host) != endianess(target) in ExecutionEngine::LoadValueFromMemory"
   href="https://llvm.org/bugs/show_bug.cgi?id=27832">27832</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Missing handling of endianness(host) != endianess(target) in ExecutionEngine::LoadValueFromMemory
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.8
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </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>Generic Execution Engine Support
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>llvm@christian-eichler.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16394" name="attach_16394" title="Example .ll (big endian targetlayout)">attachment 16394</a> <a href="attachment.cgi?id=16394&action=edit" title="Example .ll (big endian targetlayout)">[details]</a></span>
Example .ll (big endian targetlayout)

Method `ExecutionEngine::StoreValueToMemory` reverses the byte order in memory
if the endianness of host and target do not match.
Method `ExecutionEngine::LoadValueFromMemory` currently does not undo that
operation, leading to loading of incorrect values.

Running lli with the .ll file attached to this report shows different return
values for `lli -force-interpreter loadstore_endian.ll` and `lli
loadstore_endian.ll` when executed on a little endian system.
This statement holds (at least) for lli from LLVM 3.4 up to LLVM 3.8</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>