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

    <tr>
        <th>Summary</th>
        <td>
            [RISCV] Cannot select nxv2bf16 = RISCVISD::VFSLIDE1UP_VL
        </td>
    </tr>

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

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

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

<pre>
    This test case crashes with -mattr=+zfbfmin,+zvfbfmin,+zvl64b

```
define <2 x bfloat> @vslide1up_2xbfloat(<2 x bfloat> %v, bfloat %b) {
  %vb = insertelement <2 x bfloat> poison, bfloat %b, i64 0
  %v1 = shufflevector <2 x bfloat> %v, <2 x bfloat> %vb, <2 x i32> <i32 2, i32 0
  ret <2 x bfloat> %v1
}
```

We need to disable `lowerVECTOR_SHUFFLEAsVSlide1` for bf16. We probably also need to disable it for f16 without Zfh.

CC: @lukel97 @preames 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsU11vqzgQ_TXmZdQIbD7CAw8pBG2lSrtq2lTal8o2Q_Cug5Ft0vb--itcpPYqkZBhfIZzjscz3Dl1GhErkt2TrIn47AdjK2-mCa2MhOk-q-dBOfDoPEjuEKTlbkAH78oPcHfm3lvCGkLvf_WiP6uR0HoJLn9GOk8FiRsS79Y1j9cnhB32akQgrKbwAaLXhnvC9kDS-OK06jCZpzf6sQJ0e51Iswuh9bqzhILQEkhx_yUAIUMAYQ2o0aH1qPGMo7_WnIxyZrwiq0HlKcQ_6ZJA54a57zVeUHpjbxxhdXYTED8QxWjYZrViFGhQZPRb0eINs8HGWtKiuVnbr_UVYUTswBvolONCI5A81uYd7XFfP__99Hb466VtH_c7dzyEipM8ht5YEH2Sb-AVYbJGcKE_gWtnrtiUD9l9kofWMLOHf_th89NDXRO2W-5Uz_-jLovlc7LIz-gg6irWlazkEVZJweIiT2mWREPFYpbHSd5hkTAptnmZSbktZFZymeWio5GqaEzTJIlTyrI4LTeSyYzzghW56GWMBUljPHOlN1pfzhtjT5FybsYqSdJtySLNBWoXJoDSEd8hoITSZSBstfx0J-aTW3wr5903jVdeh9F5ejjUR5I1UPNxNB4capQexo8LXaoX2iTkPBwawnaE7Y7t4fGh2Scv_7wdH6PZ6mrwfnILSFtC25Pywyw20pwJbRfB9XU3WfMfSk9oG2w6Qtv1HJeK_g4AAP__mWUf5w">