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

    <tr>
        <th>Summary</th>
        <td>
            [MLIR]SPIRVToLLVMPass failed to legalize operation 'spv.Constant' 
        </td>
    </tr>

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

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

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

<pre>
    Test on commit: [#939f5a33](https://github.com/llvm/llvm-project/commit/939f5a33711370697f9ad1de4267cfc7399dfe86)
Steps to reproduce:
```
mlir-opt -convert-spirv-to-llvm test.mlir
```
test case:
```
module {
 func.func @const() -> () {
  %8 = spv.Constant [dense<3.0> : vector<2xf32>] : !spv.array<1xvector<2xf32>>
  return
  }
}
```

error message:
```
/home/ty/test.mlir:3:8: error: failed to legalize operation 'spv.Constant' that was explicitly marked illegal
  %8 = spv.Constant [dense<3.0> : vector<2xf32>] : !spv.array<1xvector<2xf32>>
 ^
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzEVM1u8zgMfBr6IsSQxfjv4EOaxECBFijaooe9yTKTaFe2DElOm336hdy03b8eevqAgKHA4ZAcmZLe6-NI1EB-A_kukXM4WdfckDS_0XS6uKSz_aV5Jh-YHZmyw6AD4IZFvMAa60MuESHfgahOIUwecAOiBdEedTjNXarsAKI15vzxt5qc_Z1UANFe6UT7wVNmGZa8qMtDLfusp7UoSnVQJdZ1f6CqAFED3wHfPAWaPAuWOZqc7WdFse4SgoJff8txMNqt7BTYStnxTC6s_KTdeRXsKnbDAvmQRtD_ZscoU9J_T2_72RCD8ub9zA7zqNJoGKy5sqMPICoQNVsB7tnV_4IzEHnFAHfMT-d0G_FyDFHensZYdospXzJxw86kgnWAW_F2QAG4h3y3BEBkMV06Jy-A2-ztv0jcf1R0FGY3ftYvd9fBPp1_TvhuyTnr2EDey-O3YoBoT3YgEG24RPMpLW4QcFPFVhei6BykNtTHOzR0lEb_ScxO5GTQdmQgyr_rAaJk4SQDe5We0dtktNLBXNgg3R_UM20Wil8mKeT7f-mR9A32NdYyoSYrSqyLOs-L5NTUqqj4WhW4LolX615wkhV2RVb2VZ6hTHQjuECeZWWWo8Ai7TDnErtaVlxVXSZgzWmQ2qTx802tOyba-5magmc8T4zsyPhlnYUY6ZUtQRAibrdrlgXs5qOHNTfaB__FEnQwyztwf3f7CPnu6eH28eXZ3t293D9I7398X8nsTPPjJ2Fp14Nol3H-CgAA__9PPFrg">