| Issue |
178128
|
| Summary |
mlir-opt crashes on math.ctpop with ARM SME tile vector element type
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
mlirBug
|
mlir-opt version: 22.1.0-rc1
Running mlir-opt on the following MLIR causes an assertion failure in Type::getIntOrFloatBitWidth()
```
module {
func.func @main() {
%0 = gpu.subgroup_size : index
%1 = arm_sme.get_tile : vector<[16]x[16]xi8>
%2 = smt.forall ["x"] {
^bb0(%arg0: !smt.int):
%c1 = smt.int.constant 1
%3 = smt.int.add %arg0, %c1
%4 = smt.eq %3, %arg0 : !smt.int
smt.yield %4 : !smt.bool
}
%5 = math.ctpop %1 : vector<[16]x[16]xi8>
%6 = amdgpu.dpp %5 %1 row_shl {permArgument = 1 : i32, row_mask = 15 : i32, bank_mask = 15 : i32} : vector<[16]x[16]xi8>
return
}
}
```
```
mlir-opt test.mlir
```
```
mlir-opt: llvm-project-llvmorg-22.1.0-rc1/mlir/lib/IR/Types.cpp:123: unsigned int mlir::Type::getIntOrFloatBitWidth() const: Assertion `isIntOrFloat() && "only integers and floats have a bitwidth"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0. Program arguments: llvmorg-22.1.0-install/bin/mlir-opt test.mlir
#0 0x00005da7172a3e32 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (llvmorg-22.1.0-install/bin/mlir-opt+0x252fe32)
#1 0x00005da7172a05af llvm::sys::RunSignalHandlers() (llvmorg-22.1.0-install/bin/mlir-opt+0x252c5af)
#2 0x00005da7172a06fc SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#3 0x000079bcc1045330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
#4 0x000079bcc109eb2c __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
#5 0x000079bcc109eb2c __pthread_kill_internal ./nptl/pthread_kill.c:78:10
#6 0x000079bcc109eb2c pthread_kill ./nptl/pthread_kill.c:89:10
#7 0x000079bcc104527e raise ./signal/../sysdeps/posix/raise.c:27:6
#8 0x000079bcc10288ff abort ./stdlib/abort.c:81:7
#9 0x000079bcc102881b _nl_load_domain ./intl/loadmsgcat.c:1177:9
#10 0x000079bcc103b517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs