tests/tcg: run tests with meson
Subsystems (2)
v8 cover tests/tcg: run tests with meson
This series replaces TCG tests makefiles with meson, with the
goal of having something more readable and maintainable in the long term. Also it closes the gap that tcg tests had with the rest of tests, by integrating them with meson directly.
It covers all existing tests for all architectures, including user/system/multiarch-user/multiarch-system. It implements all requirements listed on original thread [1].
[1] https://lore.kernel.org/qemu-devel/[email protected]/
We also have for free:
- correct and complete dependencies for any test, including:
scripts, c.inc, headers, reference files and binaries/plugins.
- catch test declaration issues at configure time vs test time.
- proper data types for variables instead of string expansion with make.
Series first introduce the meson machinery needed in tests/tcg/meson.build, step by step. Then it adds support for all existing archs. Finally, we remove Makefiles and configure bits, and add documentation.
Usage:
``` make check-tcg make check-tcg-aarch64-linux-user make check-tcg-aarch64-softmmu make tcg-tests ninja tcg-tests ninja clean ./pyvenv/bin/meson test aarch64-softmmu-asid2 --verbose ```
For reviews, this is the list of maintainers per target:
alpha: Richard Henderson <[email protected]>
arm: Peter Maydell <[email protected]>
hexagon: Brian Cain <[email protected]>
hppa: Brian Cain <[email protected]>, Helge Deller <[email protected]>
loongarch: Song Gao <[email protected]>, Bibo Mao <[email protected]>
m68k: Laurent Vivier <[email protected]>
mips: Philippe Mathieu-Daudé <[email protected]>
or1k: Stafford Horne <[email protected]>
ppc: Nicholas Piggin <[email protected]>
riscv: Palmer Dabbelt <[email protected]>, Alistair Francis <[email protected]>
s390x: Richard Henderson <[email protected]>, Ilya Leoshkevich <[email protected]>
sh4: Yoshinori Sato <[email protected]>
x86: Paolo Bonzini <[email protected]>, Richard Henderson <[email protected]>
xtensa: Max Filippov <[email protected]>
tricore: orphan
multiarch: Alex Bennée <[email protected]>
v8
--
- add new tests from upstream:
aarch64/sve-while-ptr, x86_64/segment-prefixes riscv64/zicclsm,zicclsm-off,test-minstret-ecall,test-misa-w
- add comment in gdbstub-prot-none.py
- add myself as Maintainer
v7
--
- tested on MacOS hosts (x64 + aarch64) in addition to linux x64 + aarch64
- fix sha1.c for big endian simply by including endian.h
- fix meson version bump: wrongly bumped qpl which had same version than meson
- gdb probe: add mipsel
- added missing compilation flags: -ffreestanding for all system tests, -march=armv7-a+fp for arm/system tests
- host cc system test: run simple test with -ffreestanding option
- testing doc: use ./run meson instead of ./pyvenv/bin/meson
- add new tests from upstream:
- hexagon: fp_hvx, fp_hvx_disabled, fp_hvx_cvt, fp_hvx_cmp, valid-slots
- s390x: prno-trng, stckf
v6
--
- add description for commits adding float reference files
- cache result of tests/docker/docker.py probe for faster container run
- fixed bug to detect if host cc is working
- detect when to deactivate prot-none.c test
- delete tests/tcg/s390x/pgm-specification.mak
- move remaining bits of gdb detection from configure to meson
- implement meson summary to dump tcg tests configuration
- implement ./configure containers options
- implement ./configure -cross-cc-* options
- add new tests added since last version: hexagon/unaligned_data.c
v5
--
- remove Makefiles incrementally to ease review, as suggested by Philippe
- default timeout 120 (matching Makefile default)
v4
--
- rebase on top of master (Makefiles + Dockerfile changes)
- full CI pass on GitLab
- update documentation for tcg-tests
- check host cross cc is working (handle fedora cross compiler without runtime or headers)
- rename cc_docker_arch to cc_docker_host_arch
- add test added since v3: aarch64/fprcvt
- enable tricore system tests (was missing -kernel parameter)
- add xtensaeb system tests
- remove dependency from s390x/console.c to roms/SLOF submodule, which allows to compile those tests without requiring the submodule.
- fix meson warnings (min version for test with external program in args + s/source_root/project_source_root/)
- skip failing test gdb-prot-none on GitLab CI
v3
--
- add all architectures
- reduce number of plugins tests (only add one test for each plugin from multiarch pool)
- add depends for executable - allow to depend on a custom target for generated headers (x86_64 mmx, avx)
- add new tests added since last version for aarch64 (mte + gpc)
- refactor series to keep all arch files at end
- add docker host architecture selection
v2
--
- s/mispell/misspell
- moved comment about why we remove 'lib' prefix for plugins
- if user declare a wrong entry in a dictionary, list possible keys
- build tests by default (with 'all' target), as long as cross compiler is natively installed, to avoid triggering a container build.
- reword some comments based on reviewers feedback
- always declare all tests and avoid "per config" errors (no 'if' in arch files)
- move compiler feature and gdb version checks directly in tests/tcg/meson.build
- add support for cross containers
- add top target 'tcg-tests' to rebuild all tests
Pierrick Bouvier (105):
tests/tcg/multiarch/system/memory.c: remove unused variable tests/tcg/multiarch/plugin/check-plugin-output.sh: take test output as
input
tests/tcg/multiarch/plugin: rename check-plugin-output to
regex-compare
meson: bump minimal version to 1.6.0
tests/tcg: introduce meson.build
tests/tcg/meson.build: introduce exe_name tests/tcg/meson.build: introduce test_name tests/tcg/meson.build: introduce cflags tests/tcg/meson.build: introduce qemu_args tests/tcg/meson.build: introduce env_var tests/tcg/plugins: build list of test_plugins tests/tcg/meson.build: introduce plugin_test tests/tcg/meson.build: test gdb support and introduce gdb_arch tests/tcg/meson.build: introduce gdb_test tests/tcg/meson.build: introduce wrapper tests/tcg/meson.build: introduce expected_output tests/tcg/meson.build: add wrapper run_and_check_forbidden_output tests/tcg/meson.build: add wrapper run_with_input tests/tcg/meson.build: add wrapper record_replay tests/tcg/meson.build: add wrapper check_plugin_output tests/tcg/meson.build: add logic to skip tests tests/tcg/meson.build: introduce cc_feat and cc_feat_cflags tests/tcg/meson.build: introduce gdb_feat and gdb_feat_version tests/tcg/meson.build: move gdb_arch support check tests/tcg/meson.build: let test infrastructure detect compiler tests/docker/docker.py: return error code if probe fails tests/docker/docker.py: remove "Image is up to date" info tests/tcg/meson.build: introduce cc_dockerfile and cc_docker_host_arch tests/tcg/meson.build: check host cross cc is working tests/tcg/meson.build: introduce depends tests/tcg/meson.build: use full path for QEMU binary tests/tcg/meson.build: add top-level 'tcg-tests' target tests/tcg/Makefile: skip user/system tests if target Makefile is not
present
tests/tcg/multiarch/gdbstub/prot-none.py: deactivate on gitlab CI tests/tcg/multiarch/gdbstub/prot-none.py: detect if /proc/self/mem can
be used to access PROT_NONE pages
tests/tcg/multiarch: declare user tests tests/tcg/multiarch: declare system tests tests/tcg/meson.build: add generic plugin tests tests/tcg/arm/fcvt.c: use raw opcode for FPRCVT tests/tcg/aarch64: user tests tests/tcg/aarch64/system/gpc-test.c: remove unused variables tests/tcg/aarch64: system tests
tests/tcg/aarch64_be: user tests
tests/tcg/alpha: add float reference files tests/tcg/alpha: user tests
tests/tcg/alpha: system tests
tests/tcg/arm: user tests
tests/tcg/arm: system tests
tests/tcg/hexagon/overflow.c: add missing include tests/tcg/hexagon: user tests
tests/tcg/multiarch/sha1.c: fix big endian implementation tests/tcg/hppa: add float reference files
tests/tcg/hppa: user tests
tests/tcg/i386: add missing float reference files tests/tcg/i386: user tests
tests/tcg/i386: system tests
tests/tcg/loongarch64: user tests
tests/tcg/loongarch64: system tests
tests/tcg/m68k: add float reference files
tests/tcg/m68k: user tests
scripts/probe-gdb-support.py: add mapping for mips architecture tests/tcg/mips: add float reference files
test/tcg/mips: user tests
tests/tcg/mips64: add float reference files tests/tcg/mips64: user tests
tests/tcg/mips64el: add float reference files tests/tcg/mips64el: user tests tests/docker/dockerfiles/debian-all-test-cross.docker: add or1k
toolchain
tests/tcg/or1k/test_addic.c: remove unused variables tests/tcg/or1k/test_muli.c: remove set but unused variable tests/tcg/or1k: add float reference files
plugins/api.c: identify or1k pc register and mark it as read only tests/tcg/or1k: user tests
tests/tcg/ppc64: add float reference files tests/tcg/ppc64: remove dependency on qemu/compiler.h tests/tcg/ppc64: user tests
tests/tcg/ppc64le: add missing float reference file tests/tcg/ppc64le: user tests
tests/tcg/riscv64: add float reference files tests/tcg/riscv64: user tests
tests/tcg/riscv64: system tests
tests/tcg/s390x/head64.S: declare _exit symbol after main tests/tcg/s390x: add float reference files tests/tcg/s390x: user tests
tests/tcg/s390x/console.c: directly implement memcpy and memset tests/tcg/s390x: system tests
tests/tcg/sh4: add float reference files
tests/tcg/sh4: user tests
tests/tcg/tricore: system tests
tests/tcg/x86_64: add missing float reference file tests/tcg/x86_64: user tests
tests/tcg/x86_64: system tests
tests/tcg/xtensa/crt.S: align .text section tests/docker/dockerfiles/debian-xtensa-cross.docker: add test_kc705_be
toolchain for xtensaeb
tests/tcg/xtensa: system tests
tests/tcg/xtensa: xtensaeb system tests
tests: remove tcg tests machinery
tests/tcg: remove remaining Makefiles
configure: directly pass gdb path as a meson option tests/tcg/meson.build: implement ./configure containers options tests/tcg/meson.build: implement ./configure -cross-cc-* options
configure: remove cross_cc and gdb detection logic meson.build: add summary for TCG tests docs/devel/testing/: update documentation
MAINTAINERS: add maintainer for tcg/tests meson infrastructure
MAINTAINERS | 4 +- configure | 530 +--------- docs/devel/build-system.rst | 4 +- docs/devel/testing/main.rst | 35 +- meson.build | 21 +- meson_options.txt | 95 +- plugins/api.c | 2 + pythondeps.toml | 2 +- scripts/probe-gdb-support.py | 1 + tests/Makefile.include | 68 +- tests/docker/docker.py | 4 +- .../dockerfiles/debian-all-test-cross.docker | 14 +- .../dockerfiles/debian-xtensa-cross.docker | 4 +- tests/lcitool/refresh | 14 +- tests/meson.build | 2 +- tests/tcg/Makefile.target | 281 ----- tests/tcg/aarch64/Makefile.softmmu-target | 147 --- tests/tcg/aarch64/Makefile.target | 211 ---- tests/tcg/aarch64/meson.build | 210 ++++ tests/tcg/aarch64/system/gpc-test.c | 5 - tests/tcg/aarch64/system/meson.build | 109 ++ tests/tcg/aarch64_be/Makefile.target | 17 - tests/tcg/aarch64_be/meson.build | 22 + tests/tcg/alpha/Makefile.softmmu-target | 34 - tests/tcg/alpha/Makefile.target | 18 - tests/tcg/alpha/float_convd.ref | 988 ++++++++++++++++++ tests/tcg/alpha/float_convs.ref | 748 +++++++++++++ tests/tcg/alpha/float_madds.ref | 768 ++++++++++++++ tests/tcg/alpha/meson.build | 55 + tests/tcg/alpha/system/meson.build | 47 + tests/tcg/arm/Makefile.softmmu-target | 80 -- tests/tcg/arm/Makefile.target | 87 -- tests/tcg/arm/fcvt.c | 6 +- tests/tcg/arm/meson.build | 80 ++ tests/tcg/arm/system/meson.build | 69 ++ tests/tcg/hexagon/Makefile.target | 163 --- tests/tcg/hexagon/meson.build | 118 +++ tests/tcg/hexagon/overflow.c | 1 + tests/tcg/hppa/Makefile.target | 14 - tests/tcg/hppa/float_convd.ref | 988 ++++++++++++++++++ tests/tcg/hppa/float_convs.ref | 748 +++++++++++++ tests/tcg/hppa/float_madds.ref | 768 ++++++++++++++ tests/tcg/hppa/meson.build | 22 + tests/tcg/i386/Makefile.softmmu-target | 37 - tests/tcg/i386/Makefile.target | 102 -- tests/tcg/i386/float_convd.conf | 988 ------------------ tests/tcg/i386/float_convd.ref | 988 ++++++++++++++++++ tests/tcg/i386/float_madds.ref | 768 ++++++++++++++ tests/tcg/i386/meson.build | 58 + tests/tcg/i386/system/meson.build | 49 + tests/tcg/loongarch64/Makefile.softmmu-target | 33 - tests/tcg/loongarch64/Makefile.target | 20 - tests/tcg/loongarch64/meson.build | 32 + tests/tcg/loongarch64/system/meson.build | 48 + tests/tcg/m68k/Makefile.target | 7 - tests/tcg/m68k/float_convd.ref | 988 ++++++++++++++++++ tests/tcg/m68k/float_convs.ref | 748 +++++++++++++ tests/tcg/m68k/float_madds.ref | 768 ++++++++++++++ tests/tcg/m68k/meson.build | 23 + tests/tcg/meson.build | 513 +++++++++ tests/tcg/minilib/Makefile.target | 21 - tests/tcg/mips/Makefile.target | 19 - tests/tcg/mips/float_convd.ref | 988 ++++++++++++++++++ tests/tcg/mips/float_convs.ref | 748 +++++++++++++ tests/tcg/mips/float_madds.ref | 768 ++++++++++++++ tests/tcg/mips/meson.build | 25 + tests/tcg/mips64/Makefile.target | 20 - tests/tcg/mips64/float_convd.ref | 988 ++++++++++++++++++ tests/tcg/mips64/float_convs.ref | 748 +++++++++++++ tests/tcg/mips64/float_madds.ref | 768 ++++++++++++++ tests/tcg/mips64/meson.build | 27 + tests/tcg/mips64el/Makefile.target | 8 - tests/tcg/mips64el/float_convd.ref | 988 ++++++++++++++++++ tests/tcg/mips64el/float_convs.ref | 748 +++++++++++++ tests/tcg/mips64el/float_madds.ref | 768 ++++++++++++++ tests/tcg/mips64el/meson.build | 14 + tests/tcg/multiarch/Makefile.target | 224 ---- tests/tcg/multiarch/gdbstub/prot-none.py | 42 +- tests/tcg/multiarch/meson.build | 149 +++ .../multiarch/plugin/check-plugin-output.sh | 36 - tests/tcg/multiarch/plugin/regex-compare.sh | 28 + tests/tcg/multiarch/sha1.c | 1 + tests/tcg/multiarch/sha1.ref | 1 + .../multiarch/system/Makefile.softmmu-target | 81 -- tests/tcg/multiarch/system/memory.c | 3 +- tests/tcg/multiarch/system/meson.build | 53 + tests/tcg/or1k/Makefile | 71 -- tests/tcg/or1k/float_convd.ref | 247 +++++ tests/tcg/or1k/float_convs.ref | 187 ++++ tests/tcg/or1k/float_madds.ref | 192 ++++ tests/tcg/or1k/meson.build | 72 ++ tests/tcg/or1k/test_addic.c | 2 +- tests/tcg/or1k/test_muli.c | 5 +- tests/tcg/plugins/meson.build | 11 +- tests/tcg/ppc64/Makefile.target | 63 -- tests/tcg/ppc64/float_convd.ref | 988 ++++++++++++++++++ tests/tcg/ppc64/float_convs.ref | 748 +++++++++++++ tests/tcg/ppc64/float_madds.ref | 768 ++++++++++++++ tests/tcg/ppc64/meson.build | 56 + tests/tcg/ppc64/vector.c | 11 +- tests/tcg/ppc64/vsx_f2i_nan.c | 7 +- tests/tcg/ppc64le/Makefile.target | 7 - tests/tcg/ppc64le/float_convd.ref | 988 ++++++++++++++++++ tests/tcg/ppc64le/meson.build | 14 + tests/tcg/riscv64/Makefile.target | 20 - tests/tcg/riscv64/float_convd.ref | 988 ++++++++++++++++++ tests/tcg/riscv64/float_convs.ref | 748 +++++++++++++ tests/tcg/riscv64/float_madds.ref | 768 ++++++++++++++ tests/tcg/riscv64/meson.build | 38 + tests/tcg/riscv64/system/meson.build | 55 + tests/tcg/s390x/Makefile.softmmu-target | 57 - tests/tcg/s390x/Makefile.target | 129 --- tests/tcg/s390x/console.c | 30 +- tests/tcg/s390x/float_convd.ref | 988 ++++++++++++++++++ tests/tcg/s390x/float_convs.ref | 748 +++++++++++++ tests/tcg/s390x/float_madds.ref | 768 ++++++++++++++ tests/tcg/s390x/head64.S | 2 + tests/tcg/s390x/meson.build | 142 +++ tests/tcg/s390x/pgm-specification.mak | 15 - tests/tcg/s390x/system/meson.build | 92 ++ tests/tcg/scripts/check_plugin_output.sh | 25 + tests/tcg/scripts/record_replay.sh | 16 + .../scripts/run_and_check_forbidden_output.sh | 19 + tests/tcg/scripts/run_and_diff.sh | 15 + tests/tcg/scripts/run_with_input.sh | 12 + tests/tcg/sh4/Makefile.target | 18 - tests/tcg/sh4/float_convd.ref | 494 +++++++++ tests/tcg/sh4/float_convs.ref | 374 +++++++ tests/tcg/sh4/float_madds.ref | 384 +++++++ tests/tcg/sh4/meson.build | 25 + tests/tcg/test_cc.c | 9 + tests/tcg/tricore/Makefile.softmmu-target | 53 - tests/tcg/tricore/meson.build | 57 + tests/tcg/x86_64/Makefile.softmmu-target | 44 - tests/tcg/x86_64/Makefile.target | 41 - tests/tcg/x86_64/float_madds.ref | 768 ++++++++++++++ tests/tcg/x86_64/meson.build | 84 ++ tests/tcg/x86_64/system/meson.build | 63 ++ tests/tcg/xtensa/Makefile.softmmu-target | 46 - tests/tcg/xtensa/crt.S | 1 + tests/tcg/xtensa/meson.build | 110 ++ tests/tcg/xtensaeb/Makefile.softmmu-target | 5 - 142 files changed, 30861 insertions(+), 3865 deletions(-) delete mode 100644 tests/tcg/Makefile.target delete mode 100644 tests/tcg/aarch64/Makefile.softmmu-target delete mode 100644 tests/tcg/aarch64/Makefile.target create mode 100644 tests/tcg/aarch64/meson.build create mode 100644 tests/tcg/aarch64/system/meson.build delete mode 100644 tests/tcg/aarch64_be/Makefile.target create mode 100644 tests/tcg/aarch64_be/meson.build delete mode 100644 tests/tcg/alpha/Makefile.softmmu-target delete mode 100644 tests/tcg/alpha/Makefile.target create mode 100644 tests/tcg/alpha/float_convd.ref create mode 100644 tests/tcg/alpha/float_convs.ref create mode 100644 tests/tcg/alpha/float_madds.ref create mode 100644 tests/tcg/alpha/meson.build create mode 100644 tests/tcg/alpha/system/meson.build delete mode 100644 tests/tcg/arm/Makefile.softmmu-target delete mode 100644 tests/tcg/arm/Makefile.target create mode 100644 tests/tcg/arm/meson.build create mode 100644 tests/tcg/arm/system/meson.build delete mode 100644 tests/tcg/hexagon/Makefile.target create mode 100644 tests/tcg/hexagon/meson.build delete mode 100644 tests/tcg/hppa/Makefile.target create mode 100644 tests/tcg/hppa/float_convd.ref create mode 100644 tests/tcg/hppa/float_convs.ref create mode 100644 tests/tcg/hppa/float_madds.ref create mode 100644 tests/tcg/hppa/meson.build delete mode 100644 tests/tcg/i386/Makefile.softmmu-target delete mode 100644 tests/tcg/i386/Makefile.target delete mode 100644 tests/tcg/i386/float_convd.conf create mode 100644 tests/tcg/i386/float_convd.ref create mode 100644 tests/tcg/i386/float_madds.ref create mode 100644 tests/tcg/i386/meson.build create mode 100644 tests/tcg/i386/system/meson.build delete mode 100644 tests/tcg/loongarch64/Makefile.softmmu-target delete mode 100644 tests/tcg/loongarch64/Makefile.target create mode 100644 tests/tcg/loongarch64/meson.build create mode 100644 tests/tcg/loongarch64/system/meson.build delete mode 100644 tests/tcg/m68k/Makefile.target create mode 100644 tests/tcg/m68k/float_convd.ref create mode 100644 tests/tcg/m68k/float_convs.ref create mode 100644 tests/tcg/m68k/float_madds.ref create mode 100644 tests/tcg/m68k/meson.build create mode 100644 tests/tcg/meson.build delete mode 100644 tests/tcg/minilib/Makefile.target delete mode 100644 tests/tcg/mips/Makefile.target create mode 100644 tests/tcg/mips/float_convd.ref create mode 100644 tests/tcg/mips/float_convs.ref create mode 100644 tests/tcg/mips/float_madds.ref create mode 100644 tests/tcg/mips/meson.build delete mode 100644 tests/tcg/mips64/Makefile.target create mode 100644 tests/tcg/mips64/float_convd.ref create mode 100644 tests/tcg/mips64/float_convs.ref create mode 100644 tests/tcg/mips64/float_madds.ref create mode 100644 tests/tcg/mips64/meson.build delete mode 100644 tests/tcg/mips64el/Makefile.target create mode 100644 tests/tcg/mips64el/float_convd.ref create mode 100644 tests/tcg/mips64el/float_convs.ref create mode 100644 tests/tcg/mips64el/float_madds.ref create mode 100644 tests/tcg/mips64el/meson.build delete mode 100644 tests/tcg/multiarch/Makefile.target create mode 100644 tests/tcg/multiarch/meson.build delete mode 100755 tests/tcg/multiarch/plugin/check-plugin-output.sh create mode 100755 tests/tcg/multiarch/plugin/regex-compare.sh create mode 100644 tests/tcg/multiarch/sha1.ref delete mode 100644 tests/tcg/multiarch/system/Makefile.softmmu-target create mode 100644 tests/tcg/multiarch/system/meson.build delete mode 100644 tests/tcg/or1k/Makefile create mode 100644 tests/tcg/or1k/float_convd.ref create mode 100644 tests/tcg/or1k/float_convs.ref create mode 100644 tests/tcg/or1k/float_madds.ref create mode 100644 tests/tcg/or1k/meson.build delete mode 100644 tests/tcg/ppc64/Makefile.target create mode 100644 tests/tcg/ppc64/float_convd.ref create mode 100644 tests/tcg/ppc64/float_convs.ref create mode 100644 tests/tcg/ppc64/float_madds.ref create mode 100644 tests/tcg/ppc64/meson.build delete mode 100644 tests/tcg/ppc64le/Makefile.target create mode 100644 tests/tcg/ppc64le/float_convd.ref create mode 100644 tests/tcg/ppc64le/meson.build delete mode 100644 tests/tcg/riscv64/Makefile.target create mode 100644 tests/tcg/riscv64/float_convd.ref create mode 100644 tests/tcg/riscv64/float_convs.ref create mode 100644 tests/tcg/riscv64/float_madds.ref create mode 100644 tests/tcg/riscv64/meson.build create mode 100644 tests/tcg/riscv64/system/meson.build delete mode 100644 tests/tcg/s390x/Makefile.softmmu-target delete mode 100644 tests/tcg/s390x/Makefile.target create mode 100644 tests/tcg/s390x/float_convd.ref create mode 100644 tests/tcg/s390x/float_convs.ref create mode 100644 tests/tcg/s390x/float_madds.ref create mode 100644 tests/tcg/s390x/meson.build delete mode 100644 tests/tcg/s390x/pgm-specification.mak create mode 100644 tests/tcg/s390x/system/meson.build create mode 100755 tests/tcg/scripts/check_plugin_output.sh create mode 100755 tests/tcg/scripts/record_replay.sh create mode 100755 tests/tcg/scripts/run_and_check_forbidden_output.sh create mode 100755 tests/tcg/scripts/run_and_diff.sh create mode 100755 tests/tcg/scripts/run_with_input.sh delete mode 100644 tests/tcg/sh4/Makefile.target create mode 100644 tests/tcg/sh4/float_convd.ref create mode 100644 tests/tcg/sh4/float_convs.ref create mode 100644 tests/tcg/sh4/float_madds.ref create mode 100644 tests/tcg/sh4/meson.build create mode 100644 tests/tcg/test_cc.c delete mode 100644 tests/tcg/tricore/Makefile.softmmu-target create mode 100644 tests/tcg/tricore/meson.build delete mode 100644 tests/tcg/x86_64/Makefile.softmmu-target delete mode 100644 tests/tcg/x86_64/Makefile.target create mode 100644 tests/tcg/x86_64/float_madds.ref create mode 100644 tests/tcg/x86_64/meson.build create mode 100644 tests/tcg/x86_64/system/meson.build delete mode 100644 tests/tcg/xtensa/Makefile.softmmu-target create mode 100644 tests/tcg/xtensa/meson.build delete mode 100644 tests/tcg/xtensaeb/Makefile.softmmu-target
Signature · 1 line
2.43.0
PATCH v8 1/105 tests/tcg/multiarch/system/memory.c: remove unused variable
Caught this since by compiling this file with -Wall, -Werror.
../tests/tcg/aarch64/system/../../multiarch/system/memory.c: In function ‘init_test_data_s8’:../tests/tcg/aarch64/system/../../multiarch/system/memory.c:97:18: error: unused variable ‘bottom’ [-Werror=unused-variable]
97 | uint8_t top, bottom, *ptr = &test_data[0];
| ^~~~~~../tests/tcg/aarch64/system/../../multiarch/system/memory.c:97:13: error: unused variable ‘top’ [-Werror=unused-variable]
97 | uint8_t top, bottom, *ptr = &test_data[0];
| ^~~../tests/tcg/aarch64/system/../../multiarch/system/memory.c: In function ‘read_test_data_s8’:../tests/tcg/aarch64/system/../../multiarch/system/memory.c:384:14: error: unused variable ‘ok’ [-Werror=unused-variable]
384 | bool ok;
|--- tests/tcg/multiarch/system/memory.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
tests/tcg/multiarch/system/memory.c +1 -2
@@ -94,7 +94,7 @@ static inline uint8_t get_byte(int index, bool neg)static void init_test_data_s8 (bool neg_first) { -uint8_t top, bottom, *ptr = &test_data[0 ]; +uint8_t *ptr = &test_data[0 ];int i; ml_printf("Filling test area with s8 pairs (%s):",
@@ -381,7 +381,6 @@ static bool read_test_data_s8(int offset, bool neg_first)for (i =0 ; i < max; i++) {int16_t first, second; -bool ok; first = *ptr++; second = *ptr++;
Signature · 1 line
2.43.0
PATCH v8 2/105 tests/tcg/multiarch/plugin/check-plugin-output.sh: take test output as input
In reply to Pierrick BouvierInstead of executing test, just read it's output from a file. This allows to standardize how to call check plugins scripts.
--- tests/tcg/multiarch/Makefile.target | 3 +-- .../multiarch/plugin/check-plugin-output.sh | 22 ++++++------------- 2 files changed, 8 insertions(+), 17 deletions(-)
tests/tcg/multiarch/Makefile.target +1 -2
@@ -202,8 +202,7 @@ run-plugin-test-plugin-mem-access-with-libmem.so: \ PLUGIN_ARGS=$(COMMA)print-accesses=true run-plugin-test-plugin-mem-access-with-libmem.so: \ CHECK_PLUGIN_OUTPUT_COMMAND= \ - $(SRC_PATH)/tests/tcg/multiarch/plugin/check-plugin-output.sh \ - $(QEMU) $< + $(SRC_PATH)/tests/tcg/multiarch/plugin/check-plugin-output.sh [email protected] run-plugin-test-plugin-syscall-filter-with-libsyscall.so: run-plugin-test-plugin-set-pc-with-libsetpc.so:
tests/tcg/multiarch/plugin/check-plugin-output.sh +7 -15
@@ -1,8 +1,7 @@ #!/usr/bin/env bash -# This script runs a given executable using qemu, and compare its standard -# output with an expected plugin output. -# Each line of output is searched (as a regexp) in the expected plugin output. +# This script checks that plugin_output contains line from test_output. +# Each line of output is searched (as a regexp) in plugin_output. set -euo pipefail
@@ -19,18 +18,11 @@ check() grep "$pattern" "$file" > /dev/null || die "\"$pattern\" not found in $file" } -[ $# -eq 3 ] || die "usage: qemu_bin exe plugin_out_file" +[ $# -eq 2 ] || die "usage: test_output plugin_out" -qemu_bin=$1; shift -exe=$1;shift -plugin_out=$1; shift +test_output=$1;shift +plugin_output=$1;shift -expected() -{ - $qemu_bin $exe || - die "running $exe failed" -} - -expected | while read line; do - check "$plugin_out" "$line" +cat $test_output | while read line; do + check "$plugin_output" "$line" done
Signature · 1 line
2.43.0
PATCH v8 3/105 tests/tcg/multiarch/plugin: rename check-plugin-output to regex-compare
In reply to Pierrick BouvierWe'll reuse this name later in the series, so change existing script.
---
tests/tcg/multiarch/Makefile.target | 2 +-
.../plugin/{check-plugin-output.sh => regex-compare.sh} | 0
2 files changed, 1 insertion(+), 1 deletion(-)
rename tests/tcg/multiarch/plugin/{check-plugin-output.sh => regex-compare.sh} (100%)tests/tcg/multiarch/Makefile.target +1 -1
@@ -202,7 +202,7 @@ run-plugin-test-plugin-mem-access-with-libmem.so: \ PLUGIN_ARGS=$(COMMA)print-accesses=true run-plugin-test-plugin-mem-access-with-libmem.so: \ CHECK_PLUGIN_OUTPUT_COMMAND= \ - $(SRC_PATH)/tests/tcg/multiarch/plugin/check-plugin-output.sh [email protected] + $(SRC_PATH)/tests/tcg/multiarch/plugin/regex-compare.sh [email protected] run-plugin-test-plugin-syscall-filter-with-libsyscall.so: run-plugin-test-plugin-set-pc-with-libsetpc.so:
tests/tcg/multiarch/plugin/regex-compare.sh renamed from tests/tcg/multiarch/plugin/check-plugin-output.sh +0 -0
Signature · 1 line
2.43.0
PATCH v8 4/105 meson: bump minimal version to 1.6.0
In reply to Pierrick BouvierWithout it, we'll get the following warning:
WARNING: Project specifies a minimum meson_version '>=1.5.0' but uses features which were added in newer versions:
* 1.6.0: {'test with external_program in args'}
Which we require because of how we build iteratively our test command line.
--- meson.build | 2 +- pythondeps.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
meson.build +1 -1
@@ -1,4 +1,4 @@ -project('qemu', ['c'], meson_version: '>=1.5.0', +project('qemu', ['c'], meson_version: '>=1.6.0', default_options: ['warning_level=1', 'c_std=gnu11', 'cpp_std=gnu++23', 'b_colorout=auto', 'b_staticpic=false', 'stdsplit=false', 'optimization=2', 'b_pie=true'] +
pythondeps.toml +1 -1
@@ -19,7 +19,7 @@ [meson] # The install key should match the version in python/wheels/ -meson = { accepted = ">=1.5.0", installed = "1.12.0", canary = "meson" } +meson = { accepted = ">=1.6.0", installed = "1.12.0", canary = "meson" } pycotap = { accepted = ">=1.1.0", installed = "1.3.1" } [meson-rust]
Signature · 1 line
2.43.0
PATCH v8 5/105 tests/tcg: introduce meson.build
In reply to Pierrick BouvierEvery target declare its tests, and add them in global tcg_tests dictionary, indexed by target name. See comment for full description.
We make sure that if a user repeats a test several time it won't result in duplicated executables or tests. In next commits, we'll introduce what's needed to deal with that.
A test is compiled from a single source file (and later, a single set of compile flags). We make sure dependencies are correctly handled by generating a depfile.
--- tests/meson.build | 2 +- tests/tcg/meson.build | 96 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 tests/tcg/meson.build
tests/meson.build +1 -1
@@ -74,7 +74,7 @@ subdir('decode') if 'CONFIG_TCG' in config_all_accel subdir('fp') - subdir('tcg/plugins') + subdir('tcg') endif subdir('audio')
tests/tcg/meson.build new file +96 -0
96 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v8 6/105 tests/tcg/meson.build: introduce exe_name
In reply to Pierrick BouvierWe add possibility to duplicate a test executable for a given source file. This is needed when different cflags need to be used (like vectorized vs non-vectorized for instance, like sve tests in aarch64).
--- tests/tcg/meson.build | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-)
tests/tcg/meson.build +15 -2
@@ -11,6 +11,7 @@ tcg_tests = {} # 'tests': [ # { # 'src_file': { +# 'exe_name': ['provide an alternative binary name'], # } # }, # ...
@@ -18,10 +19,10 @@ tcg_tests = {} # } # } # -# Every test executable, is built only once. +# Every test executable, identified by 'exe_name' is built only once. # Tests for a given src use the same executable by default, and their definition # is guaranteed to be unique also. -# Default name is derived from src. +# Default name is derived from src if 'exe_name' is omitted. # plugins come first, as we need to build the list subdir('plugins')
@@ -49,10 +50,22 @@ foreach target, plan: tcg_tests foreach t : tests foreach src, setup: t + # return a clear error if user misspell a setup entry + foreach key, _ : setup + allowed = ['exe_name'] + if key not in allowed + error('unknown tcg setup entry \'' + key + '\' for test ' + src + + ' (possible: [' + ', '.join(allowed) + '])') + endif + endforeach + # meson '/' operator drops left operand if right is an absolute path src = folder / src file = files(src) exe_name = fs.stem(src) + if 'exe_name' in setup + exe_name = setup['exe_name'] + endif exe_name = target + '-' + exe_name test_name = exe_name
Signature · 1 line
2.43.0
PATCH v8 7/105 tests/tcg/meson.build: introduce test_name
In reply to Pierrick BouvierWe add possibility to duplicate a test for a given src. This allows to declare several tests that still share the same executable, thus saving space and compile time.
A side note to mention that meson perfectly supports declaring several tests with the same name. However, we prevent that to force dev to clarify what is the intent of each individual test.
--- tests/tcg/meson.build | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-)
tests/tcg/meson.build +11 -4
@@ -12,6 +12,7 @@ tcg_tests = {} # { # 'src_file': { # 'exe_name': ['provide an alternative binary name'], +# 'test_name': ['provide an alternative test name'], # } # }, # ...
@@ -21,8 +22,9 @@ tcg_tests = {} # # Every test executable, identified by 'exe_name' is built only once. # Tests for a given src use the same executable by default, and their definition -# is guaranteed to be unique also. -# Default name is derived from src if 'exe_name' is omitted. +# is guaranteed to be unique also. Several tests for the same executable can +# declared using 'test_name'. +# Default name is derived from src if 'exe_name' and 'test_name' are omitted. # plugins come first, as we need to build the list subdir('plugins')
@@ -52,7 +54,7 @@ foreach target, plan: tcg_tests foreach src, setup: t # return a clear error if user misspell a setup entry foreach key, _ : setup - allowed = ['exe_name'] + allowed = ['exe_name', 'test_name'] if key not in allowed error('unknown tcg setup entry \'' + key + '\' for test ' + src + ' (possible: [' + ', '.join(allowed) + '])')
@@ -67,8 +69,13 @@ foreach target, plan: tcg_tests exe_name = setup['exe_name'] endif - exe_name = target + '-' + exe_name test_name = exe_name + if 'test_name' in setup + test_name = setup['test_name'] + endif + + exe_name = target + '-' + exe_name + test_name = target + '-' + test_name if test_name in added_tests error('test ' + test_name + ' was already added: ' +
Signature · 1 line
2.43.0
PATCH v8 8/105 tests/tcg/meson.build: introduce cflags
In reply to Pierrick BouvierWe add possibility to declare cflags for a given test. Since we want to preserve the uniqueness of test binaries, we prevent repeating those cflags later, for an existing binary.
This ensures one executable == one set of cflags, and if dev needs duplication, they can use a custom 'exe_name' to override this.
--- tests/tcg/meson.build | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-)
tests/tcg/meson.build +14 -3
@@ -13,6 +13,7 @@ tcg_tests = {} # 'src_file': { # 'exe_name': ['provide an alternative binary name'], # 'test_name': ['provide an alternative test name'], +# 'cflags': ['additional cflags to compile test', ...], # } # }, # ...
@@ -20,7 +21,8 @@ tcg_tests = {} # } # } # -# Every test executable, identified by 'exe_name' is built only once. +# Every test executable, identified by 'exe_name' is built only once, and we +# ensure cflags are specified only once, on first declaration. # Tests for a given src use the same executable by default, and their definition # is guaranteed to be unique also. Several tests for the same executable can # declared using 'test_name'.
@@ -54,7 +56,7 @@ foreach target, plan: tcg_tests foreach src, setup: t # return a clear error if user misspell a setup entry foreach key, _ : setup - allowed = ['exe_name', 'test_name'] + allowed = ['exe_name', 'cflags', 'test_name'] if key not in allowed error('unknown tcg setup entry \'' + key + '\' for test ' + src + ' (possible: [' + ', '.join(allowed) + '])')
@@ -82,6 +84,15 @@ foreach target, plan: tcg_tests 'specify a different \'test_name\'') endif + cflags = [] + if 'cflags' in setup + if exe_name in built_tests + error('test ' + exe_name + ' was already built with cflags: ' + + 'remove cflags or set \'exe_name\' (if cflags are different)') + endif + cflags = setup['cflags'] + endif + # build executable if needed if exe_name not in built_tests exe = custom_target(exe_name,
@@ -91,7 +102,7 @@ foreach target, plan: tcg_tests '-MMD', '-MF', '@DEPFILE@', '-Wall', '-Werror', '-O0', '-g', '-fno-strict-aliasing', - ], + cflags], depfile: exe_name + '.d', output: exe_name + '.test', build_by_default: false)
Signature · 1 line
2.43.0
PATCH v8 9/105 tests/tcg/meson.build: introduce qemu_args
In reply to Pierrick BouvierWe add possibility to use custom arguments when calling qemu for a test.
--- tests/tcg/meson.build | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
tests/tcg/meson.build +7 -2
@@ -14,6 +14,7 @@ tcg_tests = {} # 'exe_name': ['provide an alternative binary name'], # 'test_name': ['provide an alternative test name'], # 'cflags': ['additional cflags to compile test', ...], +# 'qemu_args': ['qemu command line flags', ...], # } # }, # ...
@@ -56,7 +57,7 @@ foreach target, plan: tcg_tests foreach src, setup: t # return a clear error if user misspell a setup entry foreach key, _ : setup - allowed = ['exe_name', 'cflags', 'test_name'] + allowed = ['exe_name', 'cflags', 'qemu_args', 'test_name'] if key not in allowed error('unknown tcg setup entry \'' + key + '\' for test ' + src + ' (possible: [' + ', '.join(allowed) + '])')
@@ -110,9 +111,13 @@ foreach target, plan: tcg_tests endif depends = [] + qemu_args = [] + if 'qemu_args' in setup + qemu_args = setup['qemu_args'] + endif exe = built_tests[exe_name] - cmd = [qemu, exe] + cmd = [qemu, qemu_args, exe] # some tests expect QEMU env var to be set cmd = ['QEMU=' + qemu.full_path(), cmd]
Signature · 1 line
2.43.0
PATCH v8 10/105 tests/tcg/meson.build: introduce env_var
In reply to Pierrick BouvierWe add possibility to set an environment variable when running a test. An example of a test requiring this is tests/tcg/multiarch/linux/linux-sigrtminmax.c.
--- tests/tcg/meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
tests/tcg/meson.build +6 -1
@@ -15,6 +15,7 @@ tcg_tests = {} # 'test_name': ['provide an alternative test name'], # 'cflags': ['additional cflags to compile test', ...], # 'qemu_args': ['qemu command line flags', ...], +# 'env_var': ['VAR=value', ...], # } # }, # ...
@@ -57,7 +58,7 @@ foreach target, plan: tcg_tests foreach src, setup: t # return a clear error if user misspell a setup entry foreach key, _ : setup - allowed = ['exe_name', 'cflags', 'qemu_args', 'test_name'] + allowed = ['exe_name', 'env_var', 'cflags', 'qemu_args', 'test_name'] if key not in allowed error('unknown tcg setup entry \'' + key + '\' for test ' + src + ' (possible: [' + ', '.join(allowed) + '])')
@@ -122,6 +123,10 @@ foreach target, plan: tcg_tests # some tests expect QEMU env var to be set cmd = ['QEMU=' + qemu.full_path(), cmd] + if 'env_var' in setup + cmd = [setup['env_var'], cmd] + endif + test(test_name, env, args: cmd, depends: depends, timeout: 120,
Signature · 1 line
2.43.0
PATCH v8 11/105 tests/tcg/plugins: build list of test_plugins
In reply to Pierrick BouvierWe previously had list of test_plugins sources, but not the target themselves. Create this list, so tests can then reference a plugin by its name from there.
--- tests/tcg/meson.build | 1 + tests/tcg/plugins/meson.build | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-)
tests/tcg/meson.build +1 -0
@@ -31,6 +31,7 @@ tcg_tests = {} # Default name is derived from src if 'exe_name' and 'test_name' are omitted. # plugins come first, as we need to build the list +test_plugins = {} subdir('plugins') # Finally, we can create all test executables and test targets
tests/tcg/plugins/meson.build +7 -4
@@ -1,4 +1,4 @@ -test_plugins = [ +test_plugins_src = [ 'bb.c', 'discons.c', 'empty.c',
@@ -14,9 +14,12 @@ test_plugins = [ t = [] if get_option('plugins') - foreach i : test_plugins - t += shared_module(fs.stem(i), files(i), - dependencies: plugins_deps) + foreach i : test_plugins_src + name = fs.stem(i) + plugin = shared_module(name, files(i), + dependencies: plugins_deps) + t += plugin + test_plugins += {name: plugin} endforeach endif if t.length() > 0
Signature · 1 line
2.43.0
PATCH v8 12/105 tests/tcg/meson.build: introduce plugin_test
In reply to Pierrick BouvierWe add possibility to declare a test that is based on a plugin.
--- tests/tcg/meson.build | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-)
tests/tcg/meson.build +42 -1
@@ -16,6 +16,10 @@ tcg_tests = {} # 'cflags': ['additional cflags to compile test', ...], # 'qemu_args': ['qemu command line flags', ...], # 'env_var': ['VAR=value', ...], +# 'plugin_test': { +# 'plugin': 'plugin_name', +# 'args': ['plugin_args', ...], +# }, # } # }, # ...
@@ -59,13 +63,29 @@ foreach target, plan: tcg_tests foreach src, setup: t # return a clear error if user misspell a setup entry foreach key, _ : setup - allowed = ['exe_name', 'env_var', 'cflags', 'qemu_args', 'test_name'] + allowed = ['exe_name', 'env_var', 'cflags', 'plugin_test', + 'qemu_args', 'test_name'] if key not in allowed error('unknown tcg setup entry \'' + key + '\' for test ' + src + ' (possible: [' + ', '.join(allowed) + '])') endif endforeach + # return a clear error if user misspell a plugin entry + if 'plugin_test' in setup + foreach key, _ : setup['plugin_test'] + allowed = ['args', 'plugin'] + if key not in allowed + error('unknown tcg plugin entry \'' + key + '\' for test ' + src + + ' (possible: [' + ', '.join(allowed) + '])') + endif + endforeach + endif + + if 'plugin_test' in setup and not get_option('plugins') + continue + endif + # meson '/' operator drops left operand if right is an absolute path src = folder / src file = files(src)
@@ -78,6 +98,12 @@ foreach target, plan: tcg_tests if 'test_name' in setup test_name = setup['test_name'] endif + if 'plugin_test' in setup + plugin = test_plugins[setup['plugin_test']['plugin']] + # remove 'lib' prefix + plugin_name = fs.stem(plugin).substring(3) + test_name = 'plugin-' + plugin_name + '-with-' + test_name + endif exe_name = target + '-' + exe_name test_name = target + '-' + test_name
@@ -118,6 +144,21 @@ foreach target, plan: tcg_tests qemu_args = setup['qemu_args'] endif + if 'plugin_test' in setup + plugin_setup = setup['plugin_test'] + plugin = test_plugins[plugin_setup['plugin']] + plugin_args = [] + if 'args' in plugin_setup + # add empty arg to generate an additional comma + plugin_args = ['', plugin_setup['args']] + endif + plugin_args = ','.join(plugin_args) + + # since we turn plugin into a string, add dependency explicitly + depends += plugin + qemu_args = ['-plugin', plugin.full_path() + plugin_args, qemu_args] + endif + exe = built_tests[exe_name] cmd = [qemu, qemu_args, exe]
Signature · 1 line
2.43.0
PATCH v8 13/105 tests/tcg/meson.build: test gdb support and introduce gdb_arch
In reply to Pierrick BouvierA given target can now declare which gdb architecture it requires. Also, we add the code to check gdb capabilities, and version. Tests can use gdb_version.version_compare('>=X.Y') to test this.
--- tests/tcg/meson.build | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-)
tests/tcg/meson.build +21 -1
@@ -1,5 +1,11 @@ env = find_program('env') +gdb_progs = ['gdb-multiarch', 'gdb'] +if config_host.has_key('GDB') + gdb_progs = [config_host['GDB'], gdb_progs] +endif +gdb = find_program(gdb_progs, required: false) + tcg_tests = {} # tcg_tests is a dictionary with following structure: #
@@ -7,6 +13,7 @@ tcg_tests = {} # 'name_of_target': { # 'cc': cross_compiler, # 'folder': 'folder_for_test_src_files', +# 'gdb_arch': 'gdb architecture requirement', # 'qemu': emulators['qemu-...'], # 'tests': [ # {
@@ -34,6 +41,18 @@ tcg_tests = {} # declared using 'test_name'. # Default name is derived from src if 'exe_name' and 'test_name' are omitted. +gdb_arch_supported = {} +gdb_version = '0' +if gdb.found() + gdb_version = gdb.version() + gdb_arch = run_command(python, files('../../scripts/probe-gdb-support.py'), + gdb, + check: true) + foreach arch: gdb_arch.stdout().split() + gdb_arch_supported += {arch: true} + endforeach +endif + # plugins come first, as we need to build the list test_plugins = {} subdir('plugins')
@@ -47,7 +66,7 @@ foreach target, plan: tcg_tests # return a clear error if user misspell a target entry foreach key, _ : plan - allowed = ['cc', 'folder', 'qemu', 'tests'] + allowed = ['cc', 'folder', 'gdb_arch', 'qemu', 'tests'] if key not in allowed error('unknown tcg test plan entry \'' + key + '\' for target ' + target + ' (possible: [' + ', '.join(allowed) + '])')
@@ -56,6 +75,7 @@ foreach target, plan: tcg_tests cc = plan['cc'] folder = plan['folder'] + gdb_arch = plan['gdb_arch'] qemu = plan['qemu'] tests = plan['tests']
Signature · 1 line
2.43.0
PATCH v8 14/105 tests/tcg/meson.build: introduce gdb_test
In reply to Pierrick BouvierWe can now declare a test requiring gdb interaction, based on tests/guest-debug/run-test.py.
--- tests/tcg/meson.build | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-)
tests/tcg/meson.build +20 -2
@@ -5,6 +5,7 @@ if config_host.has_key('GDB') gdb_progs = [config_host['GDB'], gdb_progs] endif gdb = find_program(gdb_progs, required: false) +prog_gdb_test = find_program('../guest-debug/run-test.py') tcg_tests = {} # tcg_tests is a dictionary with following structure:
@@ -22,6 +23,7 @@ tcg_tests = {} # 'test_name': ['provide an alternative test name'], # 'cflags': ['additional cflags to compile test', ...], # 'qemu_args': ['qemu command line flags', ...], +# 'gdb_test': ['gdb test args'], # 'env_var': ['VAR=value', ...], # 'plugin_test': { # 'plugin': 'plugin_name',
@@ -83,7 +85,7 @@ foreach target, plan: tcg_tests foreach src, setup: t # return a clear error if user misspell a setup entry foreach key, _ : setup - allowed = ['exe_name', 'env_var', 'cflags', 'plugin_test', + allowed = ['exe_name', 'env_var', 'cflags', 'gdb_test', 'plugin_test', 'qemu_args', 'test_name'] if key not in allowed error('unknown tcg setup entry \'' + key + '\' for test ' + src +
@@ -102,6 +104,10 @@ foreach target, plan: tcg_tests endforeach endif + if 'gdb_test' in setup and gdb_arch not in gdb_arch_supported + continue + endif + if 'plugin_test' in setup and not get_option('plugins') continue endif
@@ -118,7 +124,9 @@ foreach target, plan: tcg_tests if 'test_name' in setup test_name = setup['test_name'] endif - if 'plugin_test' in setup + if 'gdb_test' in setup + test_name = 'gdb-' + test_name + elif 'plugin_test' in setup plugin = test_plugins[setup['plugin_test']['plugin']] # remove 'lib' prefix plugin_name = fs.stem(plugin).substring(3)
@@ -182,6 +190,16 @@ foreach target, plan: tcg_tests exe = built_tests[exe_name] cmd = [qemu, qemu_args, exe] + if 'gdb_test' in setup + cmd = [prog_gdb_test, + '--gdb', gdb, + '--qemu', qemu, + '--qargs', ' '.join(qemu_args), + '--bin', exe, + setup['gdb_test'], + ] + endif + # some tests expect QEMU env var to be set cmd = ['QEMU=' + qemu.full_path(), cmd]
Signature · 1 line
2.43.0
PATCH v8 15/105 tests/tcg/meson.build: introduce wrapper
In reply to Pierrick BouvierWe add possibility to wrap a test command through a given script. This can be used to provide any kind of ad-hoc check for specific tests.
--- tests/tcg/meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
tests/tcg/meson.build +6 -1
@@ -25,6 +25,7 @@ tcg_tests = {} # 'qemu_args': ['qemu command line flags', ...], # 'gdb_test': ['gdb test args'], # 'env_var': ['VAR=value', ...], +# 'wrapper': [program_to_launch_test, 'args'...], # 'plugin_test': { # 'plugin': 'plugin_name', # 'args': ['plugin_args', ...],
@@ -86,7 +87,7 @@ foreach target, plan: tcg_tests # return a clear error if user misspell a setup entry foreach key, _ : setup allowed = ['exe_name', 'env_var', 'cflags', 'gdb_test', 'plugin_test', - 'qemu_args', 'test_name'] + 'qemu_args', 'test_name', 'wrapper'] if key not in allowed error('unknown tcg setup entry \'' + key + '\' for test ' + src + ' (possible: [' + ', '.join(allowed) + '])')
@@ -200,6 +201,10 @@ foreach target, plan: tcg_tests ] endif + if 'wrapper' in setup + cmd = [setup['wrapper'], cmd] + endif + # some tests expect QEMU env var to be set cmd = ['QEMU=' + qemu.full_path(), cmd]
Signature · 1 line
2.43.0
PATCH v8 16/105 tests/tcg/meson.build: introduce expected_output
In reply to Pierrick BouvierA test can declare it expects a specific output on stdout. In this case, we compare it to a reference file. We implement this instead of relying on a wrapper because we need the flexibility to resolve name of reference file per target.
For instance, multiarch float tests expect different ref files for each target, which is something we can't express with a test wrapper.
--- tests/tcg/meson.build | 12 ++++++++++-- tests/tcg/scripts/run_and_diff.sh | 15 +++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100755 tests/tcg/scripts/run_and_diff.sh
tests/tcg/meson.build +10 -2
@@ -6,6 +6,7 @@ if config_host.has_key('GDB') endif gdb = find_program(gdb_progs, required: false) prog_gdb_test = find_program('../guest-debug/run-test.py') +prog_run_and_diff = find_program('./scripts/run_and_diff.sh') tcg_tests = {} # tcg_tests is a dictionary with following structure:
@@ -23,6 +24,7 @@ tcg_tests = {} # 'test_name': ['provide an alternative test name'], # 'cflags': ['additional cflags to compile test', ...], # 'qemu_args': ['qemu command line flags', ...], +# 'expected_output': 'file_to_compare_output', # 'gdb_test': ['gdb test args'], # 'env_var': ['VAR=value', ...], # 'wrapper': [program_to_launch_test, 'args'...],
@@ -86,8 +88,9 @@ foreach target, plan: tcg_tests foreach src, setup: t # return a clear error if user misspell a setup entry foreach key, _ : setup - allowed = ['exe_name', 'env_var', 'cflags', 'gdb_test', 'plugin_test', - 'qemu_args', 'test_name', 'wrapper'] + allowed = ['exe_name', 'env_var', 'expected_output', 'cflags', + 'gdb_test', 'plugin_test', 'qemu_args', 'test_name', + 'wrapper'] if key not in allowed error('unknown tcg setup entry \'' + key + '\' for test ' + src + ' (possible: [' + ', '.join(allowed) + '])')
@@ -201,6 +204,11 @@ foreach target, plan: tcg_tests ] endif + if 'expected_output' in setup + expected = files(folder / setup['expected_output']) + cmd = [prog_run_and_diff, expected, cmd] + endif + if 'wrapper' in setup cmd = [setup['wrapper'], cmd] endif
tests/tcg/scripts/run_and_diff.sh new file +15 -0
@@ -0,0 +1,15 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-2.0-or-later + +set -euo pipefail + +if [ $# -lt 2 ]; then + echo "run_and_diff: expected_output_file cmd [args]..." 1>&2 + exit 1 +fi +expected="$1";shift +output=$(mktemp) +trap "rm -rf $output" EXIT +set -x +"$@" |& tee $output +diff $output $expected
Signature · 1 line
2.43.0
PATCH v8 17/105 tests/tcg/meson.build: add wrapper run_and_check_forbidden_output
In reply to Pierrick BouvierOne of our test requires to make sure output does not contain a specific string. An example is system multiarch test run-gdbstub-untimely-packet.
--- tests/tcg/meson.build | 3 +++ .../scripts/run_and_check_forbidden_output.sh | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100755 tests/tcg/scripts/run_and_check_forbidden_output.sh
tests/tcg/meson.build +3 -0
@@ -7,6 +7,9 @@ endif gdb = find_program(gdb_progs, required: false) prog_gdb_test = find_program('../guest-debug/run-test.py') prog_run_and_diff = find_program('./scripts/run_and_diff.sh') +prog_run_and_check_forbidden_output = find_program( + './scripts/run_and_check_forbidden_output.sh' +) tcg_tests = {} # tcg_tests is a dictionary with following structure:
tests/tcg/scripts/run_and_check_forbidden_output.sh new file +19 -0
@@ -0,0 +1,19 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-2.0-or-later + +set -euo pipefail + +if [ $# -lt 2 ]; then + echo "run_and_check_forbidden_output: 'forbidden string' cmd [args]..." 1>&2 + exit 1 +fi +forbidden="$1";shift +output=$("$@" 2>&1) +set -x +if ! echo "$output" | grep -Fi "$forbidden" +then + echo "output does not contain forbidden string: $forbidden" + exit 0 +fi +echo "found forbidden string: $forbidden" 1>&2 +exit 1
Signature · 1 line
2.43.0
PATCH v8 18/105 tests/tcg/meson.build: add wrapper run_with_input
In reply to Pierrick BouvierSemihosting console tests require console interaction, and were flagged as manual because of this. This wrapper automates interaction, by sending a specific string on stdin.
--- tests/tcg/meson.build | 1 + tests/tcg/scripts/run_with_input.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100755 tests/tcg/scripts/run_with_input.sh
tests/tcg/meson.build +1 -0
@@ -7,6 +7,7 @@ endif gdb = find_program(gdb_progs, required: false) prog_gdb_test = find_program('../guest-debug/run-test.py') prog_run_and_diff = find_program('./scripts/run_and_diff.sh') +prog_run_with_input = find_program('./scripts/run_with_input.sh') prog_run_and_check_forbidden_output = find_program( './scripts/run_and_check_forbidden_output.sh' )
tests/tcg/scripts/run_with_input.sh new file +12 -0
@@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-2.0-or-later + +set -euo pipefail + +if [ $# -lt 2 ]; then + echo "run_with_input: input_string cmd [args]..." 1>&2 + exit 1 +fi +input="$1";shift +set -x +echo "$input" | "$@"
Signature · 1 line
2.43.0
PATCH v8 19/105 tests/tcg/meson.build: add wrapper record_replay
In reply to Pierrick BouvierRuns a record and replay test, and make sure the output produced by both runs is the same.
--- tests/tcg/meson.build | 1 + tests/tcg/scripts/record_replay.sh | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100755 tests/tcg/scripts/record_replay.sh
tests/tcg/meson.build +1 -0
@@ -6,6 +6,7 @@ if config_host.has_key('GDB') endif gdb = find_program(gdb_progs, required: false) prog_gdb_test = find_program('../guest-debug/run-test.py') +prog_record_replay = find_program('./scripts/record_replay.sh') prog_run_and_diff = find_program('./scripts/run_and_diff.sh') prog_run_with_input = find_program('./scripts/run_with_input.sh') prog_run_and_check_forbidden_output = find_program(
tests/tcg/scripts/record_replay.sh new file +16 -0
@@ -0,0 +1,16 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-2.0-or-later + +set -euo pipefail + +if [ $# -lt 2 ]; then + echo "record_replay: qemu_bin [args]..." 1>&2 + exit 1 +fi +qemu="$1";shift +tmp=$(mktemp -d) +trap "rm -rf $tmp" EXIT +set -x +$qemu -icount shift=5,rr=record,rrfile=$tmp/rr.bin "$@" |& tee $tmp/record +$qemu -icount shift=5,rr=replay,rrfile=$tmp/rr.bin "$@" |& tee $tmp/replay +diff $tmp/record $tmp/replay
Signature · 1 line
2.43.0
PATCH v8 20/105 tests/tcg/meson.build: add wrapper check_plugin_output
In reply to Pierrick BouvierThis wrapper runs a qemu command, record command output and plugin output, and forward both to a check script.
We use this pattern in several plugin tests (for instance, with validate-memory-counts.py).
--- tests/tcg/meson.build | 1 + tests/tcg/scripts/check_plugin_output.sh | 25 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 tests/tcg/scripts/check_plugin_output.sh
tests/tcg/meson.build +1 -0
@@ -5,6 +5,7 @@ if config_host.has_key('GDB') gdb_progs = [config_host['GDB'], gdb_progs] endif gdb = find_program(gdb_progs, required: false) +prog_check_plugin_output = find_program('./scripts/check_plugin_output.sh') prog_gdb_test = find_program('../guest-debug/run-test.py') prog_record_replay = find_program('./scripts/record_replay.sh') prog_run_and_diff = find_program('./scripts/run_and_diff.sh')
tests/tcg/scripts/check_plugin_output.sh new file +25 -0
@@ -0,0 +1,25 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-2.0-or-later + +set -euo pipefail + +if [ $# -lt 3 ]; then + echo "check_plugin_output: check_cmd qemu_bin [args]..." 1>&2 + exit 1 +fi +check_cmd="$1"; shift +check_cmd_args="" +while [[ "$1" == "-"* ]]; do + check_cmd_args="$check_cmd_args $1" + shift +done + +qemu="$1"; shift +tmp=$(mktemp -d) +trap "rm -rf $tmp" EXIT + +set -x + +$qemu -d plugin -D $tmp/plugin "$@" |& tee $tmp/output +cat $tmp/plugin +$check_cmd $check_cmd_args $tmp/output $tmp/plugin
Signature · 1 line
2.43.0
PATCH v8 21/105 tests/tcg/meson.build: add logic to skip tests
In reply to Pierrick BouvierInstead of skipping tests and not declare them, always declare them and simply return an exit code 77 (SKIPPED for meson) and print reason why test is skipped.
--- tests/tcg/meson.build | 9 +++++++++ 1 file changed, 9 insertions(+)
tests/tcg/meson.build +9 -0
@@ -114,11 +114,15 @@ foreach target, plan: tcg_tests endforeach endif + # if set, we'll skip test and print the reason + skip_test = '' + if 'gdb_test' in setup and gdb_arch not in gdb_arch_supported continue endif if 'plugin_test' in setup and not get_option('plugins') + # do not use the skip_test logic, and simply ignore the test continue endif
@@ -226,6 +230,11 @@ foreach target, plan: tcg_tests cmd = [setup['env_var'], cmd] endif + if skip_test != '' + # still declare test, but skip it and print reason + cmd = ['sh', '-c', 'echo "' + skip_test + '" && exit 77'] + endif + test(test_name, env, args: cmd, depends: depends, timeout: 120,
Signature · 1 line
2.43.0
PATCH v8 22/105 tests/tcg/meson.build: introduce cc_feat and cc_feat_cflags
In reply to Pierrick BouvierWe directly move compiler requirements in test definition. This allows to always declare all tests, and let the main loop filter the ones that will be available.
--- tests/tcg/meson.build | 43 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 6 deletions(-)
tests/tcg/meson.build +37 -6
@@ -20,6 +20,10 @@ tcg_tests = {} # { # 'name_of_target': { # 'cc': cross_compiler, +# 'cc_feat_cflags': { +# 'name': ['feature cflags'], +# ... +# }, # 'folder': 'folder_for_test_src_files', # 'gdb_arch': 'gdb architecture requirement', # 'qemu': emulators['qemu-...'],
@@ -29,6 +33,7 @@ tcg_tests = {} # 'exe_name': ['provide an alternative binary name'], # 'test_name': ['provide an alternative test name'], # 'cflags': ['additional cflags to compile test', ...], +# 'cc_feat': 'feature name, must be present in cc_feat_cflags', # 'qemu_args': ['qemu command line flags', ...], # 'expected_output': 'file_to_compare_output', # 'gdb_test': ['gdb test args'],
@@ -74,10 +79,11 @@ foreach target, plan: tcg_tests # choose how to deal with it. built_tests = {} added_tests = {} + cc_has_feat = {} # return a clear error if user misspell a target entry foreach key, _ : plan - allowed = ['cc', 'folder', 'gdb_arch', 'qemu', 'tests'] + allowed = ['cc', 'cc_feat_cflags', 'folder', 'gdb_arch', 'qemu', 'tests'] if key not in allowed error('unknown tcg test plan entry \'' + key + '\' for target ' + target + ' (possible: [' + ', '.join(allowed) + '])')
@@ -88,13 +94,17 @@ foreach target, plan: tcg_tests folder = plan['folder'] gdb_arch = plan['gdb_arch'] qemu = plan['qemu'] + cc_feat_cflags = {} + if 'cc_feat_cflags' in plan + cc_feat_cflags = plan['cc_feat_cflags'] + endif tests = plan['tests'] foreach t : tests foreach src, setup: t # return a clear error if user misspell a setup entry foreach key, _ : setup - allowed = ['exe_name', 'env_var', 'expected_output', 'cflags', + allowed = ['exe_name', 'env_var', 'expected_output', 'cc_feat', 'cflags', 'gdb_test', 'plugin_test', 'qemu_args', 'test_name', 'wrapper'] if key not in allowed
@@ -155,15 +165,36 @@ foreach target, plan: tcg_tests 'specify a different \'test_name\'') endif + if 'cflags' in setup or 'cc_feat' in setup + if exe_name in built_tests + error('test ' + exe_name + + ' was already built with cflags or cc_feat:' + + ' remove cflags, cc_feat, or set \'exe_name\'' + + ' (if cflags are different)') + endif + endif + cflags = [] if 'cflags' in setup - if exe_name in built_tests - error('test ' + exe_name + ' was already built with cflags: ' + - 'remove cflags or set \'exe_name\' (if cflags are different)') - endif cflags = setup['cflags'] endif + if 'cc_feat' in setup + cc_feat = setup['cc_feat'] + if cc_feat not in cc_has_feat + cmd = run_command([cc, cc_check_args, cc_feat_cflags[cc_feat]], + check: false) + avail = cmd.returncode() == 0 + cc_has_feat += {cc_feat: avail} + endif + + if not cc_has_feat[cc_feat] + skip_test = 'compiler feature ' + cc_feat + ' not supported' + built_tests += {exe_name: exe_name} + endif + cflags += cc_feat_cflags[cc_feat] + endif + # build executable if needed if exe_name not in built_tests exe = custom_target(exe_name,
Signature · 1 line
2.43.0
PATCH v8 23/105 tests/tcg/meson.build: introduce gdb_feat and gdb_feat_version
In reply to Pierrick BouvierSimilar to cc features, we declare the same for gdb. With both available, we can now declare all tests inconditionally.
--- tests/tcg/meson.build | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-)
tests/tcg/meson.build +26 -3
@@ -26,6 +26,10 @@ tcg_tests = {} # }, # 'folder': 'folder_for_test_src_files', # 'gdb_arch': 'gdb architecture requirement', +# 'gdb_feat_version': { +# 'name': ['minimal gdb version supporting feature'], +# ... +# }, # 'qemu': emulators['qemu-...'], # 'tests': [ # {
@@ -37,6 +41,7 @@ tcg_tests = {} # 'qemu_args': ['qemu command line flags', ...], # 'expected_output': 'file_to_compare_output', # 'gdb_test': ['gdb test args'], +# 'gdb_feat': ['feature name, must be present in gdb_feat_version'], # 'env_var': ['VAR=value', ...], # 'wrapper': [program_to_launch_test, 'args'...], # 'plugin_test': {
@@ -83,7 +88,8 @@ foreach target, plan: tcg_tests # return a clear error if user misspell a target entry foreach key, _ : plan - allowed = ['cc', 'cc_feat_cflags', 'folder', 'gdb_arch', 'qemu', 'tests'] + allowed = ['cc', 'cc_feat_cflags', 'folder', 'gdb_arch', 'gdb_feat_version', + 'qemu', 'tests'] if key not in allowed error('unknown tcg test plan entry \'' + key + '\' for target ' + target + ' (possible: [' + ', '.join(allowed) + '])')
@@ -98,6 +104,11 @@ foreach target, plan: tcg_tests if 'cc_feat_cflags' in plan cc_feat_cflags = plan['cc_feat_cflags'] endif + gdb_feat_version = {} + if 'gdb_feat_version' in plan + gdb_feat_version = plan['gdb_feat_version'] + endif + tests = plan['tests'] foreach t : tests
@@ -105,8 +116,8 @@ foreach target, plan: tcg_tests # return a clear error if user misspell a setup entry foreach key, _ : setup allowed = ['exe_name', 'env_var', 'expected_output', 'cc_feat', 'cflags', - 'gdb_test', 'plugin_test', 'qemu_args', 'test_name', - 'wrapper'] + 'gdb_feat', 'gdb_test', 'plugin_test', 'qemu_args', + 'test_name', 'wrapper'] if key not in allowed error('unknown tcg setup entry \'' + key + '\' for test ' + src + ' (possible: [' + ', '.join(allowed) + '])')
@@ -261,6 +272,18 @@ foreach target, plan: tcg_tests cmd = [setup['env_var'], cmd] endif + if 'gdb_feat' in setup + if 'gdb_test' not in setup + error('test ' + test_name + ' is not a gdb test, but it requires ' + + 'a gdb feature') + endif + gdb_feat = setup['gdb_feat'] + + if not gdb_version.version_compare('>=' + gdb_feat_version[gdb_feat]) + skip_test = 'gdb feature ' + gdb_feat + ' not supported' + endif + endif + if skip_test != '' # still declare test, but skip it and print reason cmd = ['sh', '-c', 'echo "' + skip_test + '" && exit 77']
Signature · 1 line
2.43.0
PATCH v8 24/105 tests/tcg/meson.build: move gdb_arch support check
In reply to Pierrick BouvierThis allows to report the correct skip reason instead of saying gdb does not support a specific feature for some tests.
--- tests/tcg/meson.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
tests/tcg/meson.build +4 -4
@@ -138,10 +138,6 @@ foreach target, plan: tcg_tests # if set, we'll skip test and print the reason skip_test = '' - if 'gdb_test' in setup and gdb_arch not in gdb_arch_supported - continue - endif - if 'plugin_test' in setup and not get_option('plugins') # do not use the skip_test logic, and simply ignore the test continue
@@ -284,6 +280,10 @@ foreach target, plan: tcg_tests endif endif + if 'gdb_test' in setup and gdb_arch not in gdb_arch_supported + skip_test = 'gdb not available for ' + gdb_arch + endif + if skip_test != '' # still declare test, but skip it and print reason cmd = ['sh', '-c', 'echo "' + skip_test + '" && exit 77']
Signature · 1 line
2.43.0
PATCH v8 25/105 tests/tcg/meson.build: let test infrastructure detect compiler
In reply to Pierrick BouvierNow we moved back flags to tests/tcg/meson.build, we don't need to expose cc anymore in target files.
This will allow us to easily introduce cross containers. Also, we can reuse the skip_test logic to gracefully report why tests don't run.
--- tests/tcg/meson.build | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-)
tests/tcg/meson.build +14 -5
@@ -19,7 +19,7 @@ tcg_tests = {} # # { # 'name_of_target': { -# 'cc': cross_compiler, +# 'cc': 'cross_compiler', # 'cc_feat_cflags': { # 'name': ['feature cflags'], # ...
@@ -96,7 +96,7 @@ foreach target, plan: tcg_tests endif endforeach - cc = plan['cc'] + cc = find_program(plan['cc'], required : false) folder = plan['folder'] gdb_arch = plan['gdb_arch'] qemu = plan['qemu']
@@ -189,9 +189,13 @@ foreach target, plan: tcg_tests if 'cc_feat' in setup cc_feat = setup['cc_feat'] if cc_feat not in cc_has_feat - cmd = run_command([cc, cc_check_args, cc_feat_cflags[cc_feat]], - check: false) - avail = cmd.returncode() == 0 + avail = false + if cc.found() + cmd = run_command([cc, '-xc', '/dev/null', '-o', '/dev/null', '-c', + cc_feat_cflags[cc_feat]], + check: false) + avail = cmd.returncode() == 0 + endif cc_has_feat += {cc_feat: avail} endif
@@ -202,6 +206,11 @@ foreach target, plan: tcg_tests cflags += cc_feat_cflags[cc_feat] endif + if not cc.found() + skip_test = 'compiler ' + plan['cc'] + ' not available' + built_tests += {exe_name: exe_name} + endif + # build executable if needed if exe_name not in built_tests exe = custom_target(exe_name,
Signature · 1 line
2.43.0
PATCH v8 26/105 tests/docker/docker.py: return error code if probe fails
In reply to Pierrick BouvierWe are not necessarily interested to know which engine is available. However, parsing "no" as an answer is not intuitive, compared to read an exit code.
Thus, exit with 1 if no engine is available.
--- tests/docker/docker.py | 1 + 1 file changed, 1 insertion(+)
tests/docker/docker.py +1 -0
@@ -604,6 +604,7 @@ def run(self, args, argv): print(" ".join(docker._command)) except Exception: print("no") + return 1 return
Signature · 1 line
2.43.0
PATCH v8 27/105 tests/docker/docker.py: remove "Image is up to date" info
In reply to Pierrick BouvierIt's useful to print build output by default, but not useful to mention it succeeded. Reduce verbosity of tcg tests build.
--- tests/docker/docker.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
tests/docker/docker.py +1 -2
@@ -429,8 +429,7 @@ def run(self, args, argv): dkr = Docker(args.command) if "--no-cache" not in argv and \ dkr.image_matches_dockerfile(tag, dockerfile): - if not args.quiet: - print("Image is up to date.") + pass else: # Create a docker context directory for the build docker_dir = tempfile.mkdtemp(prefix="docker_build")
Signature · 1 line
2.43.0
PATCH v8 28/105 tests/tcg/meson.build: introduce cc_dockerfile and cc_docker_host_arch
In reply to Pierrick BouvierWe allow target to declare a dockerfile containing required cc. We reuse tests/docker/docker.py, and correctly set dependencies for tests on original dockerfile.
We specify list of hosts for which image can be built and contains required cc, using cc_docker_host_arch.
--- tests/tcg/meson.build | 64 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 60 insertions(+), 4 deletions(-)
tests/tcg/meson.build +60 -4
@@ -1,5 +1,6 @@ env = find_program('env') +docker_wrapper = find_program('../docker/docker.py') gdb_progs = ['gdb-multiarch', 'gdb'] if config_host.has_key('GDB') gdb_progs = [config_host['GDB'], gdb_progs]
@@ -20,6 +21,8 @@ tcg_tests = {} # { # 'name_of_target': { # 'cc': 'cross_compiler', +# 'cc_dockerfile': 'name_of_dockerfile', +# 'cc_docker_host_arch': ['host_arch_supported (meson cpu)', ...], # 'cc_feat_cflags': { # 'name': ['feature cflags'], # ...
@@ -74,10 +77,17 @@ if gdb.found() endforeach endif +docker_probe = run_command(docker_wrapper, 'probe', check: false) +docker_supported = docker_probe.returncode() == 0 +if docker_supported + docker_wrapper = [docker_wrapper, '--command', docker_probe.stdout().strip()] +endif + # plugins come first, as we need to build the list test_plugins = {} subdir('plugins') +image_targets = {} # Finally, we can create all test executables and test targets foreach target, plan: tcg_tests # Detect duplicated executables/tests, and report an error to force user to
@@ -88,8 +98,8 @@ foreach target, plan: tcg_tests # return a clear error if user misspell a target entry foreach key, _ : plan - allowed = ['cc', 'cc_feat_cflags', 'folder', 'gdb_arch', 'gdb_feat_version', - 'qemu', 'tests'] + allowed = ['cc', 'cc_dockerfile', 'cc_docker_host_arch', 'cc_feat_cflags', + 'folder', 'gdb_arch', 'gdb_feat_version', 'qemu', 'tests'] if key not in allowed error('unknown tcg test plan entry \'' + key + '\' for target ' + target + ' (possible: [' + ', '.join(allowed) + '])')
@@ -97,6 +107,46 @@ foreach target, plan: tcg_tests endforeach cc = find_program(plan['cc'], required : false) + cc_from_system = cc.found() + has_cc = cc.found() + build_test_depends = [] + build_test_depend_files = [] + + if 'cc_dockerfile' in plan + cc_dockerfile = plan['cc_dockerfile'] + cc_docker_host_arch = plan['cc_docker_host_arch'] + allowed = ['aarch64', 'x86_64'] + foreach arch: cc_docker_host_arch + if arch not in allowed + error('incorrect docker arch ' + arch + ' for target ' + + target + ' (possible: [' + ', '.join(allowed) + '])') + endif + endforeach + docker_host_arch_supported = host_machine.cpu_family() in cc_docker_host_arch + dockerfile = files('..'/'docker'/'dockerfiles'/cc_dockerfile + '.docker') + image_name = 'image-' + cc_dockerfile + has_docker = docker_host_arch_supported and docker_supported + if cc_dockerfile not in image_targets and has_docker + cmd = [docker_wrapper, 'build', '-f', dockerfile, '-t', cc_dockerfile] + t = custom_target(image_name, command: cmd, + build_by_default: false, + output: 'no_output_' + image_name) + image_targets += {cc_dockerfile: t} + endif + + if not has_cc and has_docker + build_test_depends = image_targets[cc_dockerfile] + build_test_depend_files = dockerfile + mount = meson.project_source_root() + mount = mount + ':' + mount + here = meson.project_build_root() + cc = [docker_wrapper, 'run', '--run-as-current-user', + '-w', here, '-v', mount, + cc_dockerfile, plan['cc']] + has_cc = true + endif + endif + folder = plan['folder'] gdb_arch = plan['gdb_arch'] qemu = plan['qemu']
@@ -190,11 +240,15 @@ foreach target, plan: tcg_tests cc_feat = setup['cc_feat'] if cc_feat not in cc_has_feat avail = false - if cc.found() + if cc_from_system + # check flag for host cc cmd = run_command([cc, '-xc', '/dev/null', '-o', '/dev/null', '-c', cc_feat_cflags[cc_feat]], check: false) avail = cmd.returncode() == 0 + elif has_cc + # docker cc always have feature + avail = true endif cc_has_feat += {cc_feat: avail} endif
@@ -206,7 +260,7 @@ foreach target, plan: tcg_tests cflags += cc_feat_cflags[cc_feat] endif - if not cc.found() + if not has_cc skip_test = 'compiler ' + plan['cc'] + ' not available' built_tests += {exe_name: exe_name} endif
@@ -223,6 +277,8 @@ foreach target, plan: tcg_tests cflags], depfile: exe_name + '.d', output: exe_name + '.test', + depends: build_test_depends, + depend_files: build_test_depend_files, build_by_default: false) built_tests += {exe_name: exe} endif
Signature · 1 line
2.43.0
PATCH v8 29/105 tests/tcg/meson.build: check host cross cc is working
In reply to Pierrick BouvierOn Fedora, cross compilers are provided without runtime or header files. Thus, even if program is present, it can't be used to compile files directly. Check this, and fallback on docker if not working.
--- tests/tcg/meson.build | 12 ++++++++++++ tests/tcg/test_cc.c | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 tests/tcg/test_cc.c
tests/tcg/meson.build +12 -0
@@ -109,6 +109,18 @@ foreach target, plan: tcg_tests cc = find_program(plan['cc'], required : false) cc_from_system = cc.found() has_cc = cc.found() + if has_cc + check_flags = ['-static'] + if target.endswith('softmmu') + check_flags = ['-nostdlib', '-ffreestanding', '-r'] + endif + + cmd = run_command([cc, files('test_cc.c'), check_flags, '-o', '/dev/null'], + check: false) + has_cc = cmd.returncode() == 0 + cc_from_system = has_cc + endif + build_test_depends = [] build_test_depend_files = []
tests/tcg/test_cc.c new file +9 -0
@@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +/* Include a standard header to make sure cross compiler provides them */ +#include <stdint.h> + +int main (void ) +{ +return 0 ; +}
Signature · 1 line
2.43.0
PATCH v8 30/105 tests/tcg/meson.build: introduce depends
In reply to Pierrick BouvierThis can be used to declare dependencies for a given test executable. Useful when generating headers (like x86_64 does).
--- tests/tcg/meson.build | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)
tests/tcg/meson.build +11 -5
@@ -40,6 +40,7 @@ tcg_tests = {} # 'exe_name': ['provide an alternative binary name'], # 'test_name': ['provide an alternative test name'], # 'cflags': ['additional cflags to compile test', ...], +# 'depends': [meson_dependency, ...], # 'cc_feat': 'feature name, must be present in cc_feat_cflags', # 'qemu_args': ['qemu command line flags', ...], # 'expected_output': 'file_to_compare_output',
@@ -178,7 +179,7 @@ foreach target, plan: tcg_tests # return a clear error if user misspell a setup entry foreach key, _ : setup allowed = ['exe_name', 'env_var', 'expected_output', 'cc_feat', 'cflags', - 'gdb_feat', 'gdb_test', 'plugin_test', 'qemu_args', + 'depends', 'gdb_feat', 'gdb_test', 'plugin_test', 'qemu_args', 'test_name', 'wrapper'] if key not in allowed error('unknown tcg setup entry \'' + key + '\' for test ' + src +
@@ -277,6 +278,11 @@ foreach target, plan: tcg_tests built_tests += {exe_name: exe_name} endif + exe_depends = build_test_depends + if 'depends' in setup + exe_depends += setup['depends'] + endif + # build executable if needed if exe_name not in built_tests exe = custom_target(exe_name,
@@ -289,13 +295,13 @@ foreach target, plan: tcg_tests cflags], depfile: exe_name + '.d', output: exe_name + '.test', - depends: build_test_depends, + depends: exe_depends, depend_files: build_test_depend_files, build_by_default: false) built_tests += {exe_name: exe} endif - depends = [] + test_depends = [] qemu_args = [] if 'qemu_args' in setup qemu_args = setup['qemu_args']
@@ -312,7 +318,7 @@ foreach target, plan: tcg_tests plugin_args = ','.join(plugin_args) # since we turn plugin into a string, add dependency explicitly - depends += plugin + test_depends += plugin qemu_args = ['-plugin', plugin.full_path() + plugin_args, qemu_args] endif
@@ -367,7 +373,7 @@ foreach target, plan: tcg_tests endif test(test_name, env, args: cmd, - depends: depends, + depends: test_depends, timeout: 120, suite: ['tcg', 'tcg-' + target]) added_tests += {test_name: true}
Signature · 1 line
2.43.0
PATCH v8 31/105 tests/tcg/meson.build: use full path for QEMU binary
In reply to Pierrick BouvierOn MacOS, meson does not find qemu binary. Use full path to fix it. Also, add qemu binary as dependency for the test, to ensure it's built automatically.
--- tests/tcg/meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
tests/tcg/meson.build +3 -2
@@ -323,12 +323,13 @@ foreach target, plan: tcg_tests endif exe = built_tests[exe_name] - cmd = [qemu, qemu_args, exe] + test_depends += qemu + cmd = [qemu.full_path(), qemu_args, exe] if 'gdb_test' in setup cmd = [prog_gdb_test, '--gdb', gdb, - '--qemu', qemu, + '--qemu', qemu.full_path(), '--qargs', ' '.join(qemu_args), '--bin', exe, setup['gdb_test'],
Signature · 1 line
2.43.0
PATCH v8 32/105 tests/tcg/meson.build: add top-level 'tcg-tests' target
In reply to Pierrick BouvierAdd a target to rebuild all tcg-tests at once.
--- tests/tcg/meson.build | 7 +++++++ 1 file changed, 7 insertions(+)
tests/tcg/meson.build +7 -0
@@ -89,6 +89,7 @@ test_plugins = {} subdir('plugins') image_targets = {} +exe_targets = [] # Finally, we can create all test executables and test targets foreach target, plan: tcg_tests # Detect duplicated executables/tests, and report an error to force user to
@@ -298,6 +299,7 @@ foreach target, plan: tcg_tests depends: exe_depends, depend_files: build_test_depend_files, build_by_default: false) + exe_targets += exe built_tests += {exe_name: exe} endif
@@ -381,3 +383,8 @@ foreach target, plan: tcg_tests endforeach endforeach endforeach + +if exe_targets.length() > 0 + # finally create a top level target to rebuild all tests + alias_target('tcg-tests', exe_targets) +endif
Signature · 1 line
2.43.0
PATCH v8 33/105 tests/tcg/Makefile: skip user/system tests if target Makefile is not present
In reply to Pierrick BouvierIn the next commits, we'll port each architecture from Makefile to meson, and it's easier to review those changes if we remove Makefiles step by step.
--- tests/tcg/Makefile.target | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
tests/tcg/Makefile.target +7 -1
@@ -105,7 +105,9 @@ ifeq ($(filter %-softmmu, $(TARGET)),) # $(TARGET_NAME)/Makefile.target to include the common parent # architecture in its VPATH. However some targets are so minimal we # can't even build the multiarch tests. -ifneq ($(filter $(TARGET_NAME),aarch64_be),) +ifeq ($(wildcard $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.target),) +# skip user tests if Makefile.target is not present +else ifneq ($(filter $(TARGET_NAME),aarch64_be),) -include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.target else -include $(SRC_PATH)/tests/tcg/multiarch/Makefile.target
@@ -135,7 +137,11 @@ ifneq ($(filter $(TARGET_NAME),$(MULTIARCH_SOFTMMU_TARGETS)),) -include $(SRC_PATH)/tests/tcg/minilib/Makefile.target -include $(SRC_PATH)/tests/tcg/multiarch/system/Makefile.softmmu-target endif +ifeq ($(wildcard $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.softmmu-target),) +# skip system tests if Makefile.target is not present +else -include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.softmmu-target +endif endif
Signature · 1 line
2.43.0
PATCH v8 34/105 tests/tcg/multiarch/gdbstub/prot-none.py: deactivate on gitlab CI
In reply to Pierrick BouvierThis test was disabled on Gitlab CI.
Tracked in https://gitlab.com/qemu-project/qemu/-/issues/3329.
--- tests/tcg/multiarch/gdbstub/prot-none.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
tests/tcg/multiarch/gdbstub/prot-none.py +10 -1
@@ -5,6 +5,7 @@ SPDX-License-Identifier: GPL-2.0-or-later """ import ctypes +import os from test_gdbstub import gdb_exit, main, report
@@ -21,8 +22,16 @@ def probe_proc_self_mem(): def run_test(): """Run through the tests one by one""" if not probe_proc_self_mem(): + print("----------------------------------") print("SKIP: /proc/self/mem is not usable") - gdb_exit(0) + print("----------------------------------") + gdb_exit(77) + if "GITLAB_CI" in os.environ: + print("----------------------------------") + print("SKIP: fail on gitlab - " + + "https://gitlab.com/qemu-project/qemu/-/issues/3329") + print("----------------------------------") + gdb_exit(77) gdb.Breakpoint("break_here") gdb.execute("continue") val = gdb.parse_and_eval("*(char[2] *)q").string()
Signature · 1 line
2.43.0
PATCH v8 35/105 tests/tcg/multiarch/gdbstub/prot-none.py: detect if /proc/self/mem can be used to access PROT_NONE pages
In reply to Pierrick BouvierRecently (July 2026), this issue became reproducible on debian stable with kernel (7.1.3) from backports. I suspect it's a default hardening of kernel related to recent CVEs.
By tracking error reported, we can see that /proc/self/mem pread from cpu_memory_rw_debug in accel/tcg/user-exec.c returns an error (Input/Output error).
Detect this situation directly from our gdb python script, by trying the same thing from current process. If this operation fails, we can gracefully skip the test.
--- tests/tcg/multiarch/gdbstub/prot-none.py | 37 ++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 3 deletions(-)
tests/tcg/multiarch/gdbstub/prot-none.py +34 -3
@@ -5,6 +5,8 @@ SPDX-License-Identifier: GPL-2.0-or-later """ import ctypes +import ctypes.util +import mmap import os from test_gdbstub import gdb_exit, main, report
@@ -18,6 +20,36 @@ def probe_proc_self_mem(): except OSError: return False +def probe_proc_self_mem_access_prot_none(): + libc = ctypes.CDLL(ctypes.util.find_library("c"), use_errno=True) + libc.mmap.restype = ctypes.c_void_p + libc.mmap.argtypes = [ctypes.c_void_p, ctypes.c_size_t, ctypes.c_int, + ctypes.c_int, ctypes.c_int, ctypes.c_long] + size = os.sysconf("SC_PAGESIZE") + # mmap a PROT_NONE page + PROT_NONE = 0 + addr = libc.mmap(None, size, PROT_NONE, + mmap.MAP_PRIVATE | mmap.MAP_ANONYMOUS, -1, 0) + assert addr != ctypes.c_void_p(-1).value + fd = os.open("/proc/self/mem", os.O_RDWR) + try: + # read it through /proc/self/mem + # this is the fallback in cpu_memory_rw_debug + data = os.pread(fd, size, addr) + except Exception as e: + print("/proc/self/mem pread error: " + str(e)) + return False + + try: + # write it through /proc/self/mem + # this is the fallback in cpu_memory_rw_debug + os.pwrite(fd, data, addr) + except Exception as e: + print("/proc/self/mem pwrite error: " + str(e)) + return False + + return True + def run_test(): """Run through the tests one by one"""
@@ -26,10 +58,9 @@ def run_test(): print("SKIP: /proc/self/mem is not usable") print("----------------------------------") gdb_exit(77) - if "GITLAB_CI" in os.environ: + if not probe_proc_self_mem_access_prot_none(): print("----------------------------------") - print("SKIP: fail on gitlab - " + - "https://gitlab.com/qemu-project/qemu/-/issues/3329") + print("SKIP: /proc/self/mem can't be used to access PROT_NONE page") print("----------------------------------") gdb_exit(77) gdb.Breakpoint("break_here")
Signature · 1 line
2.43.0
PATCH v8 36/105 tests/tcg/multiarch: declare user tests
In reply to Pierrick BouvierAt this point, those tests are just declared and not used yet.
--- tests/tcg/meson.build | 7 ++ tests/tcg/multiarch/meson.build | 147 ++++++++++++++++++++++++++++++++ tests/tcg/multiarch/sha1.ref | 1 + 3 files changed, 155 insertions(+) create mode 100644 tests/tcg/multiarch/meson.build create mode 100644 tests/tcg/multiarch/sha1.ref
tests/tcg/meson.build +7 -0
@@ -87,11 +87,18 @@ endif # plugins come first, as we need to build the list test_plugins = {} subdir('plugins') +# multiarch comes second, so it can be referenced by other arch after +subdir('multiarch') image_targets = {} exe_targets = [] # Finally, we can create all test executables and test targets foreach target, plan: tcg_tests + if target.startswith('multiarch-') + # those tests are included by architecture files if needed + continue + endif + # Detect duplicated executables/tests, and report an error to force user to # choose how to deal with it. built_tests = {}
tests/tcg/multiarch/meson.build new file +147 -0
147 lines not on this page · raw message
tests/tcg/multiarch/sha1.ref new file +1 -0
@@ -0,0 +1 @@ +SHA1=15dd99a1991e0b3826fede3deffc1feba42278e6
Signature · 1 line
2.43.0
Re: [PATCH v8 036/105] tests/tcg/multiarch: declare user tests
Quoted 5 lines · Pierrick Bouvier
At this point, those tests are just declared and not used yet.
Tested-by Alex Bennée <[email protected]>Tested-by Aniket Sahu <[email protected]>Signed-off-by Pierrick Bouvier <[email protected]>
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
PATCH v8 37/105 tests/tcg/multiarch: declare system tests
In reply to Pierrick BouvierWe now declare all multiarch system tests.
--- tests/tcg/multiarch/meson.build | 2 + tests/tcg/multiarch/system/meson.build | 53 ++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 tests/tcg/multiarch/system/meson.build
tests/tcg/multiarch/meson.build +2 -0
@@ -1,3 +1,5 @@ +subdir('system') + tests = [] float_helpers = files('libs/float_helpers.c')[0]
tests/tcg/multiarch/system/meson.build new file +53 -0
53 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v8 38/105 tests/tcg/meson.build: add generic plugin tests
In reply to Pierrick BouvierWe add one test for each plugin by picking a different user and system multiarch test.
--- tests/tcg/meson.build | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+)
tests/tcg/meson.build +45 -0
@@ -90,6 +90,51 @@ subdir('plugins') # multiarch comes second, so it can be referenced by other arch after subdir('multiarch') +# Generic Plugin tests +# add a single test for each plugin in user/system multiarch set +plugin_tests_exclude = ['patch'] +foreach target: ['multiarch-linux-user', 'multiarch-softmmu'] + plugin_tests = [] + tests = tcg_tests[target]['tests'] + normal_tests = [] + + # filter tests that are not plugin or gdb tests + foreach t: tests + foreach src, setup: t + if 'plugin_test' in setup or 'gdb_test' in setup + continue + endif + normal_tests += {src: setup} + endforeach + endforeach + + idx = 0 + foreach plugin_name, _: test_plugins + if plugin_name in plugin_tests_exclude + continue + endif + + # pick one different test for each plugin + foreach src, setup: normal_tests[idx % normal_tests.length()] + # copy existing setup and remove existing cflags + new_setup = {} + foreach key, val: setup + if key == 'cflags' + continue + endif + new_setup += {key: val} + endforeach + new_setup += {'plugin_test': {'plugin': plugin_name}} + plugin_tests += {src: new_setup} + endforeach + + idx += 1 + endforeach + + # replace list of tests with old and new ones + tcg_tests += {target: {'tests': tests + plugin_tests}} +endforeach + image_targets = {} exe_targets = [] # Finally, we can create all test executables and test targets
Signature · 1 line
2.43.0
PATCH v8 39/105 tests/tcg/arm/fcvt.c: use raw opcode for FPRCVT
In reply to Pierrick Bouvierfcvtzs d0,s31 requires fprcvt support in compiler, which is only available from gcc-16. Since our debian-all-test-cross container has gcc-aarch64-14, this test will never run in CI.
Replace the concerned instruction with raw opcode, obtained from:
$ echo "fcvtzs d0, s31" | llvm-mc-22 -triple=aarch64 -mattr=fprcvt --show-encoding fcvtzs d0, s31 // encoding: [0xe0,0x03,0x36,0x9e]
--- tests/tcg/arm/fcvt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
tests/tcg/arm/fcvt.c +4 -2
@@ -173,9 +173,11 @@ static void convert_single_to_integer(void) output = input;#else #ifdef FPRCVT - asm("fcvtzs d0, %s1\r\n" + asm("fmov s31, %s1\n\t" +/* "fcvtzs d0, s31\n\t" */ +".byte 0xe0,0x03,0x36,0x9e\n\t" "fmov %0, d0" : -"=r" (output) :"w" (input)); +"=r" (output) :"w" (input) :"s31" ,"d0" );#else asm("fcvtzs %0, %s1" :"=r" (output) :"w" (input));#endif
Signature · 1 line
2.43.0
Re: [PATCH v8 039/105] tests/tcg/arm/fcvt.c: use raw opcode for FPRCVT
Quoted 10 lines · Pierrick Bouvier
fcvtzs d0,s31 requires fprcvt support in compiler, which is only available from gcc-16. Since our debian-all-test-cross container has gcc-aarch64-14, this test will never run in CI.
Replace the concerned instruction with raw opcode, obtained from:
$ echo "fcvtzs d0, s31" | llvm-mc-22 -triple=aarch64 -mattr=fprcvt --show-encoding fcvtzs d0, s31 // encoding: [0xe0,0x03,0x36,0x9e]Tested-by Aniket Sahu <[email protected]>Signed-off-by Pierrick Bouvier <[email protected]>
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
PATCH v8 40/105 tests/tcg/aarch64: user tests
In reply to Pierrick Bouvier--- tests/tcg/aarch64/Makefile.target | 211 ------------------------------ tests/tcg/aarch64/meson.build | 208 +++++++++++++++++++++++++++++ tests/tcg/meson.build | 3 + 3 files changed, 211 insertions(+), 211 deletions(-) delete mode 100644 tests/tcg/aarch64/Makefile.target create mode 100644 tests/tcg/aarch64/meson.build
tests/tcg/aarch64/Makefile.target deleted +0 -211
@@ -1,211 +0,0 @@ -# -*- Mode: makefile -*- -# -# AArch64 specific tweaks - -ARM_SRC=$(SRC_PATH)/tests/tcg/arm -VPATH += $(ARM_SRC) - -AARCH64_SRC=$(SRC_PATH)/tests/tcg/aarch64 -VPATH += $(AARCH64_SRC) - -# Base architecture tests -AARCH64_TESTS=fcvt pcalign-a64 lse2-fault -AARCH64_TESTS += test-2248 test-2150 - -fcvt: LDFLAGS+=-lm - -run-fcvt: fcvt - $(call run-test,$<,$(QEMU) $<) - $(call diff-out,$<,$(AARCH64_SRC)/fcvt.ref) - -config-cc.mak: Makefile - $(quiet-@)( \ - fnia=`$(call cc-test,-fno-integrated-as) && echo -fno-integrated-as`; \ - $(call cc-option,-march=armv8.1-a+sve, CROSS_CC_HAS_SVE); \ - $(call cc-option,-march=armv8.1-a+sve2, CROSS_CC_HAS_SVE2); \ - $(call cc-option,-march=armv8.2-a, CROSS_CC_HAS_ARMV8_2); \ - $(call cc-option,-march=armv8.3-a, CROSS_CC_HAS_ARMV8_3); \ - $(call cc-option,-march=armv8.5-a, CROSS_CC_HAS_ARMV8_5); \ - $(call cc-option,-mbranch-protection=standard, CROSS_CC_HAS_ARMV8_BTI); \ - $(call cc-option,-march=armv8.5-a+memtag, CROSS_CC_HAS_ARMV8_MTE); \ - $(call cc-option,-Wa$(COMMA)-march=armv9-a+sme $$fnia, CROSS_AS_HAS_ARMV9_SME); \ - $(call cc-option,-march=armv9-a+fprcvt, CROSS_CC_HAS_ARMV9_FPRCVT)) 3> config-cc.mak --include config-cc.mak - -ifneq ($(CROSS_CC_HAS_ARMV9_FPRCVT),) -AARCH64_TESTS += fcvt-fprcvt -fcvt-fprcvt: LDFLAGS += -lm -fcvt-fprcvt: CFLAGS += $(CROSS_CC_HAS_ARMV9_FPRCVT) -DFPRCVT -fcvt-fprcvt: fcvt.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) -run-fcvt-fprcvt: fcvt-fprcvt - $(call run-test,$<,$(QEMU) $<) - $(call diff-out,$<,$(AARCH64_SRC)/fcvt.ref) -endif - -ifneq ($(CROSS_CC_HAS_ARMV8_2),) -AARCH64_TESTS += dcpop -dcpop: CFLAGS += $(CROSS_CC_HAS_ARMV8_2) -endif -ifneq ($(CROSS_CC_HAS_ARMV8_5),) -AARCH64_TESTS += dcpodp -dcpodp: CFLAGS += $(CROSS_CC_HAS_ARMV8_5) -endif - -# Pauth Tests -ifneq ($(CROSS_CC_HAS_ARMV8_3),) -AARCH64_TESTS += pauth-1 pauth-2 pauth-4 pauth-5 test-2375 -pauth-%: CFLAGS += $(CROSS_CC_HAS_ARMV8_3) -test-2375: CFLAGS += -march=armv8.3-a -run-pauth-1: QEMU_OPTS += -cpu max -run-pauth-2: QEMU_OPTS += -cpu max -# Choose a cpu with FEAT_Pauth but without FEAT_FPAC for pauth-[45]. -run-pauth-4: QEMU_OPTS += -cpu neoverse-v1 -run-pauth-5: QEMU_OPTS += -cpu neoverse-v1 -endif - -# BTI Tests -# bti-1 tests the elf notes, so we require special compiler support. -ifneq ($(CROSS_CC_HAS_ARMV8_BTI),) -AARCH64_TESTS += bti-1 bti-3 -bti-1 bti-3: CFLAGS += -fno-stack-protector $(CROSS_CC_HAS_ARMV8_BTI) -bti-1 bti-3: LDFLAGS += -nostdlib -endif -# bti-2 tests PROT_BTI, so no special compiler support required. -AARCH64_TESTS += bti-2 - -# MTE Tests -ifneq ($(CROSS_CC_HAS_ARMV8_MTE),) -AARCH64_TESTS += mte-1 mte-2 mte-3 mte-4 mte-5 mte-6 mte-7 mte-8 mte-9 mte-10 -mte-%: CFLAGS += $(CROSS_CC_HAS_ARMV8_MTE) -endif - -# SME Tests -ifneq ($(CROSS_AS_HAS_ARMV9_SME),) -SME_TESTS = sme-outprod1 sme-smopa-1 sme-smopa-2 sme-fmopa-1 sme-fmopa-2 sme-fmopa-3 -AARCH64_TESTS += $(SME_TESTS) -$(SME_TESTS): CFLAGS += $(CROSS_AS_HAS_ARMV9_SME) -endif - -# GCS Tests -GCS_TESTS += gcsstr gcspushm gcsss -AARCH64_TESTS += $(GCS_TESTS) -$(GCS_TESTS): gcs.h - -# System Registers Tests -AARCH64_TESTS += sysregs - -AARCH64_TESTS += test-aes -test-aes: CFLAGS += -O -march=armv8-a+aes -test-aes: test-aes-main.c.inc - -# Vector SHA1 -# Work around compiler false-positive warning, as we do for the 'sha1' test -sha1-vector: CFLAGS=-O3 -Wno-stringop-overread -sha1-vector: sha1.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) -run-sha1-vector: sha1-vector run-sha1 - $(call run-test, $<, $(QEMU) $(QEMU_OPTS) $<) - $(call diff-out, sha1-vector, sha1.out) - -TESTS += sha1-vector - -# Vector versions of sha512 (-O3 triggers vectorisation) -sha512-vector: CFLAGS=-O3 -sha512-vector: sha512.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) - -TESTS += sha512-vector - -ifneq ($(CROSS_CC_HAS_SVE),) -# SVE ioctl test -AARCH64_TESTS += sve-ioctls -sve-ioctls: CFLAGS += $(CROSS_CC_HAS_SVE) - -sha512-sve: CFLAGS=-O3 -march=armv8.1-a+sve -sha512-sve: sha512.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) - -sve-str: CFLAGS=-O1 -march=armv8.1-a+sve -sve-str: sve-str.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) - -TESTS += sha512-sve sve-str - -ifneq ($(GDB),) -GDB_SCRIPT=$(SRC_PATH)/tests/guest-debug/run-test.py - -run-gdbstub-sysregs: sysregs - $(call run-test, $@, $(GDB_SCRIPT) \ - --gdb $(GDB) \ - --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ - --bin $< --test $(AARCH64_SRC)/gdbstub/test-sve.py, \ - basic gdbstub SVE support) - -run-gdbstub-sve-ioctls: sve-ioctls - $(call run-test, $@, $(GDB_SCRIPT) \ - --gdb $(GDB) \ - --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ - --bin $< --test $(AARCH64_SRC)/gdbstub/test-sve-ioctl.py, \ - basic gdbstub SVE ZLEN support) - -EXTRA_RUNS += run-gdbstub-sysregs run-gdbstub-sve-ioctls - -ifneq ($(CROSS_AS_HAS_ARMV9_SME),) -# SME gdbstub tests - -run-gdbstub-sysregs-sme: sysregs - $(call run-test, $@, $(GDB_SCRIPT) \ - --gdb $(GDB) \ - --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ - --bin $< --test $(AARCH64_SRC)/gdbstub/test-sme.py \ - -- test_sme --gdb_basic_za_test, \ - basic gdbstub SME support) - -ifeq ($(GDB_HAS_SME_TILES),y) -run-gdbstub-sysregs-sme-tile-slice: sysregs - $(call run-test, $@, $(GDB_SCRIPT) \ - --gdb $(GDB) \ - --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ - --bin $< --test $(AARCH64_SRC)/gdbstub/test-sme.py \ - -- test_sme --gdb_tile_slice_test, \ - gdbstub SME ZA tile slice support) -else -run-gdbstub-sysregs-sme-tile-slice: sysregs - $(call skip-test,"gdbstub SME ZA tile slice support", \ - "selected gdb ($(GDB)) does not support SME ZA tile slices") -endif - -run-gdbstub-sysregs-sme2: sysregs - $(call run-test, $@, $(GDB_SCRIPT) \ - --gdb $(GDB) \ - --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ - --bin $< --test $(AARCH64_SRC)/gdbstub/test-sme2.py, \ - gdbstub SME ZA tile slice support) - -EXTRA_RUNS += run-gdbstub-sysregs-sme run-gdbstub-sysregs-sme-tile-slice run-gdbstub-sysregs-sme2 - -endif - -ifeq ($(GDB_HAS_MTE),y) -run-gdbstub-mte: mte-8 - $(call run-test, $@, $(GDB_SCRIPT) \ - --gdb $(GDB) \ - --qemu $(QEMU) --qargs "$(QEMU_OPTS)" \ - --bin $< --test $(AARCH64_SRC)/gdbstub/test-mte.py \ - -- --mode=user, \ - gdbstub MTE support) - -EXTRA_RUNS += run-gdbstub-mte -endif - -endif -endif - -ifneq ($(CROSS_CC_HAS_SVE2),) -SVE2_TESTS = test-826 sve-while-ptr -$(SVE2_TESTS): CFLAGS += $(CROSS_CC_HAS_SVE2) -AARCH64_TESTS += $(SVE2_TESTS) -endif - -TESTS += $(AARCH64_TESTS)
tests/tcg/aarch64/meson.build new file +208 -0
208 lines not on this page · raw message
tests/tcg/meson.build +3 -0
@@ -135,6 +135,9 @@ foreach target: ['multiarch-linux-user', 'multiarch-softmmu'] tcg_tests += {target: {'tests': tests + plugin_tests}} endforeach +# Now let's go through all architectures +subdir('aarch64') + image_targets = {} exe_targets = [] # Finally, we can create all test executables and test targets
Signature · 1 line
2.43.0
PATCH v8 41/105 tests/tcg/aarch64/system/gpc-test.c: remove unused variables
In reply to Pierrick Bouvier--- tests/tcg/aarch64/system/gpc-test.c | 5 ----- 1 file changed, 5 deletions(-)
tests/tcg/aarch64/system/gpc-test.c +0 -5
@@ -28,7 +28,6 @@ const uint32_t gpis_per_64_bits = 16;int main (uint64_t sp) { -uint64_t out;uint64_t pfr0;uint64_t gpt_base;uint64_t rme_status;
@@ -38,10 +37,6 @@ int main(uint64_t sp)uint64_t gpt_table0_addr = (uint64_t ) realms_gpt0;uint64_t gpt_table1_addr = (uint64_t ) realms_gpt1; -/* Mask is FNG1, FNG0, and A2 */ -const uint64_t feature_mask = (1ULL <<18 |1ULL <<17 |1ULL <<16 ); -const uint64_t in = feature_mask; -get_sys_reg ("CurrentEL" , currentel_raw); currentel = (currentel_raw >>2 ) &0x3 ;
Signature · 1 line
2.43.0
PATCH v8 42/105 tests/tcg/aarch64: system tests
In reply to Pierrick Bouvier--- tests/tcg/aarch64/Makefile.softmmu-target | 147 ---------------------- tests/tcg/aarch64/meson.build | 2 + tests/tcg/aarch64/system/meson.build | 109 ++++++++++++++++ 3 files changed, 111 insertions(+), 147 deletions(-) delete mode 100644 tests/tcg/aarch64/Makefile.softmmu-target create mode 100644 tests/tcg/aarch64/system/meson.build
tests/tcg/aarch64/Makefile.softmmu-target deleted +0 -147
@@ -1,147 +0,0 @@ -# -# Aarch64 system tests -# - -AARCH64_SRC=$(SRC_PATH)/tests/tcg/aarch64 -AARCH64_SYSTEM_SRC=$(AARCH64_SRC)/system - -VPATH+=$(AARCH64_SYSTEM_SRC) - -# These objects provide the basic boot code and helper functions for all tests -CRT_OBJS=boot.o - -AARCH64_TEST_C_SRCS=$(wildcard $(AARCH64_SYSTEM_SRC)/*.c) -AARCH64_TEST_S_SRCS=$(AARCH64_SYSTEM_SRC)/mte.S - -AARCH64_C_TESTS = $(patsubst $(AARCH64_SYSTEM_SRC)/%.c, %, $(AARCH64_TEST_C_SRCS)) -AARCH64_S_TESTS = $(patsubst $(AARCH64_SYSTEM_SRC)/%.S, %, $(AARCH64_TEST_S_SRCS)) - -AARCH64_TESTS = $(AARCH64_C_TESTS) -AARCH64_TESTS += $(AARCH64_S_TESTS) - -CRT_PATH=$(AARCH64_SYSTEM_SRC) -LINK_SCRIPT=$(AARCH64_SYSTEM_SRC)/kernel.ld -LDFLAGS=-Wl,-T$(LINK_SCRIPT) -TESTS+=$(AARCH64_TESTS) $(MULTIARCH_TESTS) -EXTRA_RUNS+=$(MULTIARCH_RUNS) -CFLAGS+=-nostdlib -ggdb -O0 $(MINILIB_INC) -LDFLAGS+=-static -nostdlib $(MINILIB_OBJS) -lgcc - -config-cc.mak: Makefile - $(quiet-@)( \ - $(call cc-option,-march=armv8.3-a, CROSS_CC_HAS_ARMV8_3); \ - $(call cc-option,-march=armv8.5-a+memtag, CROSS_CC_HAS_ARMV8_MTE)) 3> config-cc.mak --include config-cc.mak - -# building head blobs -.PRECIOUS: $(CRT_OBJS) - -vector_log_boot.o: $(CRT_PATH)/boot.S - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -DLOGGING_VECTOR_TABLE -x assembler-with-cpp -Wa,--noexecstack -c $< -o $@ - -%.o: $(CRT_PATH)/%.S - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -x assembler-with-cpp -Wa,--noexecstack -c $< -o $@ - -# Build and link the tests -%: %.c $(LINK_SCRIPT) $(CRT_OBJS) $(MINILIB_OBJS) - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) boot.o - -memory: CFLAGS+=-DCHECK_UNALIGNED=1 - -memory-sve: memory.c $(LINK_SCRIPT) $(CRT_OBJS) $(MINILIB_OBJS) - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) boot.o - -memory-sve: CFLAGS+=-DCHECK_UNALIGNED=1 -march=armv8.1-a+sve -O3 - -gpc-test: gpc-test.c $(LINK_SCRIPT) vector_log_boot.o $(MINILIB_OBJS) - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) vector_log_boot.o - -TESTS+=memory-sve gpc-test - -# Running -QEMU_BASE_MACHINE=-M virt -cpu max -display none -QEMU_BASE_ARGS=-semihosting-config enable=on,target=native,chardev=output -QEMU_OPTS+=$(QEMU_BASE_MACHINE) $(QEMU_BASE_ARGS) -kernel - -# console test is manual only -QEMU_SEMIHOST=-serial none -chardev stdio,mux=on,id=stdio0 -semihosting-config enable=on,chardev=stdio0 -mon chardev=stdio0,mode=readline -run-semiconsole: QEMU_OPTS=$(QEMU_BASE_MACHINE) $(QEMU_SEMIHOST) -kernel -run-semiconsole: semiconsole - $(call skip-test, $<, "MANUAL ONLY") - $(if $(V),@printf " %-7s %s %s\n" "TO RUN" $(notdir $(QEMU)) "$(QEMU_OPTS) $<") -run-plugin-semiconsole-with-%: semiconsole - $(call skip-test, $<, "MANUAL ONLY") - -# vtimer test needs EL2 -QEMU_EL2_MACHINE=-machine virt,virtualization=on,gic-version=2 -cpu cortex-a57 -smp 4 -QEMU_EL2_BASE_ARGS=-semihosting-config enable=on,target=native,chardev=output,arg="2" -run-vtimer: QEMU_OPTS=$(QEMU_EL2_MACHINE) $(QEMU_EL2_BASE_ARGS) -kernel - -# gpc tests need EL3 and RME -QEMU_EL3_MACHINE=-machine virt,virtualization=on,secure=on,gic-version=3 -cpu max,x-rme=on -QEMU_EL3_BASE_ARGS=-semihosting-config enable=on,target=native,chardev=output,arg="3" -run-gpc-test: QEMU_OPTS=$(QEMU_EL3_MACHINE) $(QEMU_EL3_BASE_ARGS) -kernel -run-gpc3-test: QEMU_OPTS=$(QEMU_EL3_MACHINE) $(QEMU_EL3_BASE_ARGS) -kernel - -# Simple Record/Replay Test -.PHONY: memory-record -run-memory-record: memory-record memory - $(call run-test, $<, \ - $(QEMU) -monitor none -display none \ - -chardev file$(COMMA)path=$<.out$(COMMA)id=output \ - -icount shift=5$(COMMA)rr=record$(COMMA)rrfile=record.bin \ - $(QEMU_OPTS) memory) - -.PHONY: memory-replay -run-memory-replay: memory-replay run-memory-record - $(call run-test, $<, \ - $(QEMU) -monitor none -display none \ - -chardev file$(COMMA)path=$<.out$(COMMA)id=output \ - -icount shift=5$(COMMA)rr=replay$(COMMA)rrfile=record.bin \ - $(QEMU_OPTS) memory) - -EXTRA_RUNS+=run-memory-replay - -ifneq ($(CROSS_CC_HAS_ARMV8_3),) -pauth-3: CFLAGS += $(CROSS_CC_HAS_ARMV8_3) -# This test explicitly checks the output of the pauth operation so we -# must force the use of the QARMA5 algorithm for it. -run-pauth-3: QEMU_BASE_MACHINE=-M virt -cpu max,pauth-qarma5=on -display none -else -pauth-3: - $(call skip-test, "BUILD of $@", "missing compiler support") -run-pauth-3: - $(call skip-test, "RUN of pauth-3", "not built") -endif - -ifneq ($(CROSS_CC_HAS_ARMV8_MTE),) -QEMU_MTE_ENABLED_MACHINE=-M virt,mte=on -cpu max -display none -QEMU_OPTS_WITH_MTE_ON = $(QEMU_MTE_ENABLED_MACHINE) $(QEMU_BASE_ARGS) -kernel -mte: CFLAGS+=-march=armv8.5-a+memtag -mte: mte.S $(LINK_SCRIPT) $(CRT_OBJS) $(MINILIB_OBJS) - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) boot.o - -run-mte: QEMU_OPTS=$(QEMU_OPTS_WITH_MTE_ON) -run-mte: mte - -ifeq ($(GDB_SUPPORTS_MTE_IN_BAREMETAL),y) -run-gdbstub-mte: QEMU_OPTS=$(QEMU_OPTS_WITH_MTE_ON) -run-gdbstub-mte: mte - $(call run-test, $@, $(GDB_SCRIPT) \ - --output run-gdbstub-mte.out \ - --gdb $(GDB) \ - --qemu $(QEMU) --qargs "-chardev null$(COMMA)id=output $(QEMU_OPTS)" \ - --bin $< --test $(AARCH64_SRC)/gdbstub/test-mte.py -- --mode=system, \ - gdbstub MTE support) - -EXTRA_RUNS += run-gdbstub-mte -else # !GDB_SUPPORTS_MTE_IN_BAREMETAL -run-gdbstub-mte: - $(call skip-test "RUN of gdbstub-mte", "GDB does not support MTE in baremetal!") -endif -else # !CROSS_CC_HAS_ARMV8_MTE -mte: - $(call skip-test, "BUILD of $@", "missing compiler support") -run-mte: - $(call skip-test, "RUN of mte", "not build") -endif
tests/tcg/aarch64/meson.build +2 -0
@@ -21,6 +21,8 @@ gdb_feat_version = { 'mte-baremetal': '16.0', } +subdir('system') + tests = [] # Multi arch tests
tests/tcg/aarch64/system/meson.build new file +109 -0
109 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v8 43/105 tests/tcg/aarch64_be: user tests
In reply to Pierrick Bouvier--- tests/tcg/aarch64_be/Makefile.target | 17 ----------------- tests/tcg/aarch64_be/meson.build | 22 ++++++++++++++++++++++ tests/tcg/meson.build | 1 + 3 files changed, 23 insertions(+), 17 deletions(-) delete mode 100644 tests/tcg/aarch64_be/Makefile.target create mode 100644 tests/tcg/aarch64_be/meson.build
tests/tcg/aarch64_be/Makefile.target deleted +0 -17
@@ -1,17 +0,0 @@ -# -*- Mode: makefile -*- -# -# A super basic AArch64 BE makefile. As we don't have any big-endian -# libc available the best we can do is a basic Hello World. - -AARCH64BE_SRC=$(SRC_PATH)/tests/tcg/aarch64_be -VPATH += $(AARCH64BE_SRC) - -AARCH64BE_TEST_SRCS=$(notdir $(wildcard $(AARCH64BE_SRC)/*.c)) -AARCH64BE_TESTS=$(AARCH64BE_TEST_SRCS:.c=) -#MULTIARCH_TESTS = $(MULTIARCH_SRCS:.c=) - -# We need to specify big-endian cflags -CFLAGS +=-mbig-endian -ffreestanding -LDFLAGS +=-nostdlib - -TESTS += $(AARCH64BE_TESTS)
tests/tcg/aarch64_be/meson.build new file +22 -0
@@ -0,0 +1,22 @@ +tests = [] + +# As we don't have any big-endian libc available, +# the best we can do is a basic Hello World. +tests += { + 'hello.c': {'cflags': ['-mbig-endian', '-ffreestanding', '-nostdlib']}, +} + +if 'qemu-aarch64_be' in emulators + tcg_tests += { + 'aarch64_be-linux-user': { + 'cc': 'aarch64-linux-gnu-gcc', + 'cc_dockerfile': 'debian-all-test-cross', + 'cc_docker_host_arch': ['aarch64', 'x86_64'], + 'cc_feat_cflags': cc_feat_cflags, + 'folder': 'aarch64_be', + 'gdb_arch': 'aarch64_be', + 'qemu': emulators['qemu-aarch64_be'], + 'tests': tests, + } + } +endif
tests/tcg/meson.build +1 -0
@@ -137,6 +137,7 @@ endforeach # Now let's go through all architectures subdir('aarch64') +subdir('aarch64_be') image_targets = {} exe_targets = []
Signature · 1 line
2.43.0
PATCH v8 44/105 tests/tcg/alpha: add float reference files
In reply to Pierrick BouvierMakefiles were skipping the output compare when such files were not available. This results in arch being very inconsistent with some providing all files, some providing no files, and some providing some files. There was even one case of a misnamed file that result in a skipped check.
For consistency, the current series adds all missing reference files for all arch, and make their presence mandatory
--- tests/tcg/alpha/float_convd.ref | 988 ++++++++++++++++++++++++++++++++ tests/tcg/alpha/float_convs.ref | 748 ++++++++++++++++++++++++ tests/tcg/alpha/float_madds.ref | 768 +++++++++++++++++++++++++ 3 files changed, 2504 insertions(+) create mode 100644 tests/tcg/alpha/float_convd.ref create mode 100644 tests/tcg/alpha/float_convs.ref create mode 100644 tests/tcg/alpha/float_madds.ref
tests/tcg/alpha/float_convd.ref new file +988 -0
@@ -0,0 +1,988 @@ +### Rounding to nearest +from double: f64(nan:0x007ff4000000000000) + to single: f32(nan:0x7fe00000) (INVALID) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(-nan:0x00fff8000000000000) + to single: f32(-nan:0xffc00000) (OK) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-inf:0xff800000) (OVERFLOW ) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) (OK) + to int32: 0 () + to int64: 5575456338684674048 () + to uint32: 0 () + to uint64: 5575456338684674048 () +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) (OK) + to int32: 0 () + to int64: 7936327705845301248 () + to uint32: 0 () + to uint64: 7936327705845301248 () +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (OK) + to uint32: -2 (OK) + to uint64: -2 (OK) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW ) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW ) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW ) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW ) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb600000000000000p+1:0x40490fdb) (OK) + to int32: 3 (OK) + to int64: 3 (OK) + to uint32: 3 (OK) + to uint64: 3 (OK) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (OK) + to uint32: 65503 (OK) + to uint64: 65503 (OK) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (OK) + to uint32: 65504 (OK) + to uint64: 65504 (OK) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (OK) + to uint32: 65505 (OK) + to uint64: 65505 (OK) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (OK) + to uint32: 131007 (OK) + to uint64: 131007 (OK) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (OK) + to uint32: 131008 (OK) + to uint64: 131008 (OK) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (OK) + to uint32: 131009 (OK) + to uint64: 131009 (OK) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.00000000000000000000p+31:0x4f000000) (OK) + to int32: 2147483647 (OK) + to int64: 2147483647 (OK) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (OK) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(inf:0x7f800000) (OVERFLOW ) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(nan:0x007ff8000000000000) + to single: f32(nan:0x7fc00000) (OK) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(nan:0x7fc00000) (INVALID) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(nan:0x007ff4000000000000) + to single: f32(nan:0x7fe00000) (INVALID) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +### Rounding upwards +from double: f64(nan:0x007ff4000000000000) + to single: f32(nan:0x7fe00000) (INVALID) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(-nan:0x00fff8000000000000) + to single: f32(-nan:0xffc00000) (OK) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-inf:0xff800000) (OVERFLOW ) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) (OK) + to int32: 0 () + to int64: 5575456338684674048 () + to uint32: 0 () + to uint64: 5575456338684674048 () +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) (OK) + to int32: 0 () + to int64: 7936327705845301248 () + to uint32: 0 () + to uint64: 7936327705845301248 () +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (OK) + to uint32: -2 (OK) + to uint64: -2 (OK) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW ) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW ) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW ) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW ) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb600000000000000p+1:0x40490fdb) (OK) + to int32: 3 (OK) + to int64: 3 (OK) + to uint32: 3 (OK) + to uint64: 3 (OK) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (OK) + to uint32: 65503 (OK) + to uint64: 65503 (OK) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (OK) + to uint32: 65504 (OK) + to uint64: 65504 (OK) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (OK) + to uint32: 65505 (OK) + to uint64: 65505 (OK) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (OK) + to uint32: 131007 (OK) + to uint64: 131007 (OK) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (OK) + to uint32: 131008 (OK) + to uint64: 131008 (OK) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (OK) + to uint32: 131009 (OK) + to uint64: 131009 (OK) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.00000000000000000000p+31:0x4f000000) (OK) + to int32: 2147483647 (OK) + to int64: 2147483647 (OK) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (OK) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(inf:0x7f800000) (OVERFLOW ) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(nan:0x007ff8000000000000) + to single: f32(nan:0x7fc00000) (OK) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(nan:0x7fc00000) (INVALID) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(nan:0x007ff4000000000000) + to single: f32(nan:0x7fe00000) (INVALID) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +### Rounding downwards +from double: f64(nan:0x007ff4000000000000) + to single: f32(nan:0x7fe00000) (INVALID) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(-nan:0x00fff8000000000000) + to single: f32(-nan:0xffc00000) (OK) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-inf:0xff800000) (OVERFLOW ) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) (OK) + to int32: 0 () + to int64: 5575456338684674048 () + to uint32: 0 () + to uint64: 5575456338684674048 () +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) (OK) + to int32: 0 () + to int64: 7936327705845301248 () + to uint32: 0 () + to uint64: 7936327705845301248 () +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (OK) + to uint32: -2 (OK) + to uint64: -2 (OK) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW ) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW ) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW ) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW ) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb600000000000000p+1:0x40490fdb) (OK) + to int32: 3 (OK) + to int64: 3 (OK) + to uint32: 3 (OK) + to uint64: 3 (OK) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (OK) + to uint32: 65503 (OK) + to uint64: 65503 (OK) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (OK) + to uint32: 65504 (OK) + to uint64: 65504 (OK) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (OK) + to uint32: 65505 (OK) + to uint64: 65505 (OK) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (OK) + to uint32: 131007 (OK) + to uint64: 131007 (OK) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (OK) + to uint32: 131008 (OK) + to uint64: 131008 (OK) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (OK) + to uint32: 131009 (OK) + to uint64: 131009 (OK) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.00000000000000000000p+31:0x4f000000) (OK) + to int32: 2147483647 (OK) + to int64: 2147483647 (OK) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (OK) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(inf:0x7f800000) (OVERFLOW ) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(nan:0x007ff8000000000000) + to single: f32(nan:0x7fc00000) (OK) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(nan:0x7fc00000) (INVALID) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(nan:0x007ff4000000000000) + to single: f32(nan:0x7fe00000) (INVALID) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +### Rounding to zero +from double: f64(nan:0x007ff4000000000000) + to single: f32(nan:0x7fe00000) (INVALID) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(-nan:0x00fff8000000000000) + to single: f32(-nan:0xffc00000) (OK) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-inf:0xff800000) (OVERFLOW ) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) (OK) + to int32: 0 () + to int64: 5575456338684674048 () + to uint32: 0 () + to uint64: 5575456338684674048 () +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) (OK) + to int32: 0 () + to int64: 7936327705845301248 () + to uint32: 0 () + to uint64: 7936327705845301248 () +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (OK) + to uint32: -2 (OK) + to uint64: -2 (OK) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW ) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW ) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW ) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW ) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb600000000000000p+1:0x40490fdb) (OK) + to int32: 3 (OK) + to int64: 3 (OK) + to uint32: 3 (OK) + to uint64: 3 (OK) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (OK) + to uint32: 65503 (OK) + to uint64: 65503 (OK) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (OK) + to uint32: 65504 (OK) + to uint64: 65504 (OK) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (OK) + to uint32: 65505 (OK) + to uint64: 65505 (OK) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (OK) + to uint32: 131007 (OK) + to uint64: 131007 (OK) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (OK) + to uint32: 131008 (OK) + to uint64: 131008 (OK) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (OK) + to uint32: 131009 (OK) + to uint64: 131009 (OK) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.00000000000000000000p+31:0x4f000000) (OK) + to int32: 2147483647 (OK) + to int64: 2147483647 (OK) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (OK) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(inf:0x7f800000) (OVERFLOW ) + to int32: 0 () + to int64: 0 () + to uint32: 0 () + to uint64: 0 () +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(nan:0x007ff8000000000000) + to single: f32(nan:0x7fc00000) (OK) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(nan:0x7fc00000) (INVALID) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID) +from double: f64(nan:0x007ff4000000000000) + to single: f32(nan:0x7fe00000) (INVALID) + to int32: 0 (INVALID) + to int64: 0 (INVALID) + to uint32: 0 (INVALID) + to uint64: 0 (INVALID)
tests/tcg/alpha/float_convs.ref new file +748 -0
748 lines not on this page · raw message
tests/tcg/alpha/float_madds.ref new file +768 -0
768 lines not on this page · raw message
Signature · 1 line
2.43.0
Re: [PATCH v8 044/105] tests/tcg/alpha: add float reference files
Quoted 12 lines · Pierrick Bouvier
Makefiles were skipping the output compare when such files were not available. This results in arch being very inconsistent with some providing all files, some providing no files, and some providing some files. There was even one case of a misnamed file that result in a skipped check.
For consistency, the current series adds all missing reference files for all arch, and make their presence mandatory
Tested-by Alex Bennée<[email protected]>Tested-by Aniket Sahu<[email protected]>Signed-off-by Pierrick Bouvier<[email protected]>
Quoted 8 lines
--- tests/tcg/alpha/float_convd.ref | 988 ++++++++++++++++++++++++++++++++ tests/tcg/alpha/float_convs.ref | 748 ++++++++++++++++++++++++ tests/tcg/alpha/float_madds.ref | 768 +++++++++++++++++++++++++ 3 files changed, 2504 insertions(+)create mode 100644 tests/tcg/alpha/float_convd.ref create mode 100644 tests/tcg/alpha/float_convs.ref create mode 100644 tests/tcg/alpha/float_madds.ref
r~
PATCH v8 45/105 tests/tcg/alpha: user tests
In reply to Pierrick Bouvier--- tests/tcg/alpha/Makefile.target | 18 ----------- tests/tcg/alpha/meson.build | 53 +++++++++++++++++++++++++++++++++ tests/tcg/meson.build | 1 + 3 files changed, 54 insertions(+), 18 deletions(-) delete mode 100644 tests/tcg/alpha/Makefile.target create mode 100644 tests/tcg/alpha/meson.build
tests/tcg/alpha/Makefile.target deleted +0 -18
@@ -1,18 +0,0 @@ -# -*- Mode: makefile -*- -# -# Alpha specific tweaks - -ALPHA_SRC=$(SRC_PATH)/tests/tcg/alpha -VPATH+=$(ALPHA_SRC) - -ALPHA_TESTS=hello-alpha test-cond test-cmov test-ovf test-cvttq -TESTS+=$(ALPHA_TESTS) - -test-cmov: EXTRA_CFLAGS=-DTEST_CMOV -test-cmov: test-cond.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) - -# Force generation of byte read/write -test-plugin-mem-access: CFLAGS+=-mbwx - -run-test-cmov: test-cmov
tests/tcg/alpha/meson.build new file +53 -0
53 lines not on this page · raw message
tests/tcg/meson.build +1 -0
@@ -138,6 +138,7 @@ endforeach # Now let's go through all architectures subdir('aarch64') subdir('aarch64_be') +subdir('alpha') image_targets = {} exe_targets = []
Signature · 1 line
2.43.0
Re: [PATCH v8 045/105] tests/tcg/alpha: user tests
Quoted 9 lines · Pierrick Bouvier
Tested-by Aniket Sahu<[email protected]>Signed-off-by Pierrick Bouvier<[email protected]>--- tests/tcg/alpha/Makefile.target | 18 ----------- tests/tcg/alpha/meson.build | 53 +++++++++++++++++++++++++++++++++ tests/tcg/meson.build | 1 + 3 files changed, 54 insertions(+), 18 deletions(-)delete mode 100644 tests/tcg/alpha/Makefile.target create mode 100644 tests/tcg/alpha/meson.build
r~
PATCH v8 46/105 tests/tcg/alpha: system tests
In reply to Pierrick Bouvier--- tests/tcg/alpha/Makefile.softmmu-target | 34 ------------------ tests/tcg/alpha/meson.build | 2 ++ tests/tcg/alpha/system/meson.build | 47 +++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 34 deletions(-) delete mode 100644 tests/tcg/alpha/Makefile.softmmu-target create mode 100644 tests/tcg/alpha/system/meson.build
tests/tcg/alpha/Makefile.softmmu-target deleted +0 -34
@@ -1,34 +0,0 @@ -# -# Alpha system tests -# - -ALPHA_SYSTEM_SRC=$(SRC_PATH)/tests/tcg/alpha/system -VPATH+=$(ALPHA_SYSTEM_SRC) - -# These objects provide the basic boot code and helper functions for all tests -CRT_OBJS=boot.o - -ALPHA_TEST_SRCS=$(wildcard $(ALPHA_SYSTEM_SRC)/*.c) -ALPHA_TESTS = $(patsubst $(ALPHA_SYSTEM_SRC)/%.c, %, $(ALPHA_TEST_SRCS)) - -CRT_PATH=$(ALPHA_SYSTEM_SRC) -LINK_SCRIPT=$(ALPHA_SYSTEM_SRC)/kernel.ld -LDFLAGS=-Wl,-T$(LINK_SCRIPT) -TESTS+=$(ALPHA_TESTS) $(MULTIARCH_TESTS) -CFLAGS+=-nostdlib -g -O1 -mcpu=ev6 $(MINILIB_INC) -LDFLAGS+=-static -nostdlib $(CRT_OBJS) $(MINILIB_OBJS) -lgcc - -# building head blobs -.PRECIOUS: $(CRT_OBJS) - -%.o: $(CRT_PATH)/%.S - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -x assembler-with-cpp -Wa,--noexecstack -c $< -o $@ - -# Build and link the tests -%: %.c $(LINK_SCRIPT) $(CRT_OBJS) $(MINILIB_OBJS) - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) - -memory: CFLAGS+=-DCHECK_UNALIGNED=0 -mbwx - -# Running -QEMU_OPTS+=-serial chardev:output -kernel
tests/tcg/alpha/meson.build +2 -0
@@ -2,6 +2,8 @@ cc = 'alpha-linux-gnu-gcc' cc_dockerfile = 'debian-all-test-cross' cc_docker_host_arch = ['aarch64', 'x86_64'] +subdir('system') + tests = [] # Multi arch tests
tests/tcg/alpha/system/meson.build new file +47 -0
47 lines not on this page · raw message
Signature · 1 line
2.43.0
Re: [PATCH v8 046/105] tests/tcg/alpha: system tests
Quoted 9 lines · Pierrick Bouvier
Tested-by Aniket Sahu<[email protected]>Signed-off-by Pierrick Bouvier<[email protected]>--- tests/tcg/alpha/Makefile.softmmu-target | 34 ------------------ tests/tcg/alpha/meson.build | 2 ++ tests/tcg/alpha/system/meson.build | 47 +++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 34 deletions(-)delete mode 100644 tests/tcg/alpha/Makefile.softmmu-target create mode 100644 tests/tcg/alpha/system/meson.build
r~
PATCH v8 47/105 tests/tcg/arm: user tests
In reply to Pierrick Bouvier--- tests/tcg/arm/Makefile.target | 87 ----------------------------------- tests/tcg/arm/meson.build | 78 +++++++++++++++++++++++++++++++ tests/tcg/meson.build | 1 + 3 files changed, 79 insertions(+), 87 deletions(-) delete mode 100644 tests/tcg/arm/Makefile.target create mode 100644 tests/tcg/arm/meson.build
tests/tcg/arm/Makefile.target deleted +0 -87
@@ -1,87 +0,0 @@ -# -*- Mode: makefile -*- -# -# ARM - included from tests/tcg/Makefile -# - -ARM_SRC=$(SRC_PATH)/tests/tcg/arm - -# Set search path for all sources -VPATH += $(ARM_SRC) - -config-cc.mak: Makefile - $(quiet-@)( \ - $(call cc-option,-fno-integrated-as, CROSS_CC_HAS_FNIA)) 3> config-cc.mak --include config-cc.mak - -float_madds: CFLAGS+=-mfpu=neon-vfpv4 - -# Basic Hello World -ARM_TESTS = hello-arm -hello-arm: CFLAGS+=-marm -ffreestanding -fno-stack-protector -hello-arm: LDFLAGS+=-nostdlib - -# Float-convert Tests -ARM_TESTS += fcvt -fcvt: LDFLAGS += -lm -fcvt: CFLAGS += -march=armv8.2-a+fp16 -mfpu=neon-fp-armv8 -run-fcvt: fcvt - $(call run-test,fcvt,$(QEMU) $<) - $(call diff-out,fcvt,$(ARM_SRC)/fcvt.ref) - -# PC alignment test -ARM_TESTS += pcalign-a32 -pcalign-a32: CFLAGS+=-marm - -ifeq ($(CONFIG_ARM_COMPATIBLE_SEMIHOSTING),y) - -# Semihosting smoke test for linux-user -semihosting: CFLAGS += -mthumb - -ARM_TESTS += semihosting-arm -semihosting-arm: CFLAGS += -marm -I$(SRC_PATH)/tests/tcg/$(TARGET_NAME) -semihosting-arm: semihosting.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) - -run-semihosting-arm: semihosting-arm - $(call run-test,$<,$(QEMU) $< 2> $<.err) - -ARM_TESTS += semiconsole-arm - -semiconsole: CFLAGS += -mthumb - -semiconsole-arm: CFLAGS += -marm -I$(SRC_PATH)/tests/tcg/$(TARGET_NAME) -semiconsole-arm: semihosting.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) - -run-semiconsole-arm: semiconsole-arm - $(call skip-test, $<, "MANUAL ONLY") - -endif - -ARM_TESTS += commpage - -# Vector SHA1 -# Work around compiler false-positive warning, as we do for the 'sha1' test -sha1-vector: CFLAGS=-O3 -Wno-stringop-overread -sha1-vector: sha1.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) -run-sha1-vector: sha1-vector run-sha1 - $(call run-test, $<, $(QEMU) $(QEMU_OPTS) $<) - $(call diff-out, sha1-vector, sha1.out) - -ARM_TESTS += sha1-vector - -# Vector versions of sha512 (-O3 triggers vectorisation) -sha512-vector: CFLAGS=-O3 -sha512-vector: sha512.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) - -ARM_TESTS += sha512-vector - -ifeq ($(CONFIG_PLUGIN),y) -# Require emitting arm32 instructions, otherwise the vCPU might accidentally -# try to execute Thumb instructions in arm32 mode after qemu_plugin_set_pc() -test-plugin-set-pc: CFLAGS+=-marm -endif - -TESTS += $(ARM_TESTS)
tests/tcg/arm/meson.build new file +78 -0
78 lines not on this page · raw message
tests/tcg/meson.build +1 -0
@@ -139,6 +139,7 @@ endforeach subdir('aarch64') subdir('aarch64_be') subdir('alpha') +subdir('arm') image_targets = {} exe_targets = []
Signature · 1 line
2.43.0
PATCH v8 48/105 tests/tcg/arm: system tests
In reply to Pierrick Bouvier--- tests/tcg/arm/Makefile.softmmu-target | 80 --------------------------- tests/tcg/arm/meson.build | 2 + tests/tcg/arm/system/meson.build | 69 +++++++++++++++++++++++ 3 files changed, 71 insertions(+), 80 deletions(-) delete mode 100644 tests/tcg/arm/Makefile.softmmu-target create mode 100644 tests/tcg/arm/system/meson.build
tests/tcg/arm/Makefile.softmmu-target deleted +0 -80
@@ -1,80 +0,0 @@ -# -*- Mode: makefile -*- -# -# ARM SoftMMU tests - included from tests/tcg/Makefile -# - -ARM_SRC=$(SRC_PATH)/tests/tcg/arm/system - -# Set search path for all sources -VPATH += $(ARM_SRC) - -# Specific Test Rules - -test-armv6m-undef: test-armv6m-undef.S - $(CC) -mcpu=cortex-m0 -mfloat-abi=soft \ - -Wl,--build-id=none -x assembler-with-cpp \ - $< -o $@ -nostdlib -static \ - -T $(ARM_SRC)/[email protected] - -run-test-armv6m-undef: QEMU_OPTS=-semihosting-config enable=on,target=native,chardev=output -M microbit -kernel - -ARM_TESTS+=test-armv6m-undef - -# These objects provide the basic boot code and helper functions for all tests -CRT_OBJS=boot.o - -ARM_TEST_SRCS=$(wildcard $(ARM_SRC)/*.c) -ARM_TESTS+=$(patsubst $(ARM_SRC)/%.c, %, $(ARM_TEST_SRCS)) - -CRT_PATH=$(ARM_SRC) -LINK_SCRIPT=$(ARM_SRC)/kernel.ld -LDFLAGS=-Wl,-T$(LINK_SCRIPT) -CFLAGS+=-nostdlib -ggdb -O0 $(MINILIB_INC) -LDFLAGS+=-static -nostdlib $(CRT_OBJS) $(MINILIB_OBJS) -lgcc - -# building head blobs -.PRECIOUS: $(CRT_OBJS) - -%.o: $(ARM_SRC)/%.S - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -x assembler-with-cpp -Wa,--noexecstack -c $< -o $@ - -# Build and link the tests -%: %.c $(LINK_SCRIPT) $(CRT_OBJS) $(MINILIB_OBJS) - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) - -memory: CFLAGS+=-DCHECK_UNALIGNED=0 - -# Running -QEMU_BASE_MACHINE=-M virt -cpu max -display none -QEMU_OPTS+=$(QEMU_BASE_MACHINE) -semihosting-config enable=on,target=native,chardev=output -kernel - -# console test is manual only -QEMU_SEMIHOST=-serial none -chardev stdio,mux=on,id=stdio0 -semihosting-config enable=on,chardev=stdio0 -mon chardev=stdio0,mode=readline -run-semiconsole: QEMU_OPTS=$(QEMU_BASE_MACHINE) $(QEMU_SEMIHOST) -kernel -run-semiconsole: semiconsole - $(call skip-test, $<, "MANUAL ONLY") - $(if $(V),@printf " %-7s %s %s\n" "TO RUN" $(notdir $(QEMU)) "$(QEMU_OPTS) $<") -run-plugin-semiconsole-with-%: semiconsole - $(call skip-test, $<, "MANUAL ONLY") - -# Simple Record/Replay Test -.PHONY: memory-record -run-memory-record: memory-record memory - $(call run-test, $<, \ - $(QEMU) -monitor none -display none \ - -chardev file$(COMMA)path=$<.out$(COMMA)id=output \ - -icount shift=5$(COMMA)rr=record$(COMMA)rrfile=record.bin \ - $(QEMU_OPTS) memory) - -.PHONY: memory-replay -run-memory-replay: memory-replay run-memory-record - $(call run-test, $<, \ - $(QEMU) -monitor none -display none \ - -chardev file$(COMMA)path=$<.out$(COMMA)id=output \ - -icount shift=5$(COMMA)rr=replay$(COMMA)rrfile=record.bin \ - $(QEMU_OPTS) memory) - -EXTRA_RUNS+=run-memory-replay - -TESTS += $(ARM_TESTS) $(MULTIARCH_TESTS) -EXTRA_RUNS+=$(MULTIARCH_RUNS)
tests/tcg/arm/meson.build +2 -0
@@ -2,6 +2,8 @@ cc = 'arm-linux-gnueabihf-gcc' cc_dockerfile = 'debian-all-test-cross' cc_docker_host_arch = ['aarch64', 'x86_64'] +subdir('system') + tests = [] # Multi arch tests
tests/tcg/arm/system/meson.build new file +69 -0
69 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v8 49/105 tests/tcg/hexagon/overflow.c: add missing include
In reply to Pierrick Bouvier../tests/tcg/hexagon/overflow.c:59:1: error: unknown type name 'bool'
--- tests/tcg/hexagon/overflow.c | 1 + 1 file changed, 1 insertion(+)
tests/tcg/hexagon/overflow.c +1 -0
@@ -15,6 +15,7 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ +#include <stdbool.h> #include <stdlib.h> #include <stdio.h> #include <stdint.h>
Signature · 1 line
2.43.0
PATCH v8 50/105 tests/tcg/hexagon: user tests
In reply to Pierrick Bouvier--- tests/tcg/hexagon/Makefile.target | 163 ------------------------------ tests/tcg/hexagon/meson.build | 118 +++++++++++++++++++++ tests/tcg/meson.build | 1 + 3 files changed, 119 insertions(+), 163 deletions(-) delete mode 100644 tests/tcg/hexagon/Makefile.target create mode 100644 tests/tcg/hexagon/meson.build
tests/tcg/hexagon/Makefile.target deleted +0 -163
@@ -1,163 +0,0 @@ -## -## Copyright(c) 2019-2023 Qualcomm Innovation Center, Inc. All Rights Reserved. -## -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with this program; if not, see <http://www.gnu.org/licenses/>. -## - -# Hexagon doesn't support gdb, so skip the EXTRA_RUNS -EXTRA_RUNS = - -CFLAGS += -Wno-incompatible-pointer-types -Wno-undefined-internal -CFLAGS += -fno-unroll-loops -fno-stack-protector - -HEX_SRC=$(SRC_PATH)/tests/tcg/hexagon -VPATH += $(HEX_SRC) - -%: $(HEX_SRC)/%.S $(HEX_SRC)/crt.S - $(CC) -static -mv67 -nostdlib $^ -o $@ - -HEX_TESTS = first -HEX_TESTS += hex_sigsegv -HEX_TESTS += misc -HEX_TESTS += usr -HEX_TESTS += preg_alias -HEX_TESTS += dual_stores -HEX_TESTS += multi_result -HEX_TESTS += mem_noshuf -HEX_TESTS += mem_noshuf_exception -HEX_TESTS += circ -HEX_TESTS += brev -HEX_TESTS += load_unpack -HEX_TESTS += load_align -HEX_TESTS += atomics -HEX_TESTS += fpstuff -HEX_TESTS += overflow -HEX_TESTS += signal_context -HEX_TESTS += reg_mut -HEX_TESTS += read_write_overlap -HEX_TESTS += vector_add_int -HEX_TESTS += scatter_gather -HEX_TESTS += hvx_misc -HEX_TESTS += hvx_histogram -HEX_TESTS += fp_hvx -HEX_TESTS += fp_hvx_cvt -HEX_TESTS += fp_hvx_cmp -HEX_TESTS += fp_hvx_disabled -HEX_TESTS += invalid-slots -HEX_TESTS += valid-slots -HEX_TESTS += invalid-encoding -HEX_TESTS += multiple-writes -HEX_TESTS += unaligned_pc -HEX_TESTS += unaligned_data - -HEX_TESTS += test_abs -HEX_TESTS += test_bitcnt -HEX_TESTS += test_bitsplit -HEX_TESTS += test_call -HEX_TESTS += test_clobber -HEX_TESTS += test_cmp -HEX_TESTS += test_dotnew -HEX_TESTS += test_ext -HEX_TESTS += test_fibonacci -HEX_TESTS += test_hl -HEX_TESTS += test_hwloops -HEX_TESTS += test_jmp -HEX_TESTS += test_lsr -HEX_TESTS += test_mpyi -HEX_TESTS += test_packet -HEX_TESTS += test_reorder -HEX_TESTS += test_round -HEX_TESTS += test_vavgw -HEX_TESTS += test_vcmpb -HEX_TESTS += test_vcmpw -HEX_TESTS += test_vlsrw -HEX_TESTS += test_vmaxh -HEX_TESTS += test_vminh -HEX_TESTS += test_vpmpyh -HEX_TESTS += test_vspliceb - -HEX_TESTS += check_rev_gating -HEX_TESTS += test_pnew_jump_loads - -HEX_TESTS += v68_scalar -HEX_TESTS += v68_hvx -HEX_TESTS += v69_hvx -HEX_TESTS += v73_scalar - -TESTS += $(HEX_TESTS) - -atomics: atomics.c hex_test.h -brev: brev.c hex_test.h -circ: circ.c hex_test.h -dual_stores: dual_stores.c hex_test.h -fpstuff: fpstuff.c hex_test.h -hex_sigsegv: hex_sigsegv.c hex_test.h -load_align: load_align.c hex_test.h -load_unpack: load_unpack.c hex_test.h -mem_noshuf_exception: mem_noshuf_exception.c hex_test.h -mem_noshuf: mem_noshuf.c hex_test.h -misc: misc.c hex_test.h -multi_result: multi_result.c hex_test.h -overflow: overflow.c hex_test.h -preg_alias: preg_alias.c hex_test.h -read_write_overlap: read_write_overlap.c hex_test.h -reg_mut: reg_mut.c hex_test.h -test_pnew_jump_loads: test_pnew_jump_loads.c hex_test.h -unaligned_data: unaligned_data.c hex_test.h -unaligned_pc: unaligned_pc.c - -# Compile for v66 so that the ELF selects a v66 CPU; the test then -# exercises revision gating by executing a v68 .word instruction. -run-check_rev_gating: QEMU_OPTS += -cpu v66 -check_rev_gating: check_rev_gating.c - $(CC) $(CFLAGS) -mv66 -O2 $< -o $@ $(LDFLAGS) - -# This test has to be compiled for the -mv67t target -usr: usr.c hex_test.h - $(CC) $(CFLAGS) -mv67t -O2 -Wno-inline-asm -Wno-expansion-to-defined $< -o $@ $(LDFLAGS) - -# Build this test with -mv71 to exercise the CABAC instruction -misc: misc.c - $(CC) $(CFLAGS) -mv71 -O2 $< -o $@ $(LDFLAGS) -scatter_gather: CFLAGS += -mhvx -vector_add_int: CFLAGS += -mhvx -fvectorize -hvx_misc: hvx_misc.c hvx_misc.h -hvx_misc: CFLAGS += -mhvx -hvx_histogram: CFLAGS += -mhvx -Wno-gnu-folding-constant -v68_hvx: v68_hvx.c hvx_misc.h v6mpy_ref.c.inc -v68_hvx: CFLAGS += -mhvx -Wno-unused-function -v69_hvx: v69_hvx.c hvx_misc.h -v69_hvx: CFLAGS += -mhvx -Wno-unused-function -v73_scalar: CFLAGS += -Wno-unused-function -fp_hvx: fp_hvx.c hvx_misc.h hex_test.h -fp_hvx: CFLAGS += -mhvx -mhvx-ieee-fp -fp_hvx_disabled: fp_hvx_disabled.c hvx_misc.h hex_test.h -fp_hvx_disabled: CFLAGS += -mhvx -mhvx-ieee-fp -fp_hvx_cvt: fp_hvx_cvt.c hvx_misc.h hex_test.h -fp_hvx_cvt: CFLAGS += -mhvx -mhvx-ieee-fp -fp_hvx_cmp: fp_hvx_cmp.c hvx_misc.h hex_test.h -fp_hvx_cmp: CFLAGS += -mhvx -mhvx-ieee-fp - -run-fp_hvx_disabled: QEMU_OPTS += -cpu v73,ieee-fp=false - -hvx_histogram: hvx_histogram.c hvx_histogram_row.S - $(CC) $(CFLAGS) $(CROSS_CC_GUEST_CFLAGS) $^ -o $@ $(LDFLAGS) - -ifeq ($(CONFIG_PLUGIN),y) -# LLVM is way too aggressive with inlining and dead code elimination even at -# -O0, which interferes with the test. What looks like dead code in this test -# to the compiler isn't actually dead code, so we need to disable all potential -# LLVM optimization passes. -test-plugin-set-pc: CFLAGS += -Xclang -disable-llvm-passes -endif
tests/tcg/hexagon/meson.build new file +118 -0
118 lines not on this page · raw message
tests/tcg/meson.build +1 -0
@@ -140,6 +140,7 @@ subdir('aarch64') subdir('aarch64_be') subdir('alpha') subdir('arm') +subdir('hexagon') image_targets = {} exe_targets = []
Signature · 1 line
2.43.0
PATCH v8 51/105 tests/tcg/multiarch/sha1.c: fix big endian implementation
In reply to Pierrick BouvierDue to missing endian.h header, BYTE_ORDER, LITTLE_ENDIAN and BIG_ENDIAN were undefined. Thus, for following code, the first branch was always taken:
#if BYTE_ORDER == LITTLE_ENDIAN
#define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \
|(rol(block->l[i],8)&0x00FF00FF)) #elif BYTE_ORDER == BIG_ENDIAN
...
--- tests/tcg/multiarch/sha1.c | 1 + 1 file changed, 1 insertion(+)
tests/tcg/multiarch/sha1.c +1 -0
@@ -21,6 +21,7 @@ A million repetitions of "a"#define SHA1HANDSOFF +#include <endian.h> #include <stdio.h> #include <string.h> #include <stdint.h>
Signature · 1 line
2.43.0
PATCH v8 52/105 tests/tcg/hppa: add float reference files
In reply to Pierrick BouvierMakefiles were skipping the output compare when such files were not available. This results in arch being very inconsistent with some providing all files, some providing no files, and some providing some files. There was even one case of a misnamed file that result in a skipped check.
For consistency, the current series adds all missing reference files for all arch, and make their presence mandatory
--- tests/tcg/hppa/float_convd.ref | 988 +++++++++++++++++++++++++++++++++ tests/tcg/hppa/float_convs.ref | 748 +++++++++++++++++++++++++ tests/tcg/hppa/float_madds.ref | 768 +++++++++++++++++++++++++ 3 files changed, 2504 insertions(+) create mode 100644 tests/tcg/hppa/float_convd.ref create mode 100644 tests/tcg/hppa/float_convs.ref create mode 100644 tests/tcg/hppa/float_madds.ref
tests/tcg/hppa/float_convd.ref new file +988 -0
@@ -0,0 +1,988 @@ +### Rounding to nearest +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-nan:0x00fff7ffffffffffff) + to single: f32(-nan:0xffbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-inf:0xff800000) (OVERFLOW INEXACT ) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) (INEXACT ) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) (INEXACT ) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (OK) + to uint32: -2 (OK) + to uint64: -2 (OK) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb600000000000000p+1:0x40490fdb) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (OK) + to uint32: 65503 (OK) + to uint64: 65503 (OK) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (OK) + to uint32: 65504 (OK) + to uint64: 65504 (OK) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (OK) + to uint32: 65505 (OK) + to uint64: 65505 (OK) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (OK) + to uint32: 131007 (OK) + to uint64: 131007 (OK) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (OK) + to uint32: 131008 (OK) + to uint64: 131008 (OK) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (OK) + to uint32: 131009 (OK) + to uint64: 131009 (OK) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.00000000000000000000p+31:0x4f000000) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (OK) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (OK) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(inf:0x7f800000) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007ff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +### Rounding upwards +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-nan:0x00fff7ffffffffffff) + to single: f32(-nan:0xffbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OVERFLOW INEXACT ) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b000000000000000p+103:0xf30c3a58) (INEXACT ) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab400000000000000p+99:0xf1605d5a) (INEXACT ) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (OK) + to uint32: -2 (OK) + to uint64: -2 (OK) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000200000000000000p-25:0x33000001) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe800000000000000p-25:0x337ffff4) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801c00000000000000p-15:0x387fc00e) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000e00000000000000p-14:0x38800007) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x1.00000000000000000000p-149:0x00000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x1.00000000000000000000p-149:0x00000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x1.00000000000000000000p-149:0x00000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0aa00000000000000p+1:0x402df855) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb600000000000000p+1:0x40490fdb) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (OK) + to uint32: 65503 (OK) + to uint64: 65503 (OK) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (OK) + to uint32: 65504 (OK) + to uint64: 65504 (OK) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (OK) + to uint32: 65505 (OK) + to uint64: 65505 (OK) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (OK) + to uint32: 131007 (OK) + to uint64: 131007 (OK) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (OK) + to uint32: 131008 (OK) + to uint64: 131008 (OK) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (OK) + to uint32: 131009 (OK) + to uint64: 131009 (OK) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.00000000000000000000p+31:0x4f000000) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (OK) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (OK) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(inf:0x7f800000) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007ff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +### Rounding downwards +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-nan:0x00fff7ffffffffffff) + to single: f32(-nan:0xffbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-inf:0xff800000) (OVERFLOW INEXACT ) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) (INEXACT ) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) (INEXACT ) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (OK) + to uint32: -2 (OK) + to uint64: -2 (OK) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x1.00000000000000000000p-149:0x80000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb400000000000000p+1:0x40490fda) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (OK) + to uint32: 65503 (OK) + to uint64: 65503 (OK) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (OK) + to uint32: 65504 (OK) + to uint64: 65504 (OK) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (OK) + to uint32: 65505 (OK) + to uint64: 65505 (OK) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (OK) + to uint32: 131007 (OK) + to uint64: 131007 (OK) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (OK) + to uint32: 131008 (OK) + to uint64: 131008 (OK) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (OK) + to uint32: 131009 (OK) + to uint64: 131009 (OK) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.fffffe00000000000000p+30:0x4effffff) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (OK) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (OK) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007ff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +### Rounding to zero +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-nan:0x00fff7ffffffffffff) + to single: f32(-nan:0xffbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OVERFLOW INEXACT ) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b000000000000000p+103:0xf30c3a58) (INEXACT ) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab400000000000000p+99:0xf1605d5a) (INEXACT ) + to int32: -2147483648 (INVALID) + to int64: -9223372036854775808 (INVALID) + to uint32: 0 (INVALID) + to uint64: -9223372036854775808 (INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (OK) + to uint32: -2 (OK) + to uint64: -2 (OK) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb400000000000000p+1:0x40490fda) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (OK) + to uint32: 65503 (OK) + to uint64: 65503 (OK) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (OK) + to uint32: 65504 (OK) + to uint64: 65504 (OK) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (OK) + to uint32: 65505 (OK) + to uint64: 65505 (OK) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (OK) + to uint32: 131007 (OK) + to uint64: 131007 (OK) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (OK) + to uint32: 131008 (OK) + to uint64: 131008 (OK) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (OK) + to uint32: 131009 (OK) + to uint64: 131009 (OK) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.fffffe00000000000000p+30:0x4effffff) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (OK) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (OK) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007ff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: 9223372036854775807 (INVALID)
tests/tcg/hppa/float_convs.ref new file +748 -0
748 lines not on this page · raw message
tests/tcg/hppa/float_madds.ref new file +768 -0
768 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v8 53/105 tests/tcg/hppa: user tests
In reply to Pierrick Bouvier--- tests/tcg/hppa/Makefile.target | 14 -------------- tests/tcg/hppa/meson.build | 22 ++++++++++++++++++++++ tests/tcg/meson.build | 1 + 3 files changed, 23 insertions(+), 14 deletions(-) delete mode 100644 tests/tcg/hppa/Makefile.target create mode 100644 tests/tcg/hppa/meson.build
tests/tcg/hppa/Makefile.target deleted +0 -14
@@ -1,14 +0,0 @@ -# -*- Mode: makefile -*- -# -# HPPA specific tweaks - specifically masking out broken tests - -# This triggers failures for hppa-linux about 1% of the time -# HPPA is the odd target that can't use the sigtramp page; -# it requires the full vdso with dwarf2 unwind info. -run-signals: signals - $(call skip-test, $<, "BROKEN awaiting vdso support") - -VPATH += $(SRC_PATH)/tests/tcg/hppa -TESTS += stby - -stby: CFLAGS += -pthread
tests/tcg/hppa/meson.build new file +22 -0
@@ -0,0 +1,22 @@ +tests = [] + +tests += tcg_tests['multiarch-linux-user']['tests'] + +tests += { + 'stby.c': {'cflags': ['-pthread']}, +} + +if 'qemu-hppa' in emulators + tcg_tests += { + 'hppa-linux-user': { + 'cc': 'hppa-linux-gnu-gcc', + 'cc_dockerfile': 'debian-all-test-cross', + 'cc_docker_host_arch': ['x86_64'], + 'cc_feat_cflags': cc_feat_cflags, + 'folder': 'hppa', + 'gdb_arch': 'hppa', + 'qemu': emulators['qemu-hppa'], + 'tests': tests, + } + } +endif
tests/tcg/meson.build +1 -0
@@ -141,6 +141,7 @@ subdir('aarch64_be') subdir('alpha') subdir('arm') subdir('hexagon') +subdir('hppa') image_targets = {} exe_targets = []
Signature · 1 line
2.43.0
PATCH v8 54/105 tests/tcg/i386: add missing float reference files
In reply to Pierrick BouvierMakefiles were skipping the output compare when such files were not available. This results in arch being very inconsistent with some providing all files, some providing no files, and some providing some files. There was even one case of a misnamed file that result in a skipped check.
For consistency, the current series adds all missing reference files for all arch, and make their presence mandatory
Delete float_convd.conf which was unused. It has the same content than float_convd.ref but with some lines in different order.
--- tests/tcg/i386/float_convd.conf | 988 -------------------------------- tests/tcg/i386/float_convd.ref | 988 ++++++++++++++++++++++++++++++++ tests/tcg/i386/float_madds.ref | 768 +++++++++++++++++++++++++ 3 files changed, 1756 insertions(+), 988 deletions(-) delete mode 100644 tests/tcg/i386/float_convd.conf create mode 100644 tests/tcg/i386/float_convd.ref create mode 100644 tests/tcg/i386/float_madds.ref
tests/tcg/i386/float_convd.conf deleted +0 -988
@@ -1,988 +0,0 @@ -### Rounding to nearest -from single: f32(nan:0x7fe00000) - to single: f64(nan:0x007ffc000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-nan:0xffc00000) - to single: f64(-nan:0x00fff8000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-inf:0xff800000) - to single: f64(-inf:0x00fff0000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-inf:0xff800000) - to single: f64(-inf:0x00fff0000000000000) (OVERFLOW INEXACT ) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) - to single: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) - to single: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) - to single: f64(-0x1.1874b200000000000000p+103:0x00c661874b20000000) (INEXACT ) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) - to single: f64(-0x1.c0bab600000000000000p+99:0x00c62c0bab60000000) (INEXACT ) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.00000000000000000000p+1:0xc0000000) - to single: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) (OK) - to int32: -2 (OK) - to int64: -2 (OK) - to uint32: -2 (OK) - to uint64: -2 (OK) -from single: f32(-0x1.00000000000000000000p+0:0xbf800000) - to single: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) (OK) - to int32: -1 (OK) - to int64: -1 (OK) - to uint32: -1 (OK) - to uint64: -1 (OK) -from single: f32(-0x0.00000000000000000000p+0:0x80000000) - to single: f64(-0x0.00000000000000000000p+0:0x008000000000000000) (UNDERFLOW INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(-0x1.00000000000000000000p-126:0x80800000) - to single: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) (OK) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x0.00000000000000000000p+0:0000000000) - to single: f64(0x0.00000000000000000000p+0:00000000000000000000) (OK) - to int32: 0 (OK) - to int64: 0 (OK) - to uint32: 0 (OK) - to uint64: 0 (OK) -from single: f32(0x1.00000000000000000000p-126:0x00800000) - to single: f64(0x1.00000000000000000000p-126:0x003810000000000000) (OK) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.00000000000000000000p-25:0x33000000) - to single: f64(0x1.00000000000000000000p-25:0x003e60000000000000) (INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) - to single: f64(0x1.ffffe600000000000000p-25:0x003e6ffffe60000000) (INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) - to single: f64(0x1.ff801a00000000000000p-15:0x003f0ff801a0000000) (INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.00000c00000000000000p-14:0x38800006) - to single: f64(0x1.00000c00000000000000p-14:0x003f100000c0000000) (INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.00000000000000000000p+0:0x3f800000) - to single: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) (OK) - to int32: 1 (OK) - to int64: 1 (OK) - to uint32: 1 (OK) - to uint64: 1 (OK) -from single: f32(0x1.00400000000000000000p+0:0x3f802000) - to single: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) (OK) - to int32: 1 (INEXACT ) - to int64: 1 (INEXACT ) - to uint32: 1 (INEXACT ) - to uint64: 1 (INEXACT ) -from single: f32(0x0.00000000000000000000p+0:0000000000) - to single: f64(0x0.00000000000000000000p+0:00000000000000000000) (UNDERFLOW INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x0.00000000000000000000p+0:0000000000) - to single: f64(0x0.00000000000000000000p+0:00000000000000000000) (UNDERFLOW INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x0.00000000000000000000p+0:0000000000) - to single: f64(0x0.00000000000000000000p+0:00000000000000000000) (UNDERFLOW INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.00000000000000000000p+0:0x3f800000) - to single: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) (OK) - to int32: 1 (OK) - to int64: 1 (OK) - to uint32: 1 (OK) - to uint64: 1 (OK) -from single: f32(0x1.00000000000000000000p+1:0x40000000) - to single: f64(0x1.00000000000000000000p+1:0x004000000000000000) (OK) - to int32: 2 (OK) - to int64: 2 (OK) - to uint32: 2 (OK) - to uint64: 2 (OK) -from single: f32(0x1.5bf0a800000000000000p+1:0x402df854) - to single: f64(0x1.5bf0a800000000000000p+1:0x004005bf0a80000000) (INEXACT ) - to int32: 2 (INEXACT ) - to int64: 2 (INEXACT ) - to uint32: 2 (INEXACT ) - to uint64: 2 (INEXACT ) -from single: f32(0x1.921fb600000000000000p+1:0x40490fdb) - to single: f64(0x1.921fb600000000000000p+1:0x00400921fb60000000) (INEXACT ) - to int32: 3 (INEXACT ) - to int64: 3 (INEXACT ) - to uint32: 3 (INEXACT ) - to uint64: 3 (INEXACT ) -from single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) - to single: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) (OK) - to int32: 65503 (OK) - to int64: 65503 (OK) - to uint32: 65503 (OK) - to uint64: 65503 (OK) -from single: f32(0x1.ffc00000000000000000p+15:0x477fe000) - to single: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) (OK) - to int32: 65504 (OK) - to int64: 65504 (OK) - to uint32: 65504 (OK) - to uint64: 65504 (OK) -from single: f32(0x1.ffc20000000000000000p+15:0x477fe100) - to single: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) (OK) - to int32: 65505 (OK) - to int64: 65505 (OK) - to uint32: 65505 (OK) - to uint64: 65505 (OK) -from single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) - to single: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) (OK) - to int32: 131007 (OK) - to int64: 131007 (OK) - to uint32: 131007 (OK) - to uint64: 131007 (OK) -from single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) - to single: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) (OK) - to int32: 131008 (OK) - to int64: 131008 (OK) - to uint32: 131008 (OK) - to uint64: 131008 (OK) -from single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) - to single: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) (OK) - to int32: 131009 (OK) - to int64: 131009 (OK) - to uint32: 131009 (OK) - to uint64: 131009 (OK) -from single: f32(0x1.00000000000000000000p+31:0x4f000000) - to single: f64(0x1.00000000000000000000p+31:0x0041e0000000000000) (INEXACT ) - to int32: 2147483647 (OK) - to int64: 2147483647 (OK) - to uint32: 2147483647 (OK) - to uint64: 2147483647 (OK) -from single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) - to single: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: 0 (INEXACT INVALID) -from single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) - to single: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: 0 (INEXACT INVALID) -from single: f32(inf:0x7f800000) - to single: f64(inf:0x007ff0000000000000) (OVERFLOW INEXACT ) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: 0 (INEXACT INVALID) -from single: f32(inf:0x7f800000) - to single: f64(inf:0x007ff0000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: 0 (INVALID) -from single: f32(nan:0x7fc00000) - to single: f64(nan:0x007ff8000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(nan:0x7fc00000) - to single: f64(nan:0x007ff8000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(nan:0x7fe00000) - to single: f64(nan:0x007ffc000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -### Rounding upwards -from single: f32(nan:0x7fe00000) - to single: f64(nan:0x007ffc000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-nan:0xffc00000) - to single: f64(-nan:0x00fff8000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-inf:0xff800000) - to single: f64(-inf:0x00fff0000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) - to single: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OVERFLOW INEXACT ) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) - to single: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) - to single: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.1874b000000000000000p+103:0xf30c3a58) - to single: f64(-0x1.1874b000000000000000p+103:0x00c661874b00000000) (INEXACT ) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.c0bab400000000000000p+99:0xf1605d5a) - to single: f64(-0x1.c0bab400000000000000p+99:0x00c62c0bab40000000) (INEXACT ) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.00000000000000000000p+1:0xc0000000) - to single: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) (OK) - to int32: -2 (OK) - to int64: -2 (OK) - to uint32: -2 (OK) - to uint64: -2 (OK) -from single: f32(-0x1.00000000000000000000p+0:0xbf800000) - to single: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) (OK) - to int32: -1 (OK) - to int64: -1 (OK) - to uint32: -1 (OK) - to uint64: -1 (OK) -from single: f32(-0x0.00000000000000000000p+0:0x80000000) - to single: f64(-0x0.00000000000000000000p+0:0x008000000000000000) (UNDERFLOW INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(-0x1.00000000000000000000p-126:0x80800000) - to single: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) (OK) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x0.00000000000000000000p+0:0000000000) - to single: f64(0x0.00000000000000000000p+0:00000000000000000000) (OK) - to int32: 0 (OK) - to int64: 0 (OK) - to uint32: 0 (OK) - to uint64: 0 (OK) -from single: f32(0x1.00000000000000000000p-126:0x00800000) - to single: f64(0x1.00000000000000000000p-126:0x003810000000000000) (OK) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.00000200000000000000p-25:0x33000001) - to single: f64(0x1.00000200000000000000p-25:0x003e60000020000000) (INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.ffffe800000000000000p-25:0x337ffff4) - to single: f64(0x1.ffffe800000000000000p-25:0x003e6ffffe80000000) (INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.ff801c00000000000000p-15:0x387fc00e) - to single: f64(0x1.ff801c00000000000000p-15:0x003f0ff801c0000000) (INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.00000e00000000000000p-14:0x38800007) - to single: f64(0x1.00000e00000000000000p-14:0x003f100000e0000000) (INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.00000000000000000000p+0:0x3f800000) - to single: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) (OK) - to int32: 1 (OK) - to int64: 1 (OK) - to uint32: 1 (OK) - to uint64: 1 (OK) -from single: f32(0x1.00400000000000000000p+0:0x3f802000) - to single: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) (OK) - to int32: 1 (INEXACT ) - to int64: 1 (INEXACT ) - to uint32: 1 (INEXACT ) - to uint64: 1 (INEXACT ) -from single: f32(0x1.00000000000000000000p-149:0x00000001) - to single: f64(0x1.00000000000000000000p-149:0x0036a0000000000000) (UNDERFLOW INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.00000000000000000000p-149:0x00000001) - to single: f64(0x1.00000000000000000000p-149:0x0036a0000000000000) (UNDERFLOW INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.00000000000000000000p-149:0x00000001) - to single: f64(0x1.00000000000000000000p-149:0x0036a0000000000000) (UNDERFLOW INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.00000000000000000000p+0:0x3f800000) - to single: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) (OK) - to int32: 1 (OK) - to int64: 1 (OK) - to uint32: 1 (OK) - to uint64: 1 (OK) -from single: f32(0x1.00000000000000000000p+1:0x40000000) - to single: f64(0x1.00000000000000000000p+1:0x004000000000000000) (OK) - to int32: 2 (OK) - to int64: 2 (OK) - to uint32: 2 (OK) - to uint64: 2 (OK) -from single: f32(0x1.5bf0aa00000000000000p+1:0x402df855) - to single: f64(0x1.5bf0aa00000000000000p+1:0x004005bf0aa0000000) (INEXACT ) - to int32: 2 (INEXACT ) - to int64: 2 (INEXACT ) - to uint32: 2 (INEXACT ) - to uint64: 2 (INEXACT ) -from single: f32(0x1.921fb600000000000000p+1:0x40490fdb) - to single: f64(0x1.921fb600000000000000p+1:0x00400921fb60000000) (INEXACT ) - to int32: 3 (INEXACT ) - to int64: 3 (INEXACT ) - to uint32: 3 (INEXACT ) - to uint64: 3 (INEXACT ) -from single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) - to single: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) (OK) - to int32: 65503 (OK) - to int64: 65503 (OK) - to uint32: 65503 (OK) - to uint64: 65503 (OK) -from single: f32(0x1.ffc00000000000000000p+15:0x477fe000) - to single: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) (OK) - to int32: 65504 (OK) - to int64: 65504 (OK) - to uint32: 65504 (OK) - to uint64: 65504 (OK) -from single: f32(0x1.ffc20000000000000000p+15:0x477fe100) - to single: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) (OK) - to int32: 65505 (OK) - to int64: 65505 (OK) - to uint32: 65505 (OK) - to uint64: 65505 (OK) -from single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) - to single: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) (OK) - to int32: 131007 (OK) - to int64: 131007 (OK) - to uint32: 131007 (OK) - to uint64: 131007 (OK) -from single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) - to single: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) (OK) - to int32: 131008 (OK) - to int64: 131008 (OK) - to uint32: 131008 (OK) - to uint64: 131008 (OK) -from single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) - to single: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) (OK) - to int32: 131009 (OK) - to int64: 131009 (OK) - to uint32: 131009 (OK) - to uint64: 131009 (OK) -from single: f32(0x1.00000000000000000000p+31:0x4f000000) - to single: f64(0x1.00000000000000000000p+31:0x0041e0000000000000) (INEXACT ) - to int32: 2147483647 (OK) - to int64: 2147483647 (OK) - to uint32: 2147483647 (OK) - to uint64: 2147483647 (OK) -from single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) - to single: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: 0 (INEXACT INVALID) -from single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) - to single: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: 0 (INEXACT INVALID) -from single: f32(inf:0x7f800000) - to single: f64(inf:0x007ff0000000000000) (OVERFLOW INEXACT ) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: 0 (INEXACT INVALID) -from single: f32(inf:0x7f800000) - to single: f64(inf:0x007ff0000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: 0 (INVALID) -from single: f32(nan:0x7fc00000) - to single: f64(nan:0x007ff8000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(nan:0x7fc00000) - to single: f64(nan:0x007ff8000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(nan:0x7fe00000) - to single: f64(nan:0x007ffc000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -### Rounding downwards -from single: f32(nan:0x7fe00000) - to single: f64(nan:0x007ffc000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-nan:0xffc00000) - to single: f64(-nan:0x00fff8000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-inf:0xff800000) - to single: f64(-inf:0x00fff0000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-inf:0xff800000) - to single: f64(-inf:0x00fff0000000000000) (OVERFLOW INEXACT ) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) - to single: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) - to single: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) - to single: f64(-0x1.1874b200000000000000p+103:0x00c661874b20000000) (INEXACT ) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) - to single: f64(-0x1.c0bab600000000000000p+99:0x00c62c0bab60000000) (INEXACT ) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.00000000000000000000p+1:0xc0000000) - to single: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) (OK) - to int32: -2 (OK) - to int64: -2 (OK) - to uint32: -2 (OK) - to uint64: -2 (OK) -from single: f32(-0x1.00000000000000000000p+0:0xbf800000) - to single: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) (OK) - to int32: -1 (OK) - to int64: -1 (OK) - to uint32: -1 (OK) - to uint64: -1 (OK) -from single: f32(-0x1.00000000000000000000p-149:0x80000001) - to single: f64(-0x1.00000000000000000000p-149:0x00b6a0000000000000) (UNDERFLOW INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(-0x1.00000000000000000000p-126:0x80800000) - to single: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) (OK) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x0.00000000000000000000p+0:0000000000) - to single: f64(0x0.00000000000000000000p+0:00000000000000000000) (OK) - to int32: 0 (OK) - to int64: 0 (OK) - to uint32: 0 (OK) - to uint64: 0 (OK) -from single: f32(0x1.00000000000000000000p-126:0x00800000) - to single: f64(0x1.00000000000000000000p-126:0x003810000000000000) (OK) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.00000000000000000000p-25:0x33000000) - to single: f64(0x1.00000000000000000000p-25:0x003e60000000000000) (INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) - to single: f64(0x1.ffffe600000000000000p-25:0x003e6ffffe60000000) (INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) - to single: f64(0x1.ff801a00000000000000p-15:0x003f0ff801a0000000) (INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.00000c00000000000000p-14:0x38800006) - to single: f64(0x1.00000c00000000000000p-14:0x003f100000c0000000) (INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.00000000000000000000p+0:0x3f800000) - to single: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) (OK) - to int32: 1 (OK) - to int64: 1 (OK) - to uint32: 1 (OK) - to uint64: 1 (OK) -from single: f32(0x1.00400000000000000000p+0:0x3f802000) - to single: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) (OK) - to int32: 1 (INEXACT ) - to int64: 1 (INEXACT ) - to uint32: 1 (INEXACT ) - to uint64: 1 (INEXACT ) -from single: f32(0x0.00000000000000000000p+0:0000000000) - to single: f64(0x0.00000000000000000000p+0:00000000000000000000) (UNDERFLOW INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x0.00000000000000000000p+0:0000000000) - to single: f64(0x0.00000000000000000000p+0:00000000000000000000) (UNDERFLOW INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x0.00000000000000000000p+0:0000000000) - to single: f64(0x0.00000000000000000000p+0:00000000000000000000) (UNDERFLOW INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.00000000000000000000p+0:0x3f800000) - to single: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) (OK) - to int32: 1 (OK) - to int64: 1 (OK) - to uint32: 1 (OK) - to uint64: 1 (OK) -from single: f32(0x1.00000000000000000000p+1:0x40000000) - to single: f64(0x1.00000000000000000000p+1:0x004000000000000000) (OK) - to int32: 2 (OK) - to int64: 2 (OK) - to uint32: 2 (OK) - to uint64: 2 (OK) -from single: f32(0x1.5bf0a800000000000000p+1:0x402df854) - to single: f64(0x1.5bf0a800000000000000p+1:0x004005bf0a80000000) (INEXACT ) - to int32: 2 (INEXACT ) - to int64: 2 (INEXACT ) - to uint32: 2 (INEXACT ) - to uint64: 2 (INEXACT ) -from single: f32(0x1.921fb400000000000000p+1:0x40490fda) - to single: f64(0x1.921fb400000000000000p+1:0x00400921fb40000000) (INEXACT ) - to int32: 3 (INEXACT ) - to int64: 3 (INEXACT ) - to uint32: 3 (INEXACT ) - to uint64: 3 (INEXACT ) -from single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) - to single: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) (OK) - to int32: 65503 (OK) - to int64: 65503 (OK) - to uint32: 65503 (OK) - to uint64: 65503 (OK) -from single: f32(0x1.ffc00000000000000000p+15:0x477fe000) - to single: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) (OK) - to int32: 65504 (OK) - to int64: 65504 (OK) - to uint32: 65504 (OK) - to uint64: 65504 (OK) -from single: f32(0x1.ffc20000000000000000p+15:0x477fe100) - to single: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) (OK) - to int32: 65505 (OK) - to int64: 65505 (OK) - to uint32: 65505 (OK) - to uint64: 65505 (OK) -from single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) - to single: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) (OK) - to int32: 131007 (OK) - to int64: 131007 (OK) - to uint32: 131007 (OK) - to uint64: 131007 (OK) -from single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) - to single: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) (OK) - to int32: 131008 (OK) - to int64: 131008 (OK) - to uint32: 131008 (OK) - to uint64: 131008 (OK) -from single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) - to single: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) (OK) - to int32: 131009 (OK) - to int64: 131009 (OK) - to uint32: 131009 (OK) - to uint64: 131009 (OK) -from single: f32(0x1.fffffe00000000000000p+30:0x4effffff) - to single: f64(0x1.fffffe00000000000000p+30:0x0041dfffffe0000000) (INEXACT ) - to int32: 2147483647 (OK) - to int64: 2147483647 (OK) - to uint32: 2147483647 (OK) - to uint64: 2147483647 (OK) -from single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) - to single: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: 0 (INEXACT INVALID) -from single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) - to single: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: 0 (INEXACT INVALID) -from single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) - to single: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) (OVERFLOW INEXACT ) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: 0 (INEXACT INVALID) -from single: f32(inf:0x7f800000) - to single: f64(inf:0x007ff0000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: 0 (INVALID) -from single: f32(nan:0x7fc00000) - to single: f64(nan:0x007ff8000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(nan:0x7fc00000) - to single: f64(nan:0x007ff8000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(nan:0x7fe00000) - to single: f64(nan:0x007ffc000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -### Rounding to zero -from single: f32(nan:0x7fe00000) - to single: f64(nan:0x007ffc000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-nan:0xffc00000) - to single: f64(-nan:0x00fff8000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-inf:0xff800000) - to single: f64(-inf:0x00fff0000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) - to single: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OVERFLOW INEXACT ) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) - to single: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) - to single: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.1874b000000000000000p+103:0xf30c3a58) - to single: f64(-0x1.1874b000000000000000p+103:0x00c661874b00000000) (INEXACT ) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.c0bab400000000000000p+99:0xf1605d5a) - to single: f64(-0x1.c0bab400000000000000p+99:0x00c62c0bab40000000) (INEXACT ) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(-0x1.00000000000000000000p+1:0xc0000000) - to single: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) (OK) - to int32: -2 (OK) - to int64: -2 (OK) - to uint32: -2 (OK) - to uint64: -2 (OK) -from single: f32(-0x1.00000000000000000000p+0:0xbf800000) - to single: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) (OK) - to int32: -1 (OK) - to int64: -1 (OK) - to uint32: -1 (OK) - to uint64: -1 (OK) -from single: f32(-0x0.00000000000000000000p+0:0x80000000) - to single: f64(-0x0.00000000000000000000p+0:0x008000000000000000) (UNDERFLOW INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(-0x1.00000000000000000000p-126:0x80800000) - to single: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) (OK) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x0.00000000000000000000p+0:0000000000) - to single: f64(0x0.00000000000000000000p+0:00000000000000000000) (OK) - to int32: 0 (OK) - to int64: 0 (OK) - to uint32: 0 (OK) - to uint64: 0 (OK) -from single: f32(0x1.00000000000000000000p-126:0x00800000) - to single: f64(0x1.00000000000000000000p-126:0x003810000000000000) (OK) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.00000000000000000000p-25:0x33000000) - to single: f64(0x1.00000000000000000000p-25:0x003e60000000000000) (INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) - to single: f64(0x1.ffffe600000000000000p-25:0x003e6ffffe60000000) (INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) - to single: f64(0x1.ff801a00000000000000p-15:0x003f0ff801a0000000) (INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.00000c00000000000000p-14:0x38800006) - to single: f64(0x1.00000c00000000000000p-14:0x003f100000c0000000) (INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.00000000000000000000p+0:0x3f800000) - to single: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) (OK) - to int32: 1 (OK) - to int64: 1 (OK) - to uint32: 1 (OK) - to uint64: 1 (OK) -from single: f32(0x1.00400000000000000000p+0:0x3f802000) - to single: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) (OK) - to int32: 1 (INEXACT ) - to int64: 1 (INEXACT ) - to uint32: 1 (INEXACT ) - to uint64: 1 (INEXACT ) -from single: f32(0x0.00000000000000000000p+0:0000000000) - to single: f64(0x0.00000000000000000000p+0:00000000000000000000) (UNDERFLOW INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x0.00000000000000000000p+0:0000000000) - to single: f64(0x0.00000000000000000000p+0:00000000000000000000) (UNDERFLOW INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x0.00000000000000000000p+0:0000000000) - to single: f64(0x0.00000000000000000000p+0:00000000000000000000) (UNDERFLOW INEXACT ) - to int32: 0 (INEXACT ) - to int64: 0 (INEXACT ) - to uint32: 0 (INEXACT ) - to uint64: 0 (INEXACT ) -from single: f32(0x1.00000000000000000000p+0:0x3f800000) - to single: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) (OK) - to int32: 1 (OK) - to int64: 1 (OK) - to uint32: 1 (OK) - to uint64: 1 (OK) -from single: f32(0x1.00000000000000000000p+1:0x40000000) - to single: f64(0x1.00000000000000000000p+1:0x004000000000000000) (OK) - to int32: 2 (OK) - to int64: 2 (OK) - to uint32: 2 (OK) - to uint64: 2 (OK) -from single: f32(0x1.5bf0a800000000000000p+1:0x402df854) - to single: f64(0x1.5bf0a800000000000000p+1:0x004005bf0a80000000) (INEXACT ) - to int32: 2 (INEXACT ) - to int64: 2 (INEXACT ) - to uint32: 2 (INEXACT ) - to uint64: 2 (INEXACT ) -from single: f32(0x1.921fb400000000000000p+1:0x40490fda) - to single: f64(0x1.921fb400000000000000p+1:0x00400921fb40000000) (INEXACT ) - to int32: 3 (INEXACT ) - to int64: 3 (INEXACT ) - to uint32: 3 (INEXACT ) - to uint64: 3 (INEXACT ) -from single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) - to single: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) (OK) - to int32: 65503 (OK) - to int64: 65503 (OK) - to uint32: 65503 (OK) - to uint64: 65503 (OK) -from single: f32(0x1.ffc00000000000000000p+15:0x477fe000) - to single: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) (OK) - to int32: 65504 (OK) - to int64: 65504 (OK) - to uint32: 65504 (OK) - to uint64: 65504 (OK) -from single: f32(0x1.ffc20000000000000000p+15:0x477fe100) - to single: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) (OK) - to int32: 65505 (OK) - to int64: 65505 (OK) - to uint32: 65505 (OK) - to uint64: 65505 (OK) -from single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) - to single: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) (OK) - to int32: 131007 (OK) - to int64: 131007 (OK) - to uint32: 131007 (OK) - to uint64: 131007 (OK) -from single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) - to single: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) (OK) - to int32: 131008 (OK) - to int64: 131008 (OK) - to uint32: 131008 (OK) - to uint64: 131008 (OK) -from single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) - to single: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) (OK) - to int32: 131009 (OK) - to int64: 131009 (OK) - to uint32: 131009 (OK) - to uint64: 131009 (OK) -from single: f32(0x1.fffffe00000000000000p+30:0x4effffff) - to single: f64(0x1.fffffe00000000000000p+30:0x0041dfffffe0000000) (INEXACT ) - to int32: 2147483647 (OK) - to int64: 2147483647 (OK) - to uint32: 2147483647 (OK) - to uint64: 2147483647 (OK) -from single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) - to single: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: 0 (INEXACT INVALID) -from single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) - to single: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: 0 (INEXACT INVALID) -from single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) - to single: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) (OVERFLOW INEXACT ) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: 0 (INEXACT INVALID) -from single: f32(inf:0x7f800000) - to single: f64(inf:0x007ff0000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: 0 (INVALID) -from single: f32(nan:0x7fc00000) - to single: f64(nan:0x007ff8000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(nan:0x7fc00000) - to single: f64(nan:0x007ff8000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID) -from single: f32(nan:0x7fe00000) - to single: f64(nan:0x007ffc000000000000) (OK) - to int32: -2147483648 (INVALID) - to int64: -9223372036854775808 (INVALID) - to uint32: 0 (INVALID) - to uint64: -9223372036854775808 (INVALID)
tests/tcg/i386/float_convd.ref new file +988 -0
988 lines not on this page · raw message
tests/tcg/i386/float_madds.ref new file +768 -0
768 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v8 55/105 tests/tcg/i386: user tests
In reply to Pierrick BouvierOriginal test-i386-fprem was comparing qemu output and bare metal output. However, those files have differences for now, so remove this part.
--- tests/tcg/i386/Makefile.target | 102 ------------------------------- tests/tcg/i386/meson.build | 56 +++++++++++++++++ tests/tcg/meson.build | 1 + tests/tcg/x86_64/Makefile.target | 10 +-- 4 files changed, 62 insertions(+), 107 deletions(-) delete mode 100644 tests/tcg/i386/Makefile.target create mode 100644 tests/tcg/i386/meson.build
tests/tcg/i386/Makefile.target deleted +0 -102
@@ -1,102 +0,0 @@ -# i386 cross compile notes - -I386_SRC=$(SRC_PATH)/tests/tcg/i386 - -# Set search path for all sources -VPATH += $(I386_SRC) - -config-cc.mak: Makefile - $(quiet-@)( \ - $(call cc-option,-fno-pie, CROSS_CC_HAS_I386_NOPIE)) 3> config-cc.mak - --include config-cc.mak - -I386_SRCS=$(notdir $(wildcard $(I386_SRC)/*.c)) -ALL_X86_TESTS=$(I386_SRCS:.c=) -SKIP_I386_TESTS=test-i386-ssse3 test-avx test-3dnow test-mmx test-flags -X86_64_TESTS:=$(filter test-i386-adcox test-i386-bmi2 $(SKIP_I386_TESTS), $(ALL_X86_TESTS)) - -test-i386-sse-exceptions: CFLAGS += -msse4.1 -mfpmath=sse -run-test-i386-sse-exceptions: QEMU_OPTS += -cpu max - -test-i386-pcmpistri: CFLAGS += -msse4.2 -run-test-i386-pcmpistri: QEMU_OPTS += -cpu max - -test-i386-bmi2: CFLAGS=-O2 -fwrapv -run-test-i386-bmi2: QEMU_OPTS += -cpu max - -test-i386-adcox: CFLAGS=-O2 -run-test-i386-adcox: QEMU_OPTS += -cpu max - -test-aes: CFLAGS += -O -msse2 -maes -test-aes: test-aes-main.c.inc -run-test-aes: QEMU_OPTS += -cpu max - -# -# hello-i386 is a barebones app -# -hello-i386: CFLAGS+=-ffreestanding -fno-stack-protector -hello-i386: LDFLAGS+=-nostdlib - -# test-386 includes a couple of additional objects that need to be -# linked together, we also need a no-pie capable compiler due to the -# non-pic calls into 16-bit mode -ifneq ($(CROSS_CC_HAS_I386_NOPIE),) -test-i386: CFLAGS += -fno-pie - -test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S test-i386.h test-i386-shift.h test-i386-muldiv.h - $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_CFLAGS) -o $@ \ - $(<D)/test-i386.c $(<D)/test-i386-code16.S $(<D)/test-i386-vm86.S -lm -else -test-i386: - $(call skip-test, "BUILD of $@", "missing -no-pie compiler support") -run-test-i386: - $(call skip-test, "RUN of test-i386", "not built") -endif - -ifeq ($(SPEED), slow) - -test-i386-fprem.ref: test-i386-fprem - $(call quiet-command, ./$< > $@,"GENREF","generating $@") - -run-test-i386-fprem: TIMEOUT=60 -run-test-i386-fprem: test-i386-fprem test-i386-fprem.ref - $(call run-test,test-i386-fprem, $(QEMU) $<) - $(call diff-out,test-i386-fprem, test-i386-fprem.ref) -else -SKIP_I386_TESTS+=test-i386-fprem -endif - -# Update TESTS -I386_TESTS:=$(filter-out $(SKIP_I386_TESTS), $(ALL_X86_TESTS)) -TESTS=$(MULTIARCH_TESTS) $(I386_TESTS) - -sha512-sse: CFLAGS=-msse4.1 -O3 -sha512-sse: sha512.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) - -run-sha512-sse: QEMU_OPTS+=-cpu max - -TESTS+=sha512-sse - -CLEANFILES += test-avx.h test-mmx.h test-3dnow.h -test-3dnow.h: test-mmx.py x86.csv - $(PYTHON) $(I386_SRC)/test-mmx.py $(I386_SRC)/x86.csv $@ 3DNOW - -test-mmx.h: test-mmx.py x86.csv - $(PYTHON) $(I386_SRC)/test-mmx.py $(I386_SRC)/x86.csv $@ MMX SSE SSE2 SSE3 SSSE3 - -test-avx.h: test-avx.py x86.csv - $(PYTHON) $(I386_SRC)/test-avx.py $(I386_SRC)/x86.csv $@ - -test-3dnow: CFLAGS += -masm=intel -O -I. -run-test-3dnow: QEMU_OPTS += -cpu max -test-3dnow: test-3dnow.h - -test-mmx: CFLAGS += -masm=intel -O -I. -run-test-mmx: QEMU_OPTS += -cpu max -test-mmx: test-mmx.h - -test-avx: CFLAGS += -mavx -masm=intel -O -I. -run-test-avx: QEMU_OPTS += -cpu max -test-avx: test-avx.h
tests/tcg/i386/meson.build new file +56 -0
56 lines not on this page · raw message
tests/tcg/meson.build +1 -0
@@ -142,6 +142,7 @@ subdir('alpha') subdir('arm') subdir('hexagon') subdir('hppa') +subdir('i386') image_targets = {} exe_targets = []
tests/tcg/x86_64/Makefile.target +5 -5
@@ -6,7 +6,7 @@ # $(SRC_PATH)/tests/tcg/i386/ # -include $(SRC_PATH)/tests/tcg/i386/Makefile.target +#include $(SRC_PATH)/tests/tcg/i386/Makefile.target X86_64_TESTS += test-2413
@@ -20,7 +20,7 @@ X86_64_TESTS += test-1648 X86_64_TESTS += test-2175 X86_64_TESTS += cross-modifying-code X86_64_TESTS += fma -TESTS=$(MULTIARCH_TESTS) $(X86_64_TESTS) test-x86_64 +TESTS=$(MULTIARCH_TESTS) $(X86_64_TESTS) #test-x86_64 else TESTS=$(MULTIARCH_TESTS) endif
@@ -33,9 +33,9 @@ run-plugin-test-i386-ssse3-%: QEMU_OPTS += -cpu max cross-modifying-code: CFLAGS+=-pthread cross-modifying-code: LDFLAGS+=-pthread -test-x86_64: LDFLAGS+=-lm -lc -test-x86_64: test-i386.c test-i386.h test-i386-shift.h test-i386-muldiv.h - $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) +#test-x86_64: LDFLAGS+=-lm -lc +#test-x86_64: test-i386.c test-i386.h test-i386-shift.h test-i386-muldiv.h +# $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) %: $(SRC_PATH)/tests/tcg/x86_64/%.c $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
Signature · 1 line
2.43.0
PATCH v8 56/105 tests/tcg/i386: system tests
In reply to Pierrick Bouvier--- tests/tcg/i386/Makefile.softmmu-target | 37 ------------------- tests/tcg/i386/meson.build | 2 ++ tests/tcg/i386/system/meson.build | 49 ++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 37 deletions(-) delete mode 100644 tests/tcg/i386/Makefile.softmmu-target create mode 100644 tests/tcg/i386/system/meson.build
tests/tcg/i386/Makefile.softmmu-target deleted +0 -37
@@ -1,37 +0,0 @@ -# -# x86 system tests -# -# This currently builds only for i386. The common C code is built -# with standard compiler flags however so we can support both by -# adding additional boot files for x86_64. -# - -I386_SYSTEM_SRC=$(SRC_PATH)/tests/tcg/i386/system -X64_SYSTEM_SRC=$(SRC_PATH)/tests/tcg/x86_64/system - -# These objects provide the basic boot code and helper functions for all tests -CRT_OBJS=boot.o - -CRT_PATH=$(I386_SYSTEM_SRC) -LINK_SCRIPT=$(I386_SYSTEM_SRC)/kernel.ld -LDFLAGS=-Wl,-T$(LINK_SCRIPT) -Wl,-melf_i386 -CFLAGS+=-nostdlib -ggdb -O0 $(MINILIB_INC) -LDFLAGS+=-static -nostdlib $(CRT_OBJS) $(MINILIB_OBJS) -lgcc - -TESTS+=$(MULTIARCH_TESTS) -EXTRA_RUNS+=$(MULTIARCH_RUNS) - -# building head blobs -.PRECIOUS: $(CRT_OBJS) - -%.o: $(CRT_PATH)/%.S - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -Wa,--noexecstack -c $< -o $@ - -# Build and link the tests -%: %.c $(LINK_SCRIPT) $(CRT_OBJS) $(MINILIB_OBJS) - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) - -memory: CFLAGS+=-DCHECK_UNALIGNED=1 - -# Running -QEMU_OPTS+=-device isa-debugcon,chardev=output -device isa-debug-exit,iobase=0xf4,iosize=0x4 -kernel
tests/tcg/i386/meson.build +2 -0
@@ -2,6 +2,8 @@ cc = 'i686-linux-gnu-gcc' cc_dockerfile = 'debian-i686-cross' cc_docker_host_arch = ['x86_64'] +subdir('system') + tests = [] tests += tcg_tests['multiarch-linux-user']['tests']
tests/tcg/i386/system/meson.build new file +49 -0
49 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v8 57/105 tests/tcg/loongarch64: user tests
In reply to Pierrick Bouvier--- tests/tcg/loongarch64/Makefile.target | 20 ------------------ tests/tcg/loongarch64/meson.build | 30 +++++++++++++++++++++++++++ tests/tcg/meson.build | 1 + 3 files changed, 31 insertions(+), 20 deletions(-) delete mode 100644 tests/tcg/loongarch64/Makefile.target create mode 100644 tests/tcg/loongarch64/meson.build
tests/tcg/loongarch64/Makefile.target deleted +0 -20
@@ -1,20 +0,0 @@ -# -*- Mode: makefile -*- -# -# LoongArch64 specific tweaks - -# Loongarch64 doesn't support gdb, so skip the EXTRA_RUNS -EXTRA_RUNS = - -LOONGARCH64_SRC=$(SRC_PATH)/tests/tcg/loongarch64 -VPATH += $(LOONGARCH64_SRC) - -LDFLAGS+=-lm - -LOONGARCH64_TESTS = test_bit -LOONGARCH64_TESTS += test_div -LOONGARCH64_TESTS += test_fclass -LOONGARCH64_TESTS += test_fpcom -LOONGARCH64_TESTS += test_pcadd -LOONGARCH64_TESTS += test_fcsr - -TESTS += $(LOONGARCH64_TESTS)
tests/tcg/loongarch64/meson.build new file +30 -0
@@ -0,0 +1,30 @@ +cc = 'loongarch64-unknown-linux-gnu-gcc' +cc_dockerfile = 'debian-loongarch-cross' +cc_docker_host_arch = ['x86_64'] + +tests = [] + +tests += tcg_tests['multiarch-linux-user']['tests'] + +tests += { + 'test_bit.c': {}, + 'test_fclass.c': {}, + 'test_fcsr.c': {}, + 'test_fpcom.c': {}, + 'test_div.c': {}, + 'test_pcadd.c': {}, +} + +if 'qemu-loongarch64' in emulators + tcg_tests += { + 'loongarch64-linux-user': { + 'cc': cc, + 'cc_dockerfile': cc_dockerfile, + 'cc_docker_host_arch': cc_docker_host_arch, + 'folder': 'loongarch64', + 'gdb_arch': 'loongarch64', + 'qemu': emulators['qemu-loongarch64'], + 'tests': tests, + } + } +endif
tests/tcg/meson.build +1 -0
@@ -143,6 +143,7 @@ subdir('arm') subdir('hexagon') subdir('hppa') subdir('i386') +subdir('loongarch64') image_targets = {} exe_targets = []
Signature · 1 line
2.43.0
PATCH v8 58/105 tests/tcg/loongarch64: system tests
In reply to Pierrick Bouvier--- tests/tcg/loongarch64/Makefile.softmmu-target | 33 ------------- tests/tcg/loongarch64/meson.build | 2 + tests/tcg/loongarch64/system/meson.build | 48 +++++++++++++++++++ 3 files changed, 50 insertions(+), 33 deletions(-) delete mode 100644 tests/tcg/loongarch64/Makefile.softmmu-target create mode 100644 tests/tcg/loongarch64/system/meson.build
tests/tcg/loongarch64/Makefile.softmmu-target deleted +0 -33
@@ -1,33 +0,0 @@ -# -# Loongarch64 system tests -# - -LOONGARCH64_SYSTEM_SRC=$(SRC_PATH)/tests/tcg/loongarch64/system -VPATH+=$(LOONGARCH64_SYSTEM_SRC) - -# These objects provide the basic boot code and helper functions for all tests -CRT_OBJS=boot.o - -LOONGARCH64_TEST_SRCS=$(wildcard $(LOONGARCH64_SYSTEM_SRC)/*.c) -LOONGARCH64_TESTS = $(patsubst $(LOONGARCH64_SYSTEM_SRC)/%.c, %, $(LOONGARCH64_TEST_SRCS)) - -CRT_PATH=$(LOONGARCH64_SYSTEM_SRC) -LINK_SCRIPT=$(LOONGARCH64_SYSTEM_SRC)/kernel.ld -LDFLAGS=-Wl,-T$(LINK_SCRIPT) -TESTS+=$(LOONGARCH64_TESTS) $(MULTIARCH_TESTS) -CFLAGS+=-nostdlib -g -O1 -march=loongarch64 -mabi=lp64d $(MINILIB_INC) -LDFLAGS+=-static -nostdlib $(CRT_OBJS) $(MINILIB_OBJS) -lgcc -Wl,--no-warn-rwx-segments - -# building head blobs -.PRECIOUS: $(CRT_OBJS) - -%.o: $(CRT_PATH)/%.S - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -x assembler-with-cpp -Wa,--noexecstack -c $< -o $@ - -# Build and link the tests -%: %.c $(LINK_SCRIPT) $(CRT_OBJS) $(MINILIB_OBJS) - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) - -memory: CFLAGS+=-DCHECK_UNALIGNED=0 -# Running -QEMU_OPTS+=-serial chardev:output -kernel
tests/tcg/loongarch64/meson.build +2 -0
@@ -2,6 +2,8 @@ cc = 'loongarch64-unknown-linux-gnu-gcc' cc_dockerfile = 'debian-loongarch-cross' cc_docker_host_arch = ['x86_64'] +subdir('system') + tests = [] tests += tcg_tests['multiarch-linux-user']['tests']
tests/tcg/loongarch64/system/meson.build new file +48 -0
48 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v8 59/105 tests/tcg/m68k: add float reference files
In reply to Pierrick BouvierMakefiles were skipping the output compare when such files were not available. This results in arch being very inconsistent with some providing all files, some providing no files, and some providing some files. There was even one case of a misnamed file that result in a skipped check.
For consistency, the current series adds all missing reference files for all arch, and make their presence mandatory
--- tests/tcg/m68k/float_convd.ref | 988 +++++++++++++++++++++++++++++++++ tests/tcg/m68k/float_convs.ref | 748 +++++++++++++++++++++++++ tests/tcg/m68k/float_madds.ref | 768 +++++++++++++++++++++++++ 3 files changed, 2504 insertions(+) create mode 100644 tests/tcg/m68k/float_convd.ref create mode 100644 tests/tcg/m68k/float_convs.ref create mode 100644 tests/tcg/m68k/float_madds.ref
tests/tcg/m68k/float_convd.ref new file +988 -0
@@ -0,0 +1,988 @@ +### Rounding to nearest +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fffffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-nan:0x00ffffffffffffffff) + to single: f32(-nan:0xffffffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: -2147483648 (INVALID) + to int64: 1 (INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-inf:0xff800000) (OVERFLOW INEXACT ) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INEXACT INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INEXACT INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INEXACT INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) (INEXACT ) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) (INEXACT ) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (INEXACT ) + to uint32: -2 (OK) + to uint64: 4294967294 (INEXACT ) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (INEXACT ) + to uint32: -1 (OK) + to uint64: 4294967295 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (INEXACT ) + to uint32: 1 (OK) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (INEXACT ) + to uint32: 1 (OK) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (INEXACT ) + to uint32: 2 (OK) + to uint64: 2 (INEXACT ) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb600000000000000p+1:0x40490fdb) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (INEXACT ) + to uint32: 65503 (OK) + to uint64: 65503 (INEXACT ) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (INEXACT ) + to uint32: 65504 (OK) + to uint64: 65504 (INEXACT ) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (INEXACT ) + to uint32: 65505 (OK) + to uint64: 65505 (INEXACT ) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (INEXACT ) + to uint32: 131007 (OK) + to uint64: 131007 (INEXACT ) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (INEXACT ) + to uint32: 131008 (OK) + to uint64: 131008 (INEXACT ) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (INEXACT ) + to uint32: 131009 (OK) + to uint64: 131009 (INEXACT ) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.00000000000000000000p+31:0x4f000000) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (INEXACT ) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (INEXACT ) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(inf:0x7f800000) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fffffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(nan:0x007ff8000000000001) + to single: f32(nan:0x7fc00000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fffffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +### Rounding upwards +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fffffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-nan:0x00ffffffffffffffff) + to single: f32(-nan:0xffffffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: -2147483648 (INVALID) + to int64: 1 (INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OVERFLOW INEXACT ) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INEXACT INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INEXACT INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INEXACT INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b000000000000000p+103:0xf30c3a58) (INEXACT ) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab400000000000000p+99:0xf1605d5a) (INEXACT ) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (INEXACT ) + to uint32: -2 (OK) + to uint64: 4294967294 (INEXACT ) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (INEXACT ) + to uint32: -1 (OK) + to uint64: 4294967295 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000200000000000000p-25:0x33000001) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe800000000000000p-25:0x337ffff4) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801c00000000000000p-15:0x387fc00e) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000e00000000000000p-14:0x38800007) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (INEXACT ) + to uint32: 1 (OK) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x1.00000000000000000000p-149:0x00000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x1.00000000000000000000p-149:0x00000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x1.00000000000000000000p-149:0x00000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (INEXACT ) + to uint32: 1 (OK) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (INEXACT ) + to uint32: 2 (OK) + to uint64: 2 (INEXACT ) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0aa00000000000000p+1:0x402df855) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb600000000000000p+1:0x40490fdb) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (INEXACT ) + to uint32: 65503 (OK) + to uint64: 65503 (INEXACT ) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (INEXACT ) + to uint32: 65504 (OK) + to uint64: 65504 (INEXACT ) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (INEXACT ) + to uint32: 65505 (OK) + to uint64: 65505 (INEXACT ) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (INEXACT ) + to uint32: 131007 (OK) + to uint64: 131007 (INEXACT ) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (INEXACT ) + to uint32: 131008 (OK) + to uint64: 131008 (INEXACT ) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (INEXACT ) + to uint32: 131009 (OK) + to uint64: 131009 (INEXACT ) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.00000000000000000000p+31:0x4f000000) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (INEXACT ) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (INEXACT ) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(inf:0x7f800000) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fffffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(nan:0x007ff8000000000001) + to single: f32(nan:0x7fc00000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fffffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +### Rounding downwards +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fffffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-nan:0x00ffffffffffffffff) + to single: f32(-nan:0xffffffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: -2147483648 (INVALID) + to int64: 1 (INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-inf:0xff800000) (OVERFLOW INEXACT ) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INEXACT INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INEXACT INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INEXACT INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) (INEXACT ) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) (INEXACT ) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (INEXACT ) + to uint32: -2 (OK) + to uint64: 4294967294 (INEXACT ) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (INEXACT ) + to uint32: -1 (OK) + to uint64: 4294967295 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x1.00000000000000000000p-149:0x80000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (INEXACT ) + to uint32: 1 (OK) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (INEXACT ) + to uint32: 1 (OK) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (INEXACT ) + to uint32: 2 (OK) + to uint64: 2 (INEXACT ) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb400000000000000p+1:0x40490fda) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (INEXACT ) + to uint32: 65503 (OK) + to uint64: 65503 (INEXACT ) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (INEXACT ) + to uint32: 65504 (OK) + to uint64: 65504 (INEXACT ) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (INEXACT ) + to uint32: 65505 (OK) + to uint64: 65505 (INEXACT ) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (INEXACT ) + to uint32: 131007 (OK) + to uint64: 131007 (INEXACT ) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (INEXACT ) + to uint32: 131008 (OK) + to uint64: 131008 (INEXACT ) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (INEXACT ) + to uint32: 131009 (OK) + to uint64: 131009 (INEXACT ) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.fffffe00000000000000p+30:0x4effffff) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (INEXACT ) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (INEXACT ) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fffffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(nan:0x007ff8000000000001) + to single: f32(nan:0x7fc00000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fffffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +### Rounding to zero +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fffffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-nan:0x00ffffffffffffffff) + to single: f32(-nan:0xffffffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: -2147483648 (INVALID) + to int64: 1 (INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OVERFLOW INEXACT ) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INEXACT INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INEXACT INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INEXACT INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b000000000000000p+103:0xf30c3a58) (INEXACT ) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab400000000000000p+99:0xf1605d5a) (INEXACT ) + to int32: -2147483648 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: -2147483648 (INVALID) + to uint64: -9223372034707292160 (INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (INEXACT ) + to uint32: -2 (OK) + to uint64: 4294967294 (INEXACT ) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (INEXACT ) + to uint32: -1 (OK) + to uint64: 4294967295 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (INEXACT ) + to uint32: 1 (OK) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (INEXACT ) + to uint32: 1 (OK) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (INEXACT ) + to uint32: 2 (OK) + to uint64: 2 (INEXACT ) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb400000000000000p+1:0x40490fda) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (INEXACT ) + to uint32: 65503 (OK) + to uint64: 65503 (INEXACT ) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (INEXACT ) + to uint32: 65504 (OK) + to uint64: 65504 (INEXACT ) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (INEXACT ) + to uint32: 65505 (OK) + to uint64: 65505 (INEXACT ) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (INEXACT ) + to uint32: 131007 (OK) + to uint64: 131007 (INEXACT ) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (INEXACT ) + to uint32: 131008 (OK) + to uint64: 131008 (INEXACT ) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (INEXACT ) + to uint32: 131009 (OK) + to uint64: 131009 (INEXACT ) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.fffffe00000000000000p+30:0x4effffff) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (INEXACT ) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (INEXACT ) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fffffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(nan:0x007ff8000000000001) + to single: f32(nan:0x7fc00000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fffffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID)
tests/tcg/m68k/float_convs.ref new file +748 -0
748 lines not on this page · raw message
tests/tcg/m68k/float_madds.ref new file +768 -0
768 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v8 60/105 tests/tcg/m68k: user tests
In reply to Pierrick Bouvier--- tests/tcg/m68k/Makefile.target | 7 ------- tests/tcg/m68k/meson.build | 23 +++++++++++++++++++++++ tests/tcg/meson.build | 1 + 3 files changed, 24 insertions(+), 7 deletions(-) delete mode 100644 tests/tcg/m68k/Makefile.target create mode 100644 tests/tcg/m68k/meson.build
tests/tcg/m68k/Makefile.target deleted +0 -7
@@ -1,7 +0,0 @@ -# -*- Mode: makefile -*- -# -# m68k specific tweaks - specifically masking out broken tests -# - -VPATH += $(SRC_PATH)/tests/tcg/m68k -TESTS += trap denormal
tests/tcg/m68k/meson.build new file +23 -0
@@ -0,0 +1,23 @@ +tests = [] + +tests += tcg_tests['multiarch-linux-user']['tests'] + +tests += { + 'denormal.c': {}, + 'trap.c': {}, +} + +if 'qemu-m68k' in emulators + tcg_tests += { + 'm68k-linux-user': { + 'cc': 'm68k-linux-gnu-gcc', + 'cc_dockerfile': 'debian-all-test-cross', + 'cc_docker_host_arch': ['x86_64'], + 'cc_feat_cflags': cc_feat_cflags, + 'folder': 'm68k', + 'gdb_arch': 'm68k', + 'qemu': emulators['qemu-m68k'], + 'tests': tests, + } + } +endif
tests/tcg/meson.build +1 -0
@@ -144,6 +144,7 @@ subdir('hexagon') subdir('hppa') subdir('i386') subdir('loongarch64') +subdir('m68k') image_targets = {} exe_targets = []
Signature · 1 line
2.43.0
PATCH v8 61/105 scripts/probe-gdb-support.py: add mapping for mips architecture
In reply to Pierrick Bouvier--- scripts/probe-gdb-support.py | 1 + 1 file changed, 1 insertion(+)
scripts/probe-gdb-support.py +1 -0
@@ -35,6 +35,7 @@ "Loongarch64" : ["loongarch64"], "m68k" : ["m68k"], "MicroBlaze" : ["microblaze"], + "mips" : ["mips", "mipsel"], "mips:isa64" : ["mips64", "mips64el"], "or1k" : ["or1k"], "powerpc:common" : ["ppc"],
Signature · 1 line
2.43.0
PATCH v8 62/105 tests/tcg/mips: add float reference files
In reply to Pierrick BouvierMakefiles were skipping the output compare when such files were not available. This results in arch being very inconsistent with some providing all files, some providing no files, and some providing some files. There was even one case of a misnamed file that result in a skipped check.
For consistency, the current series adds all missing reference files for all arch, and make their presence mandatory
--- tests/tcg/mips/float_convd.ref | 988 +++++++++++++++++++++++++++++++++ tests/tcg/mips/float_convs.ref | 748 +++++++++++++++++++++++++ tests/tcg/mips/float_madds.ref | 768 +++++++++++++++++++++++++ 3 files changed, 2504 insertions(+) create mode 100644 tests/tcg/mips/float_convd.ref create mode 100644 tests/tcg/mips/float_convs.ref create mode 100644 tests/tcg/mips/float_madds.ref
tests/tcg/mips/float_convd.ref new file +988 -0
@@ -0,0 +1,988 @@ +### Rounding to nearest +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-nan:0x00fff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 1 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-inf:0xff800000) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (INEXACT ) + to uint32: -2 (OK) + to uint64: 4294967294 (INEXACT ) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (INEXACT ) + to uint32: -1 (OK) + to uint64: 4294967295 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (INEXACT ) + to uint32: 1 (OK) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (UNDERFLOW INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (UNDERFLOW INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (UNDERFLOW INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (UNDERFLOW INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (INEXACT ) + to uint32: 1 (OK) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (INEXACT ) + to uint32: 2 (OK) + to uint64: 2 (INEXACT ) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb600000000000000p+1:0x40490fdb) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (INEXACT ) + to uint32: 65503 (OK) + to uint64: 65503 (INEXACT ) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (INEXACT ) + to uint32: 65504 (OK) + to uint64: 65504 (INEXACT ) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (INEXACT ) + to uint32: 65505 (OK) + to uint64: 65505 (INEXACT ) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (INEXACT ) + to uint32: 131007 (OK) + to uint64: 131007 (INEXACT ) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (INEXACT ) + to uint32: 131008 (OK) + to uint64: 131008 (INEXACT ) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (INEXACT ) + to uint32: 131009 (OK) + to uint64: 131009 (INEXACT ) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.00000000000000000000p+31:0x4f000000) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (INEXACT ) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (INEXACT ) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(inf:0x7f800000) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007ff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +### Rounding upwards +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-nan:0x00fff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 1 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b000000000000000p+103:0xf30c3a58) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab400000000000000p+99:0xf1605d5a) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (INEXACT ) + to uint32: -2 (OK) + to uint64: 4294967294 (INEXACT ) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (INEXACT ) + to uint32: -1 (OK) + to uint64: 4294967295 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000200000000000000p-25:0x33000001) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe800000000000000p-25:0x337ffff4) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801c00000000000000p-15:0x387fc00e) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000e00000000000000p-14:0x38800007) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (INEXACT ) + to uint32: 1 (OK) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x1.00000000000000000000p-149:0x00000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x1.00000000000000000000p-149:0x00000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (UNDERFLOW INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (UNDERFLOW INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x1.00000000000000000000p-149:0x00000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (UNDERFLOW INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (UNDERFLOW INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (INEXACT ) + to uint32: 1 (OK) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (INEXACT ) + to uint32: 2 (OK) + to uint64: 2 (INEXACT ) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0aa00000000000000p+1:0x402df855) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb600000000000000p+1:0x40490fdb) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (INEXACT ) + to uint32: 65503 (OK) + to uint64: 65503 (INEXACT ) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (INEXACT ) + to uint32: 65504 (OK) + to uint64: 65504 (INEXACT ) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (INEXACT ) + to uint32: 65505 (OK) + to uint64: 65505 (INEXACT ) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (INEXACT ) + to uint32: 131007 (OK) + to uint64: 131007 (INEXACT ) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (INEXACT ) + to uint32: 131008 (OK) + to uint64: 131008 (INEXACT ) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (INEXACT ) + to uint32: 131009 (OK) + to uint64: 131009 (INEXACT ) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.00000000000000000000p+31:0x4f000000) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (INEXACT ) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (INEXACT ) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(inf:0x7f800000) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007ff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +### Rounding downwards +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-nan:0x00fff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 1 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-inf:0xff800000) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (OVERFLOW INEXACT INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (INEXACT ) + to uint32: -2 (OK) + to uint64: 4294967294 (INEXACT ) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (INEXACT ) + to uint32: -1 (OK) + to uint64: 4294967295 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x1.00000000000000000000p-149:0x80000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (INEXACT ) + to uint32: 1 (OK) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (UNDERFLOW INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (UNDERFLOW INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (UNDERFLOW INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (UNDERFLOW INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (INEXACT ) + to uint32: 1 (OK) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (INEXACT ) + to uint32: 2 (OK) + to uint64: 2 (INEXACT ) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb400000000000000p+1:0x40490fda) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (INEXACT ) + to uint32: 65503 (OK) + to uint64: 65503 (INEXACT ) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (INEXACT ) + to uint32: 65504 (OK) + to uint64: 65504 (INEXACT ) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (INEXACT ) + to uint32: 65505 (OK) + to uint64: 65505 (INEXACT ) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (INEXACT ) + to uint32: 131007 (OK) + to uint64: 131007 (INEXACT ) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (INEXACT ) + to uint32: 131008 (OK) + to uint64: 131008 (INEXACT ) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (INEXACT ) + to uint32: 131009 (OK) + to uint64: 131009 (INEXACT ) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.fffffe00000000000000p+30:0x4effffff) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (INEXACT ) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (INEXACT ) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007ff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +### Rounding to zero +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-nan:0x00fff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 1 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b000000000000000p+103:0xf30c3a58) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab400000000000000p+99:0xf1605d5a) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 1 (INEXACT INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INEXACT INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (INEXACT ) + to uint32: -2 (OK) + to uint64: 4294967294 (INEXACT ) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (INEXACT ) + to uint32: -1 (OK) + to uint64: 4294967295 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (INEXACT ) + to uint32: 1 (OK) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (UNDERFLOW INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (UNDERFLOW INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (UNDERFLOW INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (UNDERFLOW INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (INEXACT ) + to uint32: 1 (OK) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (INEXACT ) + to uint32: 2 (OK) + to uint64: 2 (INEXACT ) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb400000000000000p+1:0x40490fda) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (INEXACT ) + to uint32: 65503 (OK) + to uint64: 65503 (INEXACT ) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (INEXACT ) + to uint32: 65504 (OK) + to uint64: 65504 (INEXACT ) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (INEXACT ) + to uint32: 65505 (OK) + to uint64: 65505 (INEXACT ) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (INEXACT ) + to uint32: 131007 (OK) + to uint64: 131007 (INEXACT ) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (INEXACT ) + to uint32: 131008 (OK) + to uint64: 131008 (INEXACT ) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (INEXACT ) + to uint32: 131009 (OK) + to uint64: 131009 (INEXACT ) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.fffffe00000000000000p+30:0x4effffff) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (INEXACT ) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (INEXACT ) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: -1 (INEXACT INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: -1 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007ff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372034707292159 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372034707292159 (INVALID)
tests/tcg/mips/float_convs.ref new file +748 -0
748 lines not on this page · raw message
tests/tcg/mips/float_madds.ref new file +768 -0
768 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v8 63/105 test/tcg/mips: user tests
In reply to Pierrick Bouvier--- tests/tcg/meson.build | 1 + tests/tcg/mips/Makefile.target | 19 ------------------- tests/tcg/mips/meson.build | 25 +++++++++++++++++++++++++ 3 files changed, 26 insertions(+), 19 deletions(-) delete mode 100644 tests/tcg/mips/Makefile.target create mode 100644 tests/tcg/mips/meson.build
tests/tcg/meson.build +1 -0
@@ -145,6 +145,7 @@ subdir('hppa') subdir('i386') subdir('loongarch64') subdir('m68k') +subdir('mips') image_targets = {} exe_targets = []
tests/tcg/mips/Makefile.target deleted +0 -19
@@ -1,19 +0,0 @@ -# -*- Mode: makefile -*- -# -# MIPS - included from tests/tcg/Makefile.target -# - -MIPS_SRC=$(SRC_PATH)/tests/tcg/mips - -# Set search path for all sources -VPATH += $(MIPS_SRC) - -# hello-mips is 32 bit only -ifeq ($(findstring 64,$(TARGET_NAME)),) -MIPS_TESTS=hello-mips - -TESTS += $(MIPS_TESTS) - -hello-mips: CFLAGS+=-mno-abicalls -fno-PIC -fno-stack-protector -mabi=32 -hello-mips: LDFLAGS+=-nostdlib -endif
tests/tcg/mips/meson.build new file +25 -0
@@ -0,0 +1,25 @@ +tests = [] + +tests += tcg_tests['multiarch-linux-user']['tests'] + +tests += { + 'hello-mips.c': { + 'cflags': ['-mno-abicalls', '-fno-PIC', '-fno-stack-protector', '-mabi=32', + '-nostdlib'] + } +} + +if 'qemu-mips' in emulators + tcg_tests += { + 'mips-linux-user': { + 'cc': 'mips-linux-gnu-gcc', + 'cc_dockerfile': 'debian-all-test-cross', + 'cc_docker_host_arch': ['aarch64', 'x86_64'], + 'cc_feat_cflags': cc_feat_cflags, + 'folder': 'mips', + 'gdb_arch': 'mips', + 'qemu': emulators['qemu-mips'], + 'tests': tests, + } + } +endif
Signature · 1 line
2.43.0
PATCH v8 64/105 tests/tcg/mips64: add float reference files
In reply to Pierrick BouvierMakefiles were skipping the output compare when such files were not available. This results in arch being very inconsistent with some providing all files, some providing no files, and some providing some files. There was even one case of a misnamed file that result in a skipped check.
For consistency, the current series adds all missing reference files for all arch, and make their presence mandatory
--- tests/tcg/mips64/float_convd.ref | 988 +++++++++++++++++++++++++++++++ tests/tcg/mips64/float_convs.ref | 748 +++++++++++++++++++++++ tests/tcg/mips64/float_madds.ref | 768 ++++++++++++++++++++++++ 3 files changed, 2504 insertions(+) create mode 100644 tests/tcg/mips64/float_convd.ref create mode 100644 tests/tcg/mips64/float_convs.ref create mode 100644 tests/tcg/mips64/float_madds.ref
tests/tcg/mips64/float_convd.ref new file +988 -0
@@ -0,0 +1,988 @@ +### Rounding to nearest +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-nan:0x00fff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-inf:0xff800000) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (OK) + to uint32: -2 (OK) + to uint64: -2 (OK) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb600000000000000p+1:0x40490fdb) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (OK) + to uint32: 65503 (OK) + to uint64: 65503 (OK) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (OK) + to uint32: 65504 (OK) + to uint64: 65504 (OK) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (OK) + to uint32: 65505 (OK) + to uint64: 65505 (OK) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (OK) + to uint32: 131007 (OK) + to uint64: 131007 (OK) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (OK) + to uint32: 131008 (OK) + to uint64: 131008 (OK) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (OK) + to uint32: 131009 (OK) + to uint64: 131009 (OK) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.00000000000000000000p+31:0x4f000000) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (OK) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (OK) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(inf:0x7f800000) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007ff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +### Rounding upwards +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-nan:0x00fff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b000000000000000p+103:0xf30c3a58) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab400000000000000p+99:0xf1605d5a) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (OK) + to uint32: -2 (OK) + to uint64: -2 (OK) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000200000000000000p-25:0x33000001) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe800000000000000p-25:0x337ffff4) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801c00000000000000p-15:0x387fc00e) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000e00000000000000p-14:0x38800007) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x1.00000000000000000000p-149:0x00000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x1.00000000000000000000p-149:0x00000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x1.00000000000000000000p-149:0x00000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0aa00000000000000p+1:0x402df855) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb600000000000000p+1:0x40490fdb) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (OK) + to uint32: 65503 (OK) + to uint64: 65503 (OK) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (OK) + to uint32: 65504 (OK) + to uint64: 65504 (OK) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (OK) + to uint32: 65505 (OK) + to uint64: 65505 (OK) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (OK) + to uint32: 131007 (OK) + to uint64: 131007 (OK) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (OK) + to uint32: 131008 (OK) + to uint64: 131008 (OK) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (OK) + to uint32: 131009 (OK) + to uint64: 131009 (OK) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.00000000000000000000p+31:0x4f000000) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (OK) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (OK) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(inf:0x7f800000) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007ff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +### Rounding downwards +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-nan:0x00fff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-inf:0xff800000) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (OK) + to uint32: -2 (OK) + to uint64: -2 (OK) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x1.00000000000000000000p-149:0x80000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb400000000000000p+1:0x40490fda) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (OK) + to uint32: 65503 (OK) + to uint64: 65503 (OK) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (OK) + to uint32: 65504 (OK) + to uint64: 65504 (OK) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (OK) + to uint32: 65505 (OK) + to uint64: 65505 (OK) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (OK) + to uint32: 131007 (OK) + to uint64: 131007 (OK) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (OK) + to uint32: 131008 (OK) + to uint64: 131008 (OK) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (OK) + to uint32: 131009 (OK) + to uint64: 131009 (OK) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.fffffe00000000000000p+30:0x4effffff) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (OK) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (OK) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007ff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +### Rounding to zero +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-nan:0x00fff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b000000000000000p+103:0xf30c3a58) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab400000000000000p+99:0xf1605d5a) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (OK) + to uint32: -2 (OK) + to uint64: -2 (OK) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb400000000000000p+1:0x40490fda) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (OK) + to uint32: 65503 (OK) + to uint64: 65503 (OK) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (OK) + to uint32: 65504 (OK) + to uint64: 65504 (OK) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (OK) + to uint32: 65505 (OK) + to uint64: 65505 (OK) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (OK) + to uint32: 131007 (OK) + to uint64: 131007 (OK) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (OK) + to uint32: 131008 (OK) + to uint64: 131008 (OK) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (OK) + to uint32: 131009 (OK) + to uint64: 131009 (OK) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.fffffe00000000000000p+30:0x4effffff) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (OK) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (OK) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007ff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID)
tests/tcg/mips64/float_convs.ref new file +748 -0
748 lines not on this page · raw message
tests/tcg/mips64/float_madds.ref new file +768 -0
768 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v8 65/105 tests/tcg/mips64: user tests
In reply to Pierrick Bouvier--- tests/tcg/meson.build | 1 + tests/tcg/mips64/Makefile.target | 20 -------------------- tests/tcg/mips64/meson.build | 27 +++++++++++++++++++++++++++ tests/tcg/mips64el/Makefile.target | 2 +- 4 files changed, 29 insertions(+), 21 deletions(-) delete mode 100644 tests/tcg/mips64/Makefile.target create mode 100644 tests/tcg/mips64/meson.build
tests/tcg/meson.build +1 -0
@@ -146,6 +146,7 @@ subdir('i386') subdir('loongarch64') subdir('m68k') subdir('mips') +subdir('mips64') image_targets = {} exe_targets = []
tests/tcg/mips64/Makefile.target deleted +0 -20
@@ -1,20 +0,0 @@ -# -*- Mode: makefile -*- -# -# SPDX-License-Identifier: GPL-2.0-or-later -# -# MIPS64 - included from tests/tcg/Makefile.target -# - -MIPS64_SRC=$(SRC_PATH)/tests/tcg/mips64 -MIPS_OCTEON_SRC=$(SRC_PATH)/tests/tcg/mips/user/isa/octeon - -# Set search path for all sources -VPATH += $(MIPS64_SRC) $(MIPS_OCTEON_SRC) - -MIPS64_TESTS=octeon-insns - -TESTS += $(MIPS64_TESTS) - -$(MIPS64_TESTS): CFLAGS+=-mabi=64 - -run-octeon-insns: QEMU_OPTS+=-cpu Octeon68XX
tests/tcg/mips64/meson.build new file +27 -0
@@ -0,0 +1,27 @@ +tests = [] + +tests += tcg_tests['multiarch-linux-user']['tests'] + +tests += { + '../mips/user/isa/octeon/octeon-insns.c': { + 'qemu_args': ['-cpu', 'Octeon68XX'], + }, +} + +# export tests for mips64el +tcg_tests_mips64 = tests + +if 'qemu-mips64' in emulators + tcg_tests += { + 'mips64-linux-user': { + 'cc': 'mips64-linux-gnuabi64-gcc', + 'cc_dockerfile': 'debian-all-test-cross', + 'cc_docker_host_arch': ['aarch64', 'x86_64'], + 'cc_feat_cflags': cc_feat_cflags, + 'folder': 'mips64', + 'gdb_arch': 'mips64', + 'qemu': emulators['qemu-mips64'], + 'tests': tcg_tests_mips64, + } + } +endif
tests/tcg/mips64el/Makefile.target +1 -1
@@ -5,4 +5,4 @@ # MIPS64 little-endian - included from tests/tcg/Makefile.target # -include $(SRC_PATH)/tests/tcg/mips64/Makefile.target +#include $(SRC_PATH)/tests/tcg/mips64/Makefile.target
Signature · 1 line
2.43.0
PATCH v8 66/105 tests/tcg/mips64el: add float reference files
In reply to Pierrick BouvierMakefiles were skipping the output compare when such files were not available. This results in arch being very inconsistent with some providing all files, some providing no files, and some providing some files. There was even one case of a misnamed file that result in a skipped check.
For consistency, the current series adds all missing reference files for all arch, and make their presence mandatory
--- tests/tcg/mips64el/float_convd.ref | 988 +++++++++++++++++++++++++++++ tests/tcg/mips64el/float_convs.ref | 748 ++++++++++++++++++++++ tests/tcg/mips64el/float_madds.ref | 768 ++++++++++++++++++++++ 3 files changed, 2504 insertions(+) create mode 100644 tests/tcg/mips64el/float_convd.ref create mode 100644 tests/tcg/mips64el/float_convs.ref create mode 100644 tests/tcg/mips64el/float_madds.ref
tests/tcg/mips64el/float_convd.ref new file +988 -0
@@ -0,0 +1,988 @@ +### Rounding to nearest +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-nan:0x00fff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-inf:0xff800000) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (OK) + to uint32: -2 (OK) + to uint64: -2 (OK) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb600000000000000p+1:0x40490fdb) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (OK) + to uint32: 65503 (OK) + to uint64: 65503 (OK) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (OK) + to uint32: 65504 (OK) + to uint64: 65504 (OK) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (OK) + to uint32: 65505 (OK) + to uint64: 65505 (OK) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (OK) + to uint32: 131007 (OK) + to uint64: 131007 (OK) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (OK) + to uint32: 131008 (OK) + to uint64: 131008 (OK) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (OK) + to uint32: 131009 (OK) + to uint64: 131009 (OK) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.00000000000000000000p+31:0x4f000000) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (OK) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (OK) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(inf:0x7f800000) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007ff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +### Rounding upwards +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-nan:0x00fff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b000000000000000p+103:0xf30c3a58) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab400000000000000p+99:0xf1605d5a) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (OK) + to uint32: -2 (OK) + to uint64: -2 (OK) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000200000000000000p-25:0x33000001) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe800000000000000p-25:0x337ffff4) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801c00000000000000p-15:0x387fc00e) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000e00000000000000p-14:0x38800007) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x1.00000000000000000000p-149:0x00000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x1.00000000000000000000p-149:0x00000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x1.00000000000000000000p-149:0x00000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0aa00000000000000p+1:0x402df855) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb600000000000000p+1:0x40490fdb) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (OK) + to uint32: 65503 (OK) + to uint64: 65503 (OK) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (OK) + to uint32: 65504 (OK) + to uint64: 65504 (OK) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (OK) + to uint32: 65505 (OK) + to uint64: 65505 (OK) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (OK) + to uint32: 131007 (OK) + to uint64: 131007 (OK) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (OK) + to uint32: 131008 (OK) + to uint64: 131008 (OK) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (OK) + to uint32: 131009 (OK) + to uint64: 131009 (OK) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.00000000000000000000p+31:0x4f000000) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (OK) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (OK) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(inf:0x7f800000) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007ff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +### Rounding downwards +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-nan:0x00fff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-inf:0xff800000) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (OK) + to uint32: -2 (OK) + to uint64: -2 (OK) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x1.00000000000000000000p-149:0x80000001) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb400000000000000p+1:0x40490fda) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (OK) + to uint32: 65503 (OK) + to uint64: 65503 (OK) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (OK) + to uint32: 65504 (OK) + to uint64: 65504 (OK) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (OK) + to uint32: 65505 (OK) + to uint64: 65505 (OK) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (OK) + to uint32: 131007 (OK) + to uint64: 131007 (OK) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (OK) + to uint32: 131008 (OK) + to uint64: 131008 (OK) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (OK) + to uint32: 131009 (OK) + to uint64: 131009 (OK) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.fffffe00000000000000p+30:0x4effffff) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (OK) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (OK) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007ff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +### Rounding to zero +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-nan:0x00fff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b000000000000000p+103:0xf30c3a58) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab400000000000000p+99:0xf1605d5a) (INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (OK) + to uint32: -2 (OK) + to uint64: -2 (OK) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (INEXACT ) + to int64: 1 (INEXACT ) + to uint32: 1 (INEXACT ) + to uint64: 1 (INEXACT ) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.9ea82a22876800000000p-1022:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x0.ab98fba8432100000000p-1022:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (UNDERFLOW INEXACT ) + to int32: 0 (INEXACT ) + to int64: 0 (INEXACT ) + to uint32: 0 (INEXACT ) + to uint64: 0 (INEXACT ) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (INEXACT ) + to int32: 2 (INEXACT ) + to int64: 2 (INEXACT ) + to uint32: 2 (INEXACT ) + to uint64: 2 (INEXACT ) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb400000000000000p+1:0x40490fda) (INEXACT ) + to int32: 3 (INEXACT ) + to int64: 3 (INEXACT ) + to uint32: 3 (INEXACT ) + to uint64: 3 (INEXACT ) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (OK) + to uint32: 65503 (OK) + to uint64: 65503 (OK) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (OK) + to uint32: 65504 (OK) + to uint64: 65504 (OK) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (OK) + to uint32: 65505 (OK) + to uint64: 65505 (OK) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (OK) + to uint32: 131007 (OK) + to uint64: 131007 (OK) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (OK) + to uint32: 131008 (OK) + to uint64: 131008 (OK) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (OK) + to uint32: 131009 (OK) + to uint64: 131009 (OK) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.fffffe00000000000000p+30:0x4effffff) (INEXACT ) + to int32: 2147483647 (OK) + to int64: 2147483647 (OK) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (OK) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OVERFLOW INEXACT ) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INEXACT INVALID) + to uint64: -1 (INEXACT INVALID) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: -1 (INVALID) + to uint64: -1 (INVALID) +from double: f64(nan:0x007ff7ffffffffffff) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007ff0000000000001) + to single: f32(nan:0x7fbfffff) (OK) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID) +from double: f64(nan:0x007fffffffffffffff) + to single: f32(nan:0x7fbfffff) (INVALID) + to int32: 2147483647 (INVALID) + to int64: 9223372036854775807 (INVALID) + to uint32: 2147483647 (INVALID) + to uint64: 9223372036854775807 (INVALID)
tests/tcg/mips64el/float_convs.ref new file +748 -0
748 lines not on this page · raw message
tests/tcg/mips64el/float_madds.ref new file +768 -0
768 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v8 67/105 tests/tcg/mips64el: user tests
In reply to Pierrick Bouvier--- tests/tcg/meson.build | 1 + tests/tcg/mips64el/Makefile.target | 8 -------- tests/tcg/mips64el/meson.build | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 8 deletions(-) delete mode 100644 tests/tcg/mips64el/Makefile.target create mode 100644 tests/tcg/mips64el/meson.build
tests/tcg/meson.build +1 -0
@@ -147,6 +147,7 @@ subdir('loongarch64') subdir('m68k') subdir('mips') subdir('mips64') +subdir('mips64el') image_targets = {} exe_targets = []
tests/tcg/mips64el/Makefile.target deleted +0 -8
@@ -1,8 +0,0 @@ -# -*- Mode: makefile -*- -# -# SPDX-License-Identifier: GPL-2.0-or-later -# -# MIPS64 little-endian - included from tests/tcg/Makefile.target -# - -#include $(SRC_PATH)/tests/tcg/mips64/Makefile.target
tests/tcg/mips64el/meson.build new file +14 -0
@@ -0,0 +1,14 @@ +if 'qemu-mips64el' in emulators + tcg_tests += { + 'mips64el-linux-user': { + 'cc': 'mips64el-linux-gnuabi64-gcc', + 'cc_dockerfile': 'debian-all-test-cross', + 'cc_docker_host_arch': ['aarch64', 'x86_64'], + 'cc_feat_cflags': cc_feat_cflags, + 'folder': 'mips64el', + 'gdb_arch': 'mips64el', + 'qemu': emulators['qemu-mips64el'], + 'tests': tcg_tests_mips64, + } + } +endif
Signature · 1 line
2.43.0
PATCH v8 68/105 tests/docker/dockerfiles/debian-all-test-cross.docker: add or1k toolchain
In reply to Pierrick Bouvier--- .../dockerfiles/debian-all-test-cross.docker | 14 +++++++++++++- tests/lcitool/refresh | 14 +++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-)
tests/docker/dockerfiles/debian-all-test-cross.docker +13 -1
@@ -61,7 +61,19 @@ RUN apt update && \ clang\ dpkg-dev\ gdb-multiarch\ - libclang-rt-dev + libclang-rt-dev\ + wget\ + rsync + +# https://openrisc.io/2025/04/20/toolchainrootfsbins +RUN if dpkg-architecture -e amd64; then \ +cd /tmp && \ + wget -q https://github.com/stffrdhrn/or1k-toolchain-build/releases/download/or1k-16.1.0-20260614/or1k-none-linux-musl-16.1.0-20260614.tar.xz && \ + tar --no-same-owner -xf *.tar.xz && \ + rsync -a or1k-none-linux-musl/ /usr/ && \ + rm -rf /tmp/*; \ +fi + ENV AVAILABLE_COMPILERS="\ gcc-aarch64-linux-gnu \ libc6-dev-arm64-cross \
tests/lcitool/refresh +13 -1
@@ -172,7 +172,19 @@ RUN apt update && \ clang\ dpkg-dev\ gdb-multiarch\ - libclang-rt-dev + libclang-rt-dev\ + wget\ + rsync + +# https://openrisc.io/2025/04/20/toolchainrootfsbins +RUN if dpkg-architecture -e amd64; then \ +cd /tmp && \ + wget -q https://github.com/stffrdhrn/or1k-toolchain-build/releases/download/or1k-16.1.0-20260614/or1k-none-linux-musl-16.1.0-20260614.tar.xz && \ + tar --no-same-owner -xf *.tar.xz && \ + rsync -a or1k-none-linux-musl/ /usr/ && \ + rm -rf /tmp/*; \ +fi + ENV AVAILABLE_COMPILERS="\ gcc-aarch64-linux-gnu \ libc6-dev-arm64-cross \
Signature · 1 line
2.43.0
PATCH v8 69/105 tests/tcg/or1k/test_addic.c: remove unused variables
In reply to Pierrick Bouvier--- tests/tcg/or1k/test_addic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/tcg/or1k/test_addic.c +1 -1
@@ -2,7 +2,7 @@int main (void ) { -int a, b, c; +int a;int result; a =1 ;
Signature · 1 line
2.43.0
PATCH v8 70/105 tests/tcg/or1k/test_muli.c: remove set but unused variable
In reply to Pierrick Bouvier--- tests/tcg/or1k/test_muli.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
tests/tcg/or1k/test_muli.c +1 -4
@@ -2,11 +2,10 @@int main (void ) { -int a, b, c; +int a, b;int result; b =0x4 ; - c =0x1 ; result =0x4 ; __asm ("l.muli %0, %1, 0x1\n\t"
@@ -19,7 +18,6 @@ int main(void) } b =0x1 ; - c =0x0 ; result =0x0 ; __asm ("l.muli %0, %1, 0x0\n\t"
@@ -32,7 +30,6 @@ int main(void) } b =0x1 ; - c =0xff ; result =0xff ; __asm ("l.muli %0, %1, 0xff\n\t"
Signature · 1 line
2.43.0
PATCH v8 71/105 tests/tcg/or1k: add float reference files
In reply to Pierrick BouvierMakefiles were skipping the output compare when such files were not available. This results in arch being very inconsistent with some providing all files, some providing no files, and some providing some files. There was even one case of a misnamed file that result in a skipped check.
For consistency, the current series adds all missing reference files for all arch, and make their presence mandatory
--- tests/tcg/or1k/float_convd.ref | 247 +++++++++++++++++++++++++++++++++ tests/tcg/or1k/float_convs.ref | 187 +++++++++++++++++++++++++ tests/tcg/or1k/float_madds.ref | 192 +++++++++++++++++++++++++ 3 files changed, 626 insertions(+) create mode 100644 tests/tcg/or1k/float_convd.ref create mode 100644 tests/tcg/or1k/float_convs.ref create mode 100644 tests/tcg/or1k/float_madds.ref
tests/tcg/or1k/float_convd.ref new file +247 -0
@@ -0,0 +1,247 @@ +### Rounding to nearest +from double: f64(nan:0x007ff4000000000000) + to single: f32(nan:0x7fe00000) (OK) + to int32: 2147483647 (OK) + to int64: 9223372036854775807 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(-nan:0x00fff8000000000000) + to single: f32(-nan:0xffc00000) (OK) + to int32: -2147483648 (OK) + to int64: -9223372036854775808 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(-inf:0x00fff0000000000000) + to single: f32(-inf:0xff800000) (OK) + to int32: -2147483648 (OK) + to int64: -9223372036854775808 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(-0x1.fffffffffffff0000000p+1023:0x00ffefffffffffffff) + to single: f32(-inf:0xff800000) (OK) + to int32: -2147483648 (OK) + to int64: -9223372036854775808 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: -2147483648 (OK) + to int64: -9223372036854775808 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(-0x1.fffffe00000000000000p+127:0x00c7efffffe0000000) + to single: f32(-0x1.fffffe00000000000000p+127:0xff7fffff) (OK) + to int32: -2147483648 (OK) + to int64: -9223372036854775808 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(-0x1.1874b135ff6540000000p+103:0x00c661874b135ff654) + to single: f32(-0x1.1874b200000000000000p+103:0xf30c3a59) (OK) + to int32: -2147483648 (OK) + to int64: -9223372036854775808 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(-0x1.c0bab523323b90000000p+99:0x00c62c0bab523323b9) + to single: f32(-0x1.c0bab600000000000000p+99:0xf1605d5b) (OK) + to int32: -2147483648 (OK) + to int64: -9223372036854775808 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(-0x1.00000000000000000000p+1:0x00c000000000000000) + to single: f32(-0x1.00000000000000000000p+1:0xc0000000) (OK) + to int32: -2 (OK) + to int64: -2 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(-0x1.00000000000000000000p+0:0x00bff0000000000000) + to single: f32(-0x1.00000000000000000000p+0:0xbf800000) (OK) + to int32: -1 (OK) + to int64: -1 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(-0x1.00000000000000000000p-1022:0x008010000000000000) + to single: f32(-0x0.00000000000000000000p+0:0x80000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(-0x1.00000000000000000000p-126:0x00b810000000000000) + to single: f32(-0x1.00000000000000000000p-126:0x80800000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x0.00000000000000000000p+0:00000000000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p-126:0x003810000000000000) + to single: f32(0x1.00000000000000000000p-126:0x00800000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000001c5f680000000p-25:0x003e600000001c5f68) + to single: f32(0x1.00000000000000000000p-25:0x33000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.ffffe6cb2fa820000000p-25:0x003e6ffffe6cb2fa82) + to single: f32(0x1.ffffe600000000000000p-25:0x337ffff3) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.ff801a9af58a10000000p-15:0x003f0ff801a9af58a1) + to single: f32(0x1.ff801a00000000000000p-15:0x387fc00d) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000c06a1ef50000000p-14:0x003f100000c06a1ef5) + to single: f32(0x1.00000c00000000000000p-14:0x38800006) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00400000000000000000p+0:0x003ff0040000000000) + to single: f32(0x1.00400000000000000000p+0:0x3f802000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p-1022:0x000010000000000000) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.3d5054450ed000000000p-1023:0x000009ea82a2287680) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.5731f750864200000000p-1023:0x00000ab98fba843210) + to single: f32(0x0.00000000000000000000p+0:0000000000) (OK) + to int32: 0 (OK) + to int64: 0 (OK) + to uint32: 0 (OK) + to uint64: 0 (OK) +from double: f64(0x1.00000000000000000000p+0:0x003ff0000000000000) + to single: f32(0x1.00000000000000000000p+0:0x3f800000) (OK) + to int32: 1 (OK) + to int64: 1 (OK) + to uint32: 1 (OK) + to uint64: 1 (OK) +from double: f64(0x1.00000000000000000000p+1:0x004000000000000000) + to single: f32(0x1.00000000000000000000p+1:0x40000000) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.5bf0a8b1457690000000p+1:0x004005bf0a8b145769) + to single: f32(0x1.5bf0a800000000000000p+1:0x402df854) (OK) + to int32: 2 (OK) + to int64: 2 (OK) + to uint32: 2 (OK) + to uint64: 2 (OK) +from double: f64(0x1.921fb54442d180000000p+1:0x00400921fb54442d18) + to single: f32(0x1.921fb600000000000000p+1:0x40490fdb) (OK) + to int32: 3 (OK) + to int64: 3 (OK) + to uint32: 3 (OK) + to uint64: 3 (OK) +from double: f64(0x1.ffbe0000000000000000p+15:0x0040effbe000000000) + to single: f32(0x1.ffbe0000000000000000p+15:0x477fdf00) (OK) + to int32: 65503 (OK) + to int64: 65503 (OK) + to uint32: 65503 (OK) + to uint64: 65503 (OK) +from double: f64(0x1.ffc00000000000000000p+15:0x0040effc0000000000) + to single: f32(0x1.ffc00000000000000000p+15:0x477fe000) (OK) + to int32: 65504 (OK) + to int64: 65504 (OK) + to uint32: 65504 (OK) + to uint64: 65504 (OK) +from double: f64(0x1.ffc20000000000000000p+15:0x0040effc2000000000) + to single: f32(0x1.ffc20000000000000000p+15:0x477fe100) (OK) + to int32: 65505 (OK) + to int64: 65505 (OK) + to uint32: 65505 (OK) + to uint64: 65505 (OK) +from double: f64(0x1.ffbf0000000000000000p+16:0x0040fffbf000000000) + to single: f32(0x1.ffbf0000000000000000p+16:0x47ffdf80) (OK) + to int32: 131007 (OK) + to int64: 131007 (OK) + to uint32: 131007 (OK) + to uint64: 131007 (OK) +from double: f64(0x1.ffc00000000000000000p+16:0x0040fffc0000000000) + to single: f32(0x1.ffc00000000000000000p+16:0x47ffe000) (OK) + to int32: 131008 (OK) + to int64: 131008 (OK) + to uint32: 131008 (OK) + to uint64: 131008 (OK) +from double: f64(0x1.ffc10000000000000000p+16:0x0040fffc1000000000) + to single: f32(0x1.ffc10000000000000000p+16:0x47ffe080) (OK) + to int32: 131009 (OK) + to int64: 131009 (OK) + to uint32: 131009 (OK) + to uint64: 131009 (OK) +from double: f64(0x1.fffffffc000000000000p+30:0x0041dfffffffc00000) + to single: f32(0x1.00000000000000000000p+31:0x4f000000) (OK) + to int32: 2147483647 (OK) + to int64: 2147483647 (OK) + to uint32: 2147483647 (OK) + to uint64: 2147483647 (OK) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (OK) + to int64: 9223372036854775807 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(0x1.fffffe00000000000000p+127:0x0047efffffe0000000) + to single: f32(0x1.fffffe00000000000000p+127:0x7f7fffff) (OK) + to int32: 2147483647 (OK) + to int64: 9223372036854775807 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(0x1.fffffffffffff0000000p+1023:0x007fefffffffffffff) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (OK) + to int64: 9223372036854775807 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(inf:0x007ff0000000000000) + to single: f32(inf:0x7f800000) (OK) + to int32: 2147483647 (OK) + to int64: 9223372036854775807 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(nan:0x007ff8000000000000) + to single: f32(nan:0x7fc00000) (OK) + to int32: 2147483647 (OK) + to int64: 9223372036854775807 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(nan:0x007ff0000000000001) + to single: f32(nan:0x7fc00000) (OK) + to int32: 2147483647 (OK) + to int64: 9223372036854775807 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK) +from double: f64(nan:0x007ff4000000000000) + to single: f32(nan:0x7fe00000) (OK) + to int32: 2147483647 (OK) + to int64: 9223372036854775807 (OK) + to uint32: -1 (OK) + to uint64: -1 (OK)
tests/tcg/or1k/float_convs.ref new file +187 -0
187 lines not on this page · raw message
tests/tcg/or1k/float_madds.ref new file +192 -0
192 lines not on this page · raw message
Signature · 1 line
2.43.0
PATCH v8 72/105 plugins/api.c: identify or1k pc register and mark it as read only
In reply to Pierrick Bouvierplugin registers.c checks if at least one register is read-only, which was missing for target or1k.
--- plugins/api.c | 2 ++ 1 file changed, 2 insertions(+)
plugins/api.c +2 -0
@@ -425,6 +425,7 @@ static const char rip_str[] = "rip"; /* x86_64-specific name for PC */static const char pswa_str[] ="pswa" ;/* s390x-specific name for PC */ static const char iaoq_str[] ="iaoq" ;/* HP/PA-specific name for PC */ static const char rpc_str[] ="rpc" ;/* microblaze-specific name for PC */ +static const char ppc_str[] ="ppc" ;/* or1k-specific name for PC */ static GArray *create_register_handles (GArray *gdbstub_regs) { GArray *find_data = g_array_new(true, true,
@@ -449,6 +450,7 @@ static GArray *create_register_handles(GArray *gdbstub_regs) || g_strcmp0(desc.name, pswa_str) == 0 || g_strcmp0(desc.name, iaoq_str) == 0 || g_strcmp0(desc.name, rpc_str) == 0 + || g_strcmp0(desc.name, ppc_str) == 0 ) { desc.is_readonly = true; plugin_ro_bit =1 ;
Signature · 1 line
2.43.0
PATCH v8 73/105 tests/tcg/or1k: user tests
In reply to Pierrick BouvierSome tests are currently failing, so they are commented. To be investigated.
qemu:or1k-linux-user-test_addc FAIL 0.05s (exit status 255 or 0xff) qemu:or1k-linux-user-test_div FAIL 0.06s (exit status 136 or signal 8 SIGFPE) qemu:or1k-linux-user-test_extx FAIL 0.06s (exit status 132 or signal 4 SIGILL)
qemu:or1k-linux-user-test_lx FAIL 0.05s (exit status 139 or signal 11 SIGSEGV)
--- tests/tcg/meson.build | 1 + tests/tcg/or1k/Makefile | 71 ------------------------------------- tests/tcg/or1k/meson.build | 72 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+), 71 deletions(-) delete mode 100644 tests/tcg/or1k/Makefile create mode 100644 tests/tcg/or1k/meson.build
tests/tcg/meson.build +1 -0
@@ -148,6 +148,7 @@ subdir('m68k') subdir('mips') subdir('mips64') subdir('mips64el') +subdir('or1k') image_targets = {} exe_targets = []
tests/tcg/or1k/Makefile deleted +0 -71
71 lines not on this page · raw message
tests/tcg/or1k/meson.build new file +72 -0
72 lines not on this page · raw message
Signature · 1 line
2.43.0