<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-cl crashes when using _setbv without /arch:AVX"
   href="https://bugs.llvm.org/show_bug.cgi?id=51706">51706</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-cl crashes when using _setbv without /arch:AVX
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>nicolasweber@gmx.de
          </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>thakis@thakis:~/src/chrome/src$ cat foo.cc
#include <intrin.h>

void f() {
  unsigned int        tmp_Ui;
  unsigned long       tmp_ULLi;
  _xsetbv(tmp_Ui, tmp_ULLi);
}
thakis@thakis:~/src/chrome/src$
third_party/llvm-build/Release+Asserts/bin/clang-cl /c foo.cc /winsysroot
third_party/depot_tools/win_toolchain/vs_files/3bda71a11e/  
fatal error: error in backend: Cannot select: intrinsic %llvm.x86.xsetbv



Works fine with /arch:AVX. We should have some friendlier diag here :)</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>