Issue 239941
Summary [MLIR][AMDGPU] `!amdgpu.tdm_gather_base` with a non-integer/float element type asserts in `getIntOrFloatBitWidth` while parsing, instead of a type verifier error
Labels crash, mlir:amdgpu, generated by fuzzer
Assignees
Reporter YuanchengJiang
    The following code:
```mlir
func.func private @f() -> !amdgpu.tdm_gather_base<vector<1xi2>, i16>
```

Resulted in this output:
```
Program terminated with signal SIGSEGV (11)
Stack dump:
 #3 mlir::FloatType::getWidth
 #4 mlir::Type::getIntOrFloatBitWidth
 #5 mlir::amdgpu::TDMGatherBaseType::verify
 #6 mlir::amdgpu::TDMGatherBaseType::parse
 #7 mlir::amdgpu::AMDGPUDialect::parseType
 #8 mlir::Type parseExtendedSymbol
 #9 mlir::detail::Parser::parseExtendedType
#10 mlir::detail::Parser::parseNonFunctionType
```

Trunk reproducer: https://godbolt.org/z/en3vsjrxW
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to