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: unassignedb...@nondot.org
          Reporter: pauls...@linux.vnet.ibm.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to