<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 --- - PowerPC code gen bug in 3.8. invalid elimination of store"
   href="https://llvm.org/bugs/show_bug.cgi?id=27138">27138</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>PowerPC code gen bug in 3.8. invalid elimination of store
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.8
          </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>eric.schweitz@pgroup.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=16132" name="attach_16132" title="code that exposes a store elimination bug">attachment 16132</a> <a href="attachment.cgi?id=16132&action=edit" title="code that exposes a store elimination bug">[details]</a></span>
code that exposes a store elimination bug

The bugged .ll example shows a floating-point value of 4.0 being stored,
loaded, and multiplied by 0.2. The value 0.8 is then printed as output by LLVM
3.7.  In LLVM 3.8, the output is 0.0. It appears that the store of 4.0 is
erroneously eliminated.

To expose the bug the following commands were used:

  llc -O0 -o bug.s bug.ll
  as bug.s -o bug.o
  clang bug.o -O0 -o bug.out
  ./bug.out

  0.000000</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>