Skip to content

[mlir][spirv] Inconsistent error message when building BitFieldMessage op. #64765

@Colloportus0

Description

@Colloportus0
src.mlir:2:3: error: 'spirv.BitFieldInsert' op operand #1 must be 8/16/32/64-bit integer or vector of 8/16/32/64-bit integer values of length 2/3/4/8/16, but got 'vector<2xi1>'
  toy.gen
  ^
src.mlir:2:3: note: see current operation: %238 = "spirv.BitFieldInsert"(%81, %192, %80, %80) : (vector<2xi32>, vector<2xi1>, i32, i32) -> vector<2xi1>

The above error message is inconsistent with the doc:

     The type of Base and Insert must be the same as Result Type.

If I have understood correctly, the error message should be like:

 op operand #1 must be the same type as #2

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions