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

    <tr>
        <th>Summary</th>
        <td>
            ext_vector_type ternary causes ISEL assertion when using bool & char.
        </td>
    </tr>

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

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

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

<pre>
    See: https://godbolt.org/z/8jbTPd5vv

I suspect the issue is that the bool vector is i1s vs the char being i8, yet the two have the same CFE size.  This might need to be fixed in the CFE.

Indeed you see IR like that here:   

%21 = and <4 x i8> %18, <4 x i1> %20, !dbg !32
  %22 = and <4 x i8> %17, <4 x i1> %19, !dbg !32
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1Uk1v2zAM_TXyhahhSXFsH3zokhQI0MOw9l5INmupVaxAkp2kv36yvGJbsQG2-CU-PoqUtr-1T4iE34MK4eyjQthD_AbbS2tCbt0QrY_412_y-XtfzjMp9qS4X88j-MmfsQsQFIL2flrOaIjVI601MMe4dYtfUw-zT5FOCQcS9TiArgnbwQ3XlHCxoMSMyfDihLB7OIDXH5gDPKuIctKDCjAi9hBsxIBXfY26HlNKvJ3_RXHsl5s3O4FHhOMPMPodV4oKXeod4M8MwkpGgfA9iLGPcreB60KSHyCGaGL76aW_vKxIXkZ7OSyCsxULUpD9H636FxptvqJlfcv7hjciCzoYbPEaXtZ3fQm3c2wH3SjcDToxefRwfDo8gvAeXdB2hIvCESa_PHaaCGHbNIA8m5xpv0xeBzXJvLOnaBgzf4q7s7NvsWI005x9VMqy4HWm2tdalmWNVYXbatNVTFDkvJdCUFbVVccyIyQa35LyG2FsxMu6KlEn5T7TLSsYKzaM0ZJv6TbvWN2IottS0TTFpuBkU-BJaJMvPJaVzFybKMlp8DFotA_-dzD2rYe4HqlcxBdTUNa16HSn3lGMmKXqbWL_Exnk6XQ">