<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 --- - miscompilation of uint32 ->float vector cast on x86 pre-avx"
   href="https://llvm.org/bugs/show_bug.cgi?id=24512">24512</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>miscompilation of uint32 ->float vector cast on x86 pre-avx
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>andrew.b.adams@gmail.com
          </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=14750" name="attach_14750" title="llvm 3.6 working asm and llvm trunk broken asm">attachment 14750</a> <a href="attachment.cgi?id=14750&action=edit" title="llvm 3.6 working asm and llvm trunk broken asm">[details]</a></span>
llvm 3.6 working asm and llvm trunk broken asm

I have some code that casts an <i32 x 8> to a <float x 8> using uitofp. With
llvm 3.6 and 3.5 it works fine. It recently started just returning zeros with
llvm trunk.

Assembly and ll produced for llvm 3.6 and trunk are attached. The ll is
identical except for the small changes in ll syntax that have happened since
3.6. The asm is subtly different in a way that apparently produces a zero
result.

Ignore the call to break_and_return_zero, and the use of its return value
(xmm0). That was just a convenient way to get a breakpoint into some
jit-compiled code and including it doesn't affect whether the bug triggers. I'm
not sure what's going on, but stepping though it it seemed to gradually lose
the inputs instead of converting them to float.</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>