Skip to content

assert(width...) should take into account fp8 types in GetWordsFromScalarFloatConstant #6533

@csyonghe

Description

@csyonghe

This currently crashes the debug build of spirv-opt when handling spirv with fp8 constants.

For example, running debug spirv-opt on the following spirv triggers the assert and crashes.
bug-fp8.spv.dis.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions