0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/compiler_rt
David Rubin 7ef64ccf55 compiler-rt: fix f80 conversions for subnormal destination
The conversion was discarding f80's explicit leading significand bit
and using incorrect shift and sticky-bit calculations. Now we
preserve that bit and correct the rounding logic. Also ensures
f128 NaNs remain NaNs when converted to f80, even when their payload
is truncated away, rather than becoming infinity.
History 2026-10-24 13:42:01 +02:00
..
elf Implement partially ordered operator precedence 2026-10-22 12:21:43 +02:00
aarch64_outline_atomics.zig compiler_rt.fmv: avoid depending on @import("aarch64_outline_atomics.zig").__aarch64_have_lse_atomics 2026-10-20 10:09:01 +02:00
absv.zig Implement partially ordered operator precedence 2026-10-22 12:21:43 +02:00
absvdi2.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
absvdi2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
absvsi2.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
absvsi2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
absvti2.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
absvti2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
addf3.zig Implement partially ordered operator precedence 2026-10-22 12:21:43 +02:00
addf3_test.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
addvdi3.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
addvsi3.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
arm.zig Add __gnu_thumb1_case_{sqi,uqi,shi,uhi,si} to compiler_rt 2026-09-27 11:05:23 +02:00
atomics.zig Implement partially ordered operator precedence 2026-10-22 12:21:43 +02:00
aulldiv.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
aullrem.zig compiler_rt: common -> compiler_rt 2026-02-09 20:03:15 -08:00
bitreverse.zig compiler_rt: common -> compiler_rt 2026-02-09 20:03:15 -08:00
bitreversedi2_test.zig stage2-wasm: bit_reverse 2024-06-16 11:53:33 +02:00
bitreversesi2_test.zig stage2-wasm: bit_reverse 2024-06-16 11:53:33 +02:00
bitreverseti2_test.zig stage2-wasm: bit_reverse 2024-06-16 11:53:33 +02:00
bswap.zig compiler_rt: common -> compiler_rt 2026-02-09 20:03:15 -08:00
bswapdi2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
bswapsi2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
bswapti2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
clear_cache.zig compiler_rt: common -> compiler_rt 2026-02-09 20:03:15 -08:00
clzdi2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
clzsi2_test.zig Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
clzti2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
cmp.zig compiler_rt: common -> compiler_rt 2026-02-09 20:03:15 -08:00
cmpdi2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
cmpsi2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
cmpti2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
comparedf2_test.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
comparef.zig Implement partially ordered operator precedence 2026-10-22 12:21:43 +02:00
comparesf2_test.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
cos.zig compiler_rt: support targets where c_longdouble is not a valid type 2026-10-20 15:45:44 -04:00
count0bits.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
ctzdi2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
ctzsi2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
ctzti2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
divc3.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
divc3_test.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
divdf3.zig Implement partially ordered operator precedence 2026-10-22 12:21:43 +02:00
divdf3_test.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
divmodei4.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
divsf3.zig Implement partially ordered operator precedence 2026-10-22 12:21:43 +02:00
divsf3_test.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
divtf3.zig Implement partially ordered operator precedence 2026-10-22 12:21:43 +02:00
divtf3_test.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
divti3_test.zig compiler_rt: common -> compiler_rt 2026-02-09 20:03:15 -08:00
divxf3.zig Implement partially ordered operator precedence 2026-10-22 12:21:43 +02:00
divxf3_test.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
elf.zig compiler-rt: move some checks up to elf.zig 2026-10-05 03:26:41 +02:00
emutls.zig compiler_rt: common -> compiler_rt 2026-02-09 20:03:15 -08:00
exp.zig compiler_rt: support targets where c_longdouble is not a valid type 2026-10-20 15:45:44 -04:00
exp2.zig compiler_rt: support targets where c_longdouble is not a valid type 2026-10-20 15:45:44 -04:00
exp_f128.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
extendf.zig Implement partially ordered operator precedence 2026-10-22 12:21:43 +02:00
extendf_test.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
fabs.zig compiler_rt: support targets where c_longdouble is not a valid type 2026-10-20 15:45:44 -04:00
ffsdi2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
ffssi2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
ffsti2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
float_from_int.zig x86_64: llvm 23 changed the windows abi :( 2026-10-07 00:30:52 +02:00
float_from_int_test.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
floor_ceil.zig Implement partially ordered operator precedence 2026-10-22 12:21:43 +02:00
fma.zig compiler_rt: support targets where c_longdouble is not a valid type 2026-10-20 15:45:44 -04:00
fmax.zig compiler_rt: support targets where c_longdouble is not a valid type 2026-10-20 15:45:44 -04:00
fmin.zig compiler_rt: support targets where c_longdouble is not a valid type 2026-10-20 15:45:44 -04:00
fmod.zig Implement partially ordered operator precedence 2026-10-22 12:21:43 +02:00
fmodq_test.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
fmodx_test.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
fmv.zig compiler_rt.fmv: remove __aarch64_have_lse_atomics 2026-10-20 10:30:47 +02:00
hexagon.zig compiler-rt: add hexagon v79 QFloat HVX runtime conversion funcs 2026-10-21 06:08:50 +02:00
int.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
int_from_float.zig compiler_rt: downgrade ARMv6 Thumb instructions to ARMv4-valid variants 2026-08-07 15:44:32 +02:00
int_from_float_test.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
limb64.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
log.zig compiler_rt: support targets where c_longdouble is not a valid type 2026-10-20 15:45:44 -04:00
log2.zig compiler_rt: support targets where c_longdouble is not a valid type 2026-10-20 15:45:44 -04:00
log10.zig compiler_rt: support targets where c_longdouble is not a valid type 2026-10-20 15:45:44 -04:00
log_f128.zig Finish the code sharing between logq, log2q and log10q 2026-05-29 13:53:34 +02:00
memcpy.zig compiler-rt: remove some @export usage in favor of symbol() 2026-09-26 19:12:24 +02:00
memmove.zig compiler-rt: remove some @export usage in favor of symbol() 2026-09-26 19:12:24 +02:00
modti3_test.zig compiler_rt: common -> compiler_rt 2026-02-09 20:03:15 -08:00
mulc3.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
mulc3_test.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
mulf3.zig Implement partially ordered operator precedence 2026-10-22 12:21:43 +02:00
mulf3_test.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
mulo.zig compiler-rt: work around LLVM not respecting -fno-builtin 2026-03-28 19:25:01 +00:00
mulodi4_test.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
mulosi4_test.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
muloti4_test.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
mulvsi3.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
mulXi3.zig compiler-rt: delete workarounds for __int128 ABI on x86_64-windows 2026-06-19 04:25:42 +02:00
mulXi3_test.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
negdi2_test.zig compiler_rt: common -> compiler_rt 2026-02-09 20:03:15 -08:00
negsi2_test.zig compiler_rt: common -> compiler_rt 2026-02-09 20:03:15 -08:00
negti2_test.zig compiler_rt: common -> compiler_rt 2026-02-09 20:03:15 -08:00
negv.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
negvdi2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
negvsi2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
negvti2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
os_version_check.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
parity.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
paritydi2_test.zig Replace std.rand references with std.Random 2024-02-08 15:21:35 +01:00
paritysi2_test.zig Replace std.rand references with std.Random 2024-02-08 15:21:35 +01:00
parityti2_test.zig Replace std.rand references with std.Random 2024-02-08 15:21:35 +01:00
popcount.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
popcountdi2_test.zig Replace std.rand references with std.Random 2024-02-08 15:21:35 +01:00
popcountsi2_test.zig Replace std.rand references with std.Random 2024-02-08 15:21:35 +01:00
popcountti2_test.zig Replace std.rand references with std.Random 2024-02-08 15:21:35 +01:00
powiXf2.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
powiXf2_test.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
rem_pio2.zig compiler_rt: fight off @as invasion 2023-09-19 09:37:52 -07:00
rem_pio2_large.zig aarch64: add new from scratch self-hosted backend 2025-07-22 19:43:47 -07:00
rem_pio2f.zig Use builtin inference over @as where possible 2023-07-24 10:23:51 -07:00
rem_pio2l.zig Implement partially ordered operator precedence 2026-10-22 12:21:43 +02:00
round.zig compiler_rt: support targets where c_longdouble is not a valid type 2026-10-20 15:45:44 -04:00
shift.zig compiler_rt: common -> compiler_rt 2026-02-09 20:03:15 -08:00
shift_test.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
sin.zig compiler_rt: support targets where c_longdouble is not a valid type 2026-10-20 15:45:44 -04:00
sincos.zig compiler_rt: support targets where c_longdouble is not a valid type 2026-10-20 15:45:44 -04:00
sqrt.zig Implement partially ordered operator precedence 2026-10-22 12:21:43 +02:00
ssp.zig compiler-rt: remove some @export usage in favor of symbol() 2026-09-26 19:12:24 +02:00
stack_probe.zig compiler_rt: common -> compiler_rt 2026-02-09 20:03:15 -08:00
subvdi3.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
subvsi3.zig compiler_rt: change float abi so it can become compatible with cbe 2026-07-27 14:35:12 -04:00
tan.zig compiler_rt: support targets where c_longdouble is not a valid type 2026-10-20 15:45:44 -04:00
trig.zig compiler_rt: Make long double trig impls non-generic 2026-04-02 23:54:20 +02:00
trunc.zig compiler_rt: support targets where c_longdouble is not a valid type 2026-10-20 15:45:44 -04:00
truncf.zig compiler-rt: fix f80 conversions for subnormal destination 2026-10-24 13:42:01 +02:00
truncf_test.zig compiler-rt: fix f80 conversions for subnormal destination 2026-10-24 13:42:01 +02:00
ucmpdi2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
ucmpsi2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
ucmpti2_test.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
udivmod.zig compiler_rt: update for new @bitCast semantics 2026-06-24 10:20:56 +01:00
udivmoddi4_test.zig compiler_rt: remove bogus tests 2024-10-19 19:44:53 +01:00
udivmodei4.zig compiler-rt: disable __udivei4/__umodei4 test on sparc64 w/ llvm 2026-10-07 00:30:52 +02:00
udivmodsi4_test.zig compiler_rt: remove bogus tests 2024-10-19 19:44:53 +01:00
udivmodti4_test.zig compiler_rt: common -> compiler_rt 2026-02-09 20:03:15 -08:00