<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 - [AArch64] Incorrect result for vector conversion with -O2"
   href="https://bugs.llvm.org/show_bug.cgi?id=45541">45541</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[AArch64] Incorrect result for vector conversion with -O2
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>10.0
          </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>clang@evan.coeusgroup.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=23358" name="attach_23358" title="Test case">attachment 23358</a> <a href="attachment.cgi?id=23358&action=edit" title="Test case">[details]</a></span>
Test case

The attached test case works on without optimization and on GCC, but fails with
-O2 (`clang-10 -v -target aarch64-linux-gnu -O2 -o mm_cvtepu8_epi16
mm_cvtepu8_epi16.c` to be precise).

I've added a FOO preprocessor macro (see line 27) to switch between making
simde__m128i a typedef to int64x2_t and int32x4_t.  Depending on which is used
different functions fail.  It shouldn't actually matter since the code uses
__builtin_memcpy to convert to/from simde__m128i_private and simde__m128i.</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>