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

    <tr>
        <th>Summary</th>
        <td>
            [SPIR-V]  Error in OPConstant half literal number
        </td>
    </tr>

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

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

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

<pre>
    Saw the following validation error when compiling this code:
```
vkCreateShaderModule(): pCreateInfo->pCode (spirv-val produced an error):
# | The high-order bits of a literal number in instruction <id> 26 must be 0 for a floating-point type, or 0 for an integer type with Signedness of 0, or sign extended when Signedness is 1
# | %half_0x1_26cpn7 = OpConstant %half 0x1.26cp-7
```

For ```instruction <id> 26``` I've also seen 23, and 17. 

https://godbolt.org/z/1sjb35aqd
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0k19vozoQxT-NeRkRmTF_wgMPuWkj9eGq1c3VvlYGD-CuY7O2Sdr99CtI2u1WWgkJiTMzZ-angwxBD5aoYcU_rLhL5BxH55swSWOS1qm35igvEEeC3hnjLtoOcJZGKxm1s0DeOw-XkSx07jRps-hx1AE6p4iJHeM7VvLbw3fn73tPMtJxlIr8v07NhhhuGdZM7GC6ig-2dykT99PeKQKG2zBpf07P0sDknZo7UiBv3tfOxQUFsGoP_48Eox7G1HlFHlodA7geJBgdyUsDdj615EFb0DZEP3frIUzstWLiHrCE0xwitAQceudBQm-cjNoO6eS0jRDfJmK4B-ffK5ZRkQbyqwYXHUc4LliVpbDa81vDAhvoNZJVpK7cPhXqANmnUxgWozT9M3_NnrHsJlsBE3fwOO2dDVHa-F4B_DXbLBVp9YU347uD8_Dx6S8nf-jwwLA6E0gTHAQiCyiW1aVVkFUbuI4cY5zCgh0PDA-DU60zceP8wPDwk-EhCy-tKOQPlahGqFrUMqEmqwqei63Is2RsxLbLURZlXiCnClVZF1nXt91WylL2qkx0gxwLXiLPygIx29SZlLWo66wSvCpzwXJOJ6nNxpjzafFOdAgzNVle8EokRrZkwppqREsXWFWGuITcN0tT2s5DYDk3OsTwe0zU0ay_w_Hp4b_0GyvuAO7XmGsLj08f7Ffwf4Yqmb1pvsDRcZzbTedODA-Lx-2VTt69UBcZHtbNwoLtuvq5wV8BAAD__8gtIOk">