[llvm-bugs] [Bug 32282] Assertion `loBit <= BitWidth && "loBit out of range"' failed with -O0 -march=skx.

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 18 15:33:28 PDT 2017


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

Davide Italiano <davide at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |---
             Status|RESOLVED                    |REOPENED

--- Comment #8 from Davide Italiano <davide at freebsd.org> ---
(In reply to Dmitry Babokin from comment #7)
> clang rev308350, the fail is still there.
> 
> > cat f.cpp
> int a;
> long b;
> struct {
>   char c : 29;
> } d;
> void e() {
>   d.c = ~0 + 483647 & (a < 0) + 2147483647 >> (b << ~0 + 24) + 8388639;
> }
> 
> > clang++  -std=c++11 -w -O3 -march=skx -o f.o -c f.cpp
> clang-5.0:
> /home/dybaboki/llvm/llvm-trunk-20170718/include/llvm/ADT/APInt.h:1399: void
> llvm::APInt::setBits(unsigned int, unsigned int): Assertion `loBit <=
> BitWidth && "loBit out of range"' failed.
> <...>

This is definitely a different testcase, reopening and reducing now :)

-- 
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/20170718/6324b845/attachment.html>


More information about the llvm-bugs mailing list