[llvm-bugs] [Bug 38543] New: uadd.with.overflow - type mismatch

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 13 07:36:03 PDT 2018


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

            Bug ID: 38543
           Summary: uadd.with.overflow - type mismatch
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: llvm-bugs at lists.llvm.org, spatel+llvm at rotateright.com

%0 = type { i64, i1 }

declare %0 @llvm.uadd.with.overflow.i64(i64, i64)

define void @test6() {
  %C = icmp ugt i64 9223372036854775807, -9223372036854775808
  store i1 %C, i1* undef
  ret void
}

llc -mtriple=x86_64-unknown

llc: /home/simon/LLVM/llvm/include/llvm/Support/Casting.h:255: typename
llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::Function; Y =
llvm::Constant; typename llvm::cast_retty<X, Y*>::ret_type = llvm::Function*]:
Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.

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

-- 
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/20180813/d47a03c4/attachment.html>


More information about the llvm-bugs mailing list