<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - fold away float to double promotion in signbit"
   href="https://bugs.llvm.org/show_bug.cgi?id=45305">45305</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>fold away float to double promotion in signbit
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Keywords</th>
          <td>code-quality
          </td>
        </tr>

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

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

        <tr>
          <th>Component</th>
          <td>Backend: X86
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>nok.raven@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, spatel+llvm@rotateright.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>#include <cmath>
bool foo(float x) {
  return std::signbit(double(x));
}
bool bar(float x) {
  return std::signbit(x);
}

define dso_local zeroext i1 @_Z3foof(float %0) local_unnamed_addr #0 {
  %2 = fpext float %0 to double
  %3 = bitcast double %2 to i64
  %4 = icmp slt i64 %3, 0
  ret i1 %4
}
define dso_local zeroext i1 @_Z3barf(float %0) local_unnamed_addr #0 {
  %2 = bitcast float %0 to i32
  %3 = icmp slt i32 %2, 0
  ret i1 %3
}

foo(float):
  cvtss2sd xmm0, xmm0
  movmskpd eax, xmm0
  and      eax, 1
  ret
bar(float):
  movmskps eax, xmm0
  and      eax, 1
  ret</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>