[llvm-bugs] [Bug 51706] New: clang-cl crashes when using _setbv without /arch:AVX

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 1 13:07:55 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51706

            Bug ID: 51706
           Summary: clang-cl crashes when using _setbv without /arch:AVX
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

thakis at 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 at 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 :)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210901/2d02bcd1/attachment.html>


More information about the llvm-bugs mailing list