[llvm-bugs] [Bug 38459] New: llvm::APInt llvm::APInt::zext(unsigned int) const: Assertion `width > BitWidth && "Invalid APInt ZeroExtend request"' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 6 04:10:25 PDT 2018


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

            Bug ID: 38459
           Summary: llvm::APInt llvm::APInt::zext(unsigned int) const:
                    Assertion `width > BitWidth && "Invalid APInt
                    ZeroExtend request"' failed.
           Product: new-bugs
           Version: 7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: rakka at runbox.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 20647
  --> https://bugs.llvm.org/attachment.cgi?id=20647&action=edit
testcase IR

running 'llc -O3' on x86-64 on the attached testcase, LLVM 7 fails to compile
it with an assertion in llvm::SelectionDAG::computeKnownBits().

(the testcase is pocl's helper function for sin() and cos() OpenCL library
functions, in particular the vector-of-3 arguments variant; other vector sizes
seem to compile).

This is with LLVM 7.0 git 4bd72473d805587e6a6c63e676806a4bc2c73af1 SVN ID
338509.

Note that the attached bitcode compiles with LLVM 5 and 6, so this could be a
regression.

-- 
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/20180806/8589bb8d/attachment-0001.html>


More information about the llvm-bugs mailing list