<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/91793>91793</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[DirectX] Version in ProgramHeader is wrong on big endian host
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:DirectX
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
python3kgae
</td>
</tr>
</table>
<pre>
MinorVersion and MajorVersion in llvm::dxbc::ProgramHeader used bitfield.
But the order of allocation of bit-field within a unit is implementation-defined.
Wrong version will be read on big endian host right now.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkkUFv3CAQhX8NvozWwmCvlwOHjVarXiL11PYKZmxPgmEFONv8-8reRmmVCyD05mne-0zONAVEzbon1l0qs5Y5Jn17L3MM8nUyWNno3vUzhZh-YMoUA5jg4Nm8fH5QAO_fFibPTJ7dbzs8Xt9TnJJZvqFxmGDN6MBSGQm9qxm_MH5-WguUGSGmTRFHMN7HwZTNNI6b-rDL4U5lpgAG1kAFKAMtN48LhrKLDw5HCvhh-zh_phgmePu74528B4uQ0DiIASxNgMGRCTDHXCDRNBcI8V5XTkunpDIV6qZvOnk8qqOqZq0aebKnhh-lbdXYGdPzEwp37Hk_dsibirTgouVdw5tTq4SqO9U3su0QRTO06DrWclwM-Xqrq45pqijnFbVqeiUrbyz6vKMQwprhFYNj8nyhhEP5xYTYCCW9zR7sOmXWck-55E-3QsXvLD9mugv8A-l_IJThvlf0tY1qTV7PpdzyRlJcmbhOVObV1kNcmLjutB_X4ZbiCw6FieueJTNx3eP8CQAA__-xC8eW">