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

    <tr>
        <th>Summary</th>
        <td>
            X86 type legalizer crash on X86ISD::STRICT_FMIN node
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    Getting the following error on a short C testcase with -frounding-math flag:
ReplaceNodeResults: t15: v2f32,ch = X86ISD::STRICT_FMIN t0, t3, t5, example.c:6:14
Do not know how to custom type legalize this operation!
UNREACHABLE executed at /root/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp:33268!

reduced .c reproducer
https://godbolt.org/z/5zjarsjv5

reduced .ll reproducer:
https://godbolt.org/z/7G4rcWq4G

After "git bisecting" it seems that this crash started only after introducing commit https://github.com/llvm/llvm-project/commit/9882b35a3a3e46d749b801bd0b98c3d90af6006c


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUk09v3DYQxT8NdRlkQZHUv4MO8jpyDaQ-2C5q5FJQ1EiiS4kqOdqN_ekL7SZoEqAoehliBLynNz_M6BjtuCDWLLth2W2iN5p8qG8-f7anpPP9W32HRHYZgSaEwTvnz3uHIfgAfgENcfKB4AiEkYyOCGdLE3wYgt-W3i7jh1nTBIPTI5MN480jrk4bfPA9PmLcHEUmG6A025-TGKRg4mgmYPIWXsr8_ul218nm6fnx_vj8R_vr_QMQZ-IIJC812yt-0fPq8GCYbHImm1Qx3tx6WDzBn4s_w-TPQB7MFsnPQG8rgsNRO_uOQJON4FcMmqxfmEgZb357ePzYHH9pbj59BPyCZiPsQRMw0QbviYnWudP8YQ3-Fc23dn9sx0T7rMOI-9eXMr_W-yd0n_wZg13Gg1lXJhspRV5e_8Z4E7DfDPZwMBBwDX7vAuPNRLTuiJhomWhH33fe0cGHkYn2nYk2e3_VIb6esp9snPve54L-v6yKOxXM73-pu6tVMxAGYEKMlqCzEc2-CUwIsAQRcY5Ak6YrPhN0nCCSDjsov7g30Be9XegSYl8b4-fZEvyUw9K0dQfj5-8o_sj2qmOircpSdDLTUktUeV-oqit52vW8q0oj-4rrIec8N9cBkr6WfSUrnWCdFlKWmVBVkUy1zjQOnVRYCoVZN6RVUYheCq14x2UuElsLLlQqUp4WKpXFoRMFKpMZI1HgoBRTHGdt3WFPuiNMbIwb1mlaKSESpzt08dtVhfoyT7eNkSnubKT4j44sOaxfyvzHpQxfifrlX69g8T0mW3D1_-Z5yRqZaL_GPdXi7wAAAP__FvFKgw">