<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 - riscv - error in backend: Cannot select: 0x55d7f7ff1300: f32 = fcopysign 0x55d7f7ff1c58, 0x55d7f7fe9fb8"
   href="https://bugs.llvm.org/show_bug.cgi?id=43040">43040</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>riscv - error in backend: Cannot select: 0x55d7f7ff1300: f32 = fcopysign 0x55d7f7ff1c58, 0x55d7f7fe9fb8
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>9.0
          </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>LLVM Codegen
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>raj.khem@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22391" name="attach_22391" title="test case">attachment 22391</a> <a href="attachment.cgi?id=22391&action=edit" title="test case">[details]</a></span>
test case

When compiling mesa with clang for riscv64 following error is seen

fatal error: error in backend: Cannot select: 0x55d7f7ff1300: f32 = fcopysign
0x55d7f7ff1c58, 0x55d7f7fe9fb8,
src/compiler/nir/nir_constant_expressions.c:15563:10 @[
src/compiler/nir/nir_constant_expressions.c:20612:14 ]
  0x55d7f7ff1c58: f32,ch = load<(load 4 from constant-pool)> 0x55d7f74dc958,
0x55d7f8206180, undef:i64
    0x55d7f8206180: i64 = PseudoLLA TargetConstantPool:i64<float 0.000000e+00>
0
      0x55d7f7ff1d90: i64 = TargetConstantPool<float 0.000000e+00> 0
    0x55d7f8206048: i64 = undef
  0x55d7f7fe9fb8: f64,ch = CopyFromReg 0x55d7f74dc958, Register:f64 %2081,
src/compiler/nir/nir_constant_expressions.c:15563:26 @[
src/compiler/nir/nir_constant_expressions.c:20612:14 ]
    0x55d7f8205a98: f64 = Register %2081
In function: nir_eval_const_opcode
clang-9: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 9.0.0 (<a href="https://github.com/llvm/llvm-project">https://github.com/llvm/llvm-project</a>
150ad3120e346ed8dff2bdda458a72e734b1879a)
Target: riscv64-yoe-linux</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>