summary refs log tree commit diff
path: root/minic
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2024-02-29 23:24:33 +0900
committerNguyễn Gia Phong <cnx@loang.net>2024-03-01 01:55:07 +0900
commit0711a8360c18ac45756ae773a1c0e326f6de4789 (patch)
tree38d69217cf2dfbd27b0b35a6ccbec0708795e403 /minic
parent2d683e0c53907ebca9abde876dd87af70719e42d (diff)
downloadroux-0711a8360c18ac45756ae773a1c0e326f6de4789.tar.gz
test/fpcnv: skip comparing inexactly converted int
In C, if a floating point cannot be represented exactly as an integer,
conversion from the former to the latter is implementation-defined.
Therefore, it can be flaky to test this against QBE-defined behavior.

This was discovered from (unsigned int) 4294967295.0f being an UB,
because (uint64_t) 4294967295.0f is 4294967296 > UINT_MAX
on amd64 when compiled by either gcc or clang.
Diffstat (limited to 'minic')
0 files changed, 0 insertions, 0 deletions