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

    <tr>
        <th>Summary</th>
        <td>
            LLVM ERROR: Do not know how to scalarize this operator's operand!
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            bug,
            backend:X86,
            crash-on-valid,
            llvm:SelectionDAG
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            abhishek-kaushik22
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          abhishek-kaushik22
      </td>
    </tr>
</table>

<pre>
    For AVX512 targets, the legalizer fails to legalize `STRICT_FSETCC` node with value type `fp80`
Godbolt: https://godbolt.org/z/cso9zE6h7

```
define <4 x i1> @test_oeq_q(<4 x x86_fp80> %a, <4 x x86_fp80> %b) #0 {
  %cond = tail call <4 x i1> @llvm.experimental.constrained.fcmp.v4f80(<4 x x86_fp80> %a, <4 x x86_fp80> %b, metadata !"oeq", metadata !"fpexcept.strict")
  ret <4 x i1> %cond
}

declare <4 x i1> @llvm.experimental.constrained.fcmps.v4f80(<4 x x86_fp80>, <4 x x86_fp80>, metadata, metadata)
```

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJycU12PozYU_TWXFyvINuHrgQc2CatKW1XKjFb7Fl3gAm4czNgmk51fX5FE03YyaqWVLGHOucLnHHPQOdWPRAXEX0BKrAflBjqujji7QR2lBCkh3gY4-8HY4pEPatP-LCpjWfn9Rywk82h78g7khvmBmKYetXojyzpU2jFv3iEGCX963v-2eT5UT7vnzQYSzkbTEntVfmBn1DMx_3O6DnZTxiHhwMuvpq2N9hCVbPB-chCVICuQVX8jQmN7kNUbyKpxJn_bJUMKvFxWwu-Lly11aiQG0WbNLkwJiHYM1tyT8wdDL4cXkNmdvGTJ4Xr8MiJjXKx9TtUgcwYy4gzSL8BLtoCNGVsG0ZZ5VJo1qPXDqVqfTyFdJrLqRKNHHTZmdN6iGqkNu-Y0hed1l_Ff1LRhJ_LYokcGUoCUhl6We30kuokuDU0-dN6qxl-H8qsRS_6D7JuzJdZ0e8u3pUajfQz1_-25__D3ubV_iv_3Pv9w00FbRG0e5RhQIdI4TtJYxCIYCsw72YgkkcQxzjqRtBRJFCLnadylIg1UIbmMeSY5TyMZiTCniFPXYd1mQsQNwprTCZUOrw6N7QPl3EyFiNfrLA401qTdvVr13N8yX_bYHGlsISp_ZMk72lh0w8qMqzNq1b7Dy7chKp9IU-OVGbfl13spbbFwq3ru3ZKyct79rcQrr6n49u3772y33_-xX_qyNWw0nh1H88oG87qU0TWo0S5t9INyzExk0RsLMr2_jC1IEcxWFx_apvww12FjTiCrq8bbYzVZ8yct_051DcOBrO55nAv5VwAAAP__ymhTtg">