[llvm-bugs] [Bug 46004] New: AddressingModeMatcher::matchAddr - APInt::getMinSignedBits() <= 64 && "Too many bits for int64_t"

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 20 05:17:18 PDT 2020


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

            Bug ID: 46004
           Summary: AddressingModeMatcher::matchAddr -
                    APInt::getMinSignedBits() <= 64 && "Too many bits for
                    int64_t"
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: llvm-bugs at lists.llvm.org

Reduced from https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22357

define void @fuzz22357() {
  %B9 = add i128 undef, 170141183460469231731687303715884105727
  %add5 = add nuw nsw i128 %B9, 22222
  %G = getelementptr i8, i8* undef, i128 %add5
  store i8 undef, i8* %G, align 1
  unreachable
}

llc -mtriple=x86_64--

Assertion failed: getMinSignedBits() <= 64 && "Too many bits for int64_t", file
E:\llvm\llvm-project\llvm\include\llvm/ADT/APInt.h, line 1635
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: ninja\bin\llc -mtriple=x86_64-- -o - fuzz.ll
1.      Running pass 'Function Pass Manager' on module 'fuzz.ll'.
2.      Running pass 'CodeGen Prepare' on function '@fuzz22357'

-- 
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/20200520/19fdf9b2/attachment-0001.html>


More information about the llvm-bugs mailing list