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

    <tr>
        <th>Summary</th>
        <td>
            [HLSL] Support casting types with bitfields with HLSL Elementwise Cast
        </td>
    </tr>

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

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

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

<pre>
    Add support to cast to and from types that contain bitfields. This will require changing the Flattening code in clang/lib/CodeGen/CGExpr.cpp to properly access bitfields. This might also require changes to the Sema checking.
See PR #118842 
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxkkcFu3CAQhp8GX0axMLZj--DDNonTQw5Vty-AYdbQYqAw3u2-fWU3VVT1NPwSw8fMJ3O2i0ccWfuJtc-F3MiENOYonSvmoO_jSWvIW4whEVAAJfNRpddwSWEFukfMQEYSqOBJWg-zpYtFp3MJ34zNcLPOQcKfm00Iyki_WL8AGYTJSSL0e1RBI1gPykm_MDE5OzMxPQWNr-j30-vLr5hKFeOOjylETO4OUinM-T_kahdDIF0O_4L3r4YDfcZVgjKofli_lIyfzojw5SswUVdV3zcCCj3WeqgHWeBYdXXfV1XTdIXZA5-rplW8RdHNvR6GVg-DHFCrTqm2sKPgouWCP_K64k1XdlLNQ82Hx0ZcFK861nBcpXWlc9e1DGkpbM4bjpVoh_6xcHJGlw8nQnx-O78xIXY7adzvP8zbklnDnc2UP14gS-7weDS0z3B-t7YrOxZ-mLpZMh_r-hP3DnhxuKKnm80ITzJTsSU3GqKYWX1iYmJiWiyZbS5VWHdB7vq3PMQUvqMiJqZjjszE9D7KdRS_AwAA__8DlsqS">