mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-19 15:48:19 +02:00
The IEEE754-2019 standard declaring the preceding sign "optional" when converting NaN values to strings because the standard tries to not regulate how sign bits in NaNs are interpreted. In the real world, when using printf-series function to print a number with type `float` on RISC-V, the sign of NaNs is wiped during the conversion from `float` to `double` (defined as part of the default argument promotions rule for variable arguments in the C spec). Change the code to stop relying on isa_print() to print the negative sign, instead parse it from the highest bit of value and manually print it before "nan" string. This fixes the `etnaviv_isa_disasm` unit test on RISC-V. Suggested-by: Christian Gmeiner <cgmeiner@igalia.com> Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn> Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com> Reviewed-by: Rob Clark <rob.clark@oss.qualcomm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40887> |
||
|---|---|---|
| .. | ||
| clc | ||
| glsl | ||
| isaspec | ||
| libcl | ||
| nir | ||
| rust | ||
| spirv | ||
| builtin_types.py | ||
| builtin_types_c.py | ||
| builtin_types_h.py | ||
| glsl_types.c | ||
| glsl_types.h | ||
| list.h | ||
| meson.build | ||
| shader_enums.c | ||
| shader_enums.h | ||
| shader_info.h | ||