Issue |
95271
|
Summary |
Assertion `(TLI.getTypeAction(*DAG.getContext(), Op.getValueType()) == TargetLowering::TypeLegal || Op.getOpcode() == ISD::TargetConstant || Op.getOpcode() == ISD::Register) && "Unexpected illegal type!"' failed.
|
Labels |
backend:RISC-V,
crash-on-valid
|
Assignees |
|
Reporter |
dtcxzyw
|
Reproducer:
```
; llc test.ll
target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128"
target triple = "riscv64-unknown-linux-gnu"
define i32 @main(ptr %p) {
entry:
%0 = load i32, ptr %p, align 4
%dec.i = add i32 %0, 1
%1 = tail call i32 @llvm.ctpop.i32(i32 %dec.i)
ret i32 %1
}
```
cc @topperc @RKSimon
llvm version: 1a0e67d73023e7ad9e7e79f66afb43a6f2561d04
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs