<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/64765>64765</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [mlir][spirv] Confusing error message when building `BitFieldMessage` op.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Colloportus0
      </td>
    </tr>
</table>

<pre>
    ```console
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>
```

If I have understood correctly, the above error message is inconsistent with the doc: 
```
     The type of Base and Insert must be the same as Result Type.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8U02PozgQ_TXFpdTIlGMDBw7ppJH6sJfV_AE-KuCVg5Ft0pt_vzJ0z45mZjeKsI2fH--VX3UhmGlhbkC9grpm3RZn55uLs9atzsctiKx347MBLY7_4JbgLIO4gjgHP-R3azzIM4E8S5BnZO9deoFAZViNf-SvJraG7fi-BPYRqES3olvZd8uIQLLA-xYi9owVUFtooFYSUKtPL72JaJbIE3t0Hh88ROfR3f4f-ejsxiHBLC9TnDFhJFB7Amq_Tl6w3yJOLiahBzHIC_1tCpBvQOXhEDG6Zz7x8rUE9fbf3hcXOY2BGYfNe17iYTQatxw1USQrBHlFIPp9eQioAlJVkTQCqaKmz1klfpjUeBBWP2qXtIu_4K-GLph2v4YaX0C-_QrbrX2_7M_l_ny_4TvO3YNxW0b2ITo34uC85yHaZyKOM2PXuwcfGcA7h9BNjCagWVJuTIipIh8mzjt4dMPu4XcfxfT7NjPG58rpKl-7wJgSc9Tpe2YSUejujF3APzlsNuK358r5T6zZ2MixlnWXcVPomkjroqqyudGCxlLfuqIS6sQ13YahYqE6oQqppagy05AgKaqiFLXSVOUlDapnGm5SaH2qBzgJvnfG5tY-7rnzU2ZC2LjRp1KrzHY927A3GNHCH7hvpmtW18w36cxLv00BTsKaEMO_LNFEu3fmHjN1BfW6JwbUFS9uuW3BLNNPtf6YecF-M3ZMe6DFV7r-OACgBbo1zzZvmznGNYA8A7VA7WTivPX54O5AbdLwObys3v3FQwRqd-Vh77dSq38CAAD___voRLk">