<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 - Clang backend error when using vmax_f16 neon intrinsic"
   href="https://bugs.llvm.org/show_bug.cgi?id=42556">42556</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang backend error when using vmax_f16 neon intrinsic
          </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>Linux
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

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

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

        <tr>
          <th>Reporter</th>
          <td>pirama@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>kristof.beyls@arm.com, llvm-bugs@lists.llvm.org, peter.smith@linaro.org, sjoerd.meijer@arm.com, srhines@google.com, Ties.Stuij@arm.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>See the attached link: <a href="https://godbolt.org/z/vTp2yV">https://godbolt.org/z/vTp2yV</a>

Source:
$ cat fp16.c
#include <arm_neon.h>

float16x4_t m(float16x4_t a, float16x4_t b) {
  return vmax_f16(a, b);
}

Fail: clang -c -O2 -target armv7-linux-eabi -march=armv8.2-a+fp16 -mfpu=neon
Pass: clang -c -O2 -target armv7-linux-eabi -march=armv8.2-a+fp16
-mfpu=neon-fp-armv8

The error message is below:
fatal error: error in backend: Do not know how to split the result of this
operator!

clang-9: error: clang frontend command failed with exit code 70 (use -v to see
invocation)

I think the frontend and backend are inconsistent when dealing with this
intrinsic.

Adding Sjoerd Meijer who has recent changes related to this for comments.</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>