Files
tinygo/compiler/testdata
Nia Waldvogel bc9708f51a compiler: fix min/max on floats by using intrinsics
This fixes two edge cases for min/max:
min/max(+0.0, -0.0) = -0.0, +0.0
min/max(number, NaN) = NaN, NaN

The compare and select method does not work here.
I switched to the llvm.minimum/llvm.maximum intrinsics which match the intended behavior.

The integer min/max were also swapped over to using intrinsics.
The compare and select path is now only used by strings.
2026-01-05 19:46:06 +00:00
..
2025-09-17 05:28:06 -04:00
2025-09-17 05:28:06 -04:00
2025-09-17 05:28:06 -04:00
2021-04-12 12:07:42 +02:00
2025-09-17 05:28:06 -04:00
2022-01-19 14:42:02 -05:00
2025-09-17 05:28:06 -04:00
2025-09-17 05:28:06 -04:00
2025-09-17 05:28:06 -04:00
2024-11-20 14:07:55 +01:00
2025-09-17 05:28:06 -04:00
2025-09-17 05:28:06 -04:00