<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 - fatal error: error in backend: Cannot select: t3: i32 = fp_to_sint nofpexcept t2"
   href="https://bugs.llvm.org/show_bug.cgi?id=46291">46291</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>fatal error: error in backend: Cannot select: t3: i32 = fp_to_sint nofpexcept t2
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>10.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </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>Common Code Generator Code
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>pkubaj@anongoth.pl
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>FreeBSD head, powerpc64 elfv2 or powerpc or powerpcspe, LLVM 10.0.1-rc1

Reproduction:
pkubaj@talos:$/usr/home/pkubaj/libretro-fbneo$ /usr/bin/cc -cc1 -triple
powerpc64-unknown-freebsd13.0 -emit-obj -frounding-math ym2612-5de3af.c
ym2612-5de3af.c:1:1: warning: type specifier missing, defaults to 'int'
a;
^
ym2612-5de3af.c:3:1: warning: type specifier missing, defaults to 'int'
c() { a = b; }
^
ym2612-5de3af.c:3:14: warning: non-void function does not return a value
c() { a = b; }
             ^
fatal error: error in backend: Cannot select: t3: i32 = fp_to_sint nofpexcept
t2
  t2: f64,ch = CopyFromReg t0, Register:f64 %5
    t1: f64 = Register %5
In function: c

Test case:
a;
double b;
c() { a = b; }</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>