Skip to content

[mlir][spirv] ConvertChainedBitcast canonicalization can produce wrong code #58801

@Hardcode84

Description

@Hardcode84
func.func @convert_bitcast(%arg0 : f64) -> f64 {
  %1 = spirv.Bitcast %arg0 : f64 to i64
  %2 = spirv.Bitcast %1 : i64 to f64
  spirv.ReturnValue %2 : f64
}
error: result type must be different from operand type

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions