[llvm-bugs] [Bug 33453] New: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 14 05:20:01 PDT 2017


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

            Bug ID: 33453
           Summary: Assertion `isa<X>(Val) && "cast<Ty>() argument of
                    incompatible type!"' failed
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: paulsson at linux.vnet.ibm.com
                CC: llvm-bugs at lists.llvm.org

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

[with X = llvm::FPMathOperator; Y = const llvm::Operator; typename
llvm::cast_retty<X, Y*>::ret_type = const llvm::FPMathOperator*]

...
#12 0x000000000158f14a cannotBeOrderedLessThanZeroImpl(llvm::Value const*,
llvm::TargetLibraryInfo const*, bool, unsigned int)
#13 0x000000000158f5ce llvm::SignBitMustBeZero(llvm::Value const*,
llvm::TargetLibraryInfo const*)
#14 0x00000000013a9ee3 llvm::Value*
SimplifyIntrinsic<llvm::Use*>(llvm::Function*, llvm::Use*, llvm::Use*,
llvm::SimplifyQuery const&, unsigned int)
#15 0x00000000013a99a5 llvm::Value* SimplifyCall<llvm::Use*>(llvm::Value*,
llvm::Use*, llvm::Use*, llvm::SimplifyQuery const&, unsigned int)
#16 0x00000000013a8316 llvm::SimplifyCall(llvm::Value*, llvm::Use*, llvm::Use*,
llvm::SimplifyQuery const&)
#17 0x0000000001e05ecf llvm::InstCombiner::visitCallInst(llvm::CallInst&)
...

bin/opt -O3 -mtriple=s390x-unknown-linux -mcpu=z13 -o out.ll
./fpmathop_isa_fail.ll

-- 
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/20170614/683313b1/attachment.html>


More information about the llvm-bugs mailing list