Skip to content

[MLIR][AMDGPU] !amdgpu.tdm_gather_base with a non-integer/float element type asserts in getIntOrFloatBitWidth while parsing, instead of a type verifier error #239941

Open

Description

@YuanchengJiang

The following code:

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

Activity

  1. added
    crashPrefer [crash-on-valid] or [crash-on-invalid]
    generated by fuzzerRegression test generated by fuzzing or AI analysis - not a real world code snippet
    on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashPrefer [crash-on-valid] or [crash-on-invalid]generated by fuzzerRegression test generated by fuzzing or AI analysis - not a real world code snippetmlir:amdgpu

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions