tests/tcg: run tests with meson
Subsystems (2)
v3 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.
Usage:
``` make check-tcg make check-tcg-aarch64-linux-user make check-tcg-aarch64-softmmu make tcg-tests ninja clean ./pyvenv/bin/meson test aarch64-softmmu-asid2 --verbose ```
A few items were left for further work (out of scope for this series):
- xtensaeb: didn't find how to cross compile for this architecture with what we have now in container debian-xtensa-cross. Tips are welcome.
- tricore: implemented but reverted as all tests seem to hang. To be investigated.
- riscv64/interruptedmemory.S is hanging. To be investigated.
- i386/test-i386-fprem.c is deactivated for now. It's broken (output does not match bare metal result) and is the slowest test we have. To be refactored and fixed.
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 (91):
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
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: add default flag for testing compiler support 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_arch tests/tcg/meson.build: introduce depends tests/tcg/meson.build: add top-level 'tcg-tests' target tests/tcg/multiarch: declare user tests tests/tcg/multiarch: declare system tests tests/tcg/meson.build: add generic plugin tests 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: system tests
tests/tcg/sh4: add float reference files
tests/tcg/sh4: user tests
tests/tcg/tricore: system tests
Revert "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/tcg/xtensa: system tests
tests: remove tcg tests machinery
tests/tcg: remove Makefiles
configure: remove --cross-cc* options
configure | 473 --------- docs/devel/testing/main.rst | 22 +- plugins/api.c | 2 + scripts/probe-gdb-support.py | 1 + tests/Makefile.include | 68 +- tests/docker/docker.py | 4 +- .../dockerfiles/debian-all-test-cross.docker | 16 +- tests/lcitool/refresh | 107 +- tests/meson.build | 2 +- tests/tcg/Makefile.target | 281 ----- tests/tcg/aarch64/Makefile.softmmu-target | 147 --- tests/tcg/aarch64/Makefile.target | 198 ---- tests/tcg/aarch64/meson.build | 195 ++++ tests/tcg/aarch64/system/gpc-test.c | 5 - tests/tcg/aarch64/system/meson.build | 108 ++ 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 | 46 + tests/tcg/arm/Makefile.softmmu-target | 80 -- tests/tcg/arm/Makefile.target | 87 -- tests/tcg/arm/meson.build | 80 ++ tests/tcg/arm/system/meson.build | 66 ++ tests/tcg/hexagon/Makefile.target | 146 --- tests/tcg/hexagon/meson.build | 111 ++ 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 | 48 + 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 | 47 + 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 | 447 ++++++++ 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/mips/user/ase/dsp/Makefile | 184 ---- tests/tcg/mips/user/isa/mips64r6/crc/Makefile | 40 - tests/tcg/mips/user/isa/r5900/Makefile | 32 - 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 | 233 ----- 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 | 4 +- 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.softmmu-target | 45 - 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 | 38 + tests/tcg/s390x/Makefile.softmmu-target | 57 - tests/tcg/s390x/Makefile.target | 127 --- 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 | 140 +++ 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/tricore/Makefile.softmmu-target | 53 - tests/tcg/x86_64/Makefile.softmmu-target | 44 - tests/tcg/x86_64/Makefile.target | 40 - tests/tcg/x86_64/float_madds.ref | 768 ++++++++++++++ tests/tcg/x86_64/meson.build | 83 ++ tests/tcg/x86_64/system/meson.build | 62 ++ tests/tcg/xtensa/Makefile.softmmu-target | 46 - tests/tcg/xtensa/crt.S | 1 + tests/tcg/xtensa/meson.build | 89 ++ tests/tcg/xtensaeb/Makefile.softmmu-target | 5 - 134 files changed, 30491 insertions(+), 4114 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/mips/user/ase/dsp/Makefile delete mode 100644 tests/tcg/mips/user/isa/mips64r6/crc/Makefile delete mode 100644 tests/tcg/mips/user/isa/r5900/Makefile 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.softmmu-target 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 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 delete mode 100644 tests/tcg/tricore/Makefile.softmmu-target 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.47.3
PATCH v3 1/91 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.47.3
PATCH v3 2/91 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
@@ -211,8 +211,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.47.3
PATCH v3 3/91 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
@@ -211,7 +211,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.47.3
PATCH v3 4/91 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 | 95 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 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 +95 -0
95 lines not on this page · raw message
Signature · 1 line
2.47.3
Re: [PATCH v3 04/91] tests/tcg: introduce meson.build
Quoted 11 lines · Pierrick Bouvier
Every target declare its tests, and add them in global
tcg_testsdictionary, 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.
Quoted 6 lines
Signed-off-by Pierrick Bouvier<[email protected]>--- tests/meson.build | 2 +- tests/tcg/meson.build | 95 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+), 1 deletion(-)create mode 100644 tests/tcg/meson.build
r~
PATCH v3 5/91 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.47.3
Re: [PATCH v3 05/91] tests/tcg/meson.build: introduce exe_name
Quoted 8 lines · Pierrick Bouvier
We 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).
Signed-off-by Pierrick Bouvier<[email protected]>--- tests/tcg/meson.build | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-)
r~
PATCH v3 6/91 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.47.3
PATCH v3 7/91 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.47.3
PATCH v3 8/91 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.47.3
PATCH v3 9/91 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, suite: ['tcg', 'tcg-' + target])
Signature · 1 line
2.47.3
PATCH v3 10/91 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.47.3
PATCH v3 11/91 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.47.3
PATCH v3 12/91 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.47.3
PATCH v3 13/91 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.47.3
PATCH v3 14/91 tests/tcg/meson.build: add default flag for testing compiler support
In reply to Pierrick BouvierThis global variable can be used as cflags when checking if a compiler supports specific flags.
--- tests/tcg/meson.build | 1 + 1 file changed, 1 insertion(+)
tests/tcg/meson.build +1 -0
@@ -1,3 +1,4 @@ +cc_check_args = ['-xc', '/dev/null', '-o', '/dev/null', '-c'] env = find_program('env') gdb_progs = ['gdb-multiarch', 'gdb']
Signature · 1 line
2.47.3
PATCH v3 15/91 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
@@ -26,6 +26,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', ...],
@@ -87,7 +88,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) + '])')
@@ -201,6 +202,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.47.3
PATCH v3 16/91 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
@@ -7,6 +7,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:
@@ -24,6 +25,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'...],
@@ -87,8 +89,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) + '])')
@@ -202,6 +205,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.47.3
Re: [PATCH v3 16/91] tests/tcg/meson.build: introduce expected_output
Quoted 10 lines · Pierrick Bouvier
A 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.
Signed-off-by Pierrick Bouvier <[email protected]>---
Quoted 73 lines
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.shtests/tcg/meson.build +0
-0@@ -7,6 +7,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:tests/tcg/meson.build +9
-2@@ -24,6 +25,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'...],@@ -87,8 +89,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) + '])')@@ -202,6 +205,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] endiftests/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 $expectedSignature · 1 line
2.47.3
PATCH v3 17/91 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
@@ -8,6 +8,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.47.3
Re: [PATCH v3 17/91] tests/tcg/meson.build: add wrapper run_and_check_forbidden_output
Quoted 5 lines · Pierrick Bouvier
One of our test requires to make sure output does not contain a specific string. An example is system multiarch test run-gdbstub-untimely-packet.
Signed-off-by Pierrick Bouvier <[email protected]>---
Quoted 47 lines
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.shtests/tcg/meson.build +3
-0@@ -8,6 +8,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 1Signature · 1 line
2.47.3
PATCH v3 18/91 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
@@ -8,6 +8,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.47.3
Re: [PATCH v3 18/91] tests/tcg/meson.build: add wrapper run_with_input
Quoted 6 lines · Pierrick Bouvier
Semihosting console tests require console interaction, and were flagged as manual because of this. This wrapper automates interaction, by sending a specific string on stdin.
Signed-off-by Pierrick Bouvier <[email protected]>---
Btw, for more complex usecases there's always expect: https://en.wikipedia.org/wiki/Expect
In case some future test requires more complex interaction.
Quoted 38 lines
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.shtests/tcg/meson.build +1
-0@@ -8,6 +8,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.47.3
PATCH v3 19/91 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
@@ -7,6 +7,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.47.3
Re: [PATCH v3 19/91] tests/tcg/meson.build: add wrapper record_replay
Quoted 4 lines · Pierrick Bouvier
Runs a record and replay test, and make sure the output produced by both runs is the same.
Signed-off-by Pierrick Bouvier <[email protected]>
<snip>
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
Re: [PATCH v3 19/91] tests/tcg/meson.build: add wrapper record_replay
In reply to Pierrick BouvierQuoted 28 lines · Pierrick Bouvier
Runs a record and replay test, and make sure the output produced by both runs is the same.
Signed-off-by Pierrick Bouvier <[email protected]>--- 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.shtests/tcg/meson.build +1
-0@@ -7,6 +7,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 +0
-0
tests/tcg/scripts/record_replay.sh line 1
Quoted 1 line
tests/tcg/scripts/record_replay.sh new file +1
-0@@ -0,0 +1,16 @@ +#!/usr/bin/env bash
While at it is there any reason this couldn't be plain POSIX shell. I don't think we explicitly require bash although its super likely to be on most systems. configure is all POSIX shell.
Quoted 15 lines
tests/tcg/scripts/record_replay.sh new file +15
-0+# 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 · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
Re: [PATCH v3 19/91] tests/tcg/meson.build: add wrapper record_replay
Quoted 27 lines · Alex Bennée
Quoted 25 lines · Pierrick Bouvier
Runs a record and replay test, and make sure the output produced by both runs is the same.
Signed-off-by Pierrick Bouvier <[email protected]>--- 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.shtests/tcg/meson.build +1
-0@@ -7,6 +7,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 +0
-0
Quoted 9 lines
tests/tcg/scripts/record_replay.sh line 1
Quoted 4 lines
tests/tcg/scripts/record_replay.sh new file +1
-0@@ -0,0 +1,16 @@ +#!/usr/bin/env bashWhile at it is there any reason this couldn't be plain POSIX shell. I don't think we explicitly require bash although its super likely to be on most systems. configure is all POSIX shell.
The main reason for me to use bash is that it supports set -uo pipefail in combination with set -e.
Which produces:
- exit if a variable is undefined
- exit if any command in a pipe sequence fails
Without this, script shells are pretty much house of cards waiting to collapse on any corner case.
bash is available out of the box at least on macos, msys2, and I expect, every single linux distro out there. Not sure about bsds though.
If that's such a big issue, I can port the scripts to sh.
Quoted 16 lines
Quoted 15 lines
tests/tcg/scripts/record_replay.sh new file +15
-0+# 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
Re: [PATCH v3 19/91] tests/tcg/meson.build: add wrapper record_replay
Quoted 47 lines · Pierrick Bouvier
Quoted 27 lines · Alex Bennée
Quoted 25 lines · Pierrick Bouvier
Runs a record and replay test, and make sure the output produced by both runs is the same.
Signed-off-by Pierrick Bouvier <[email protected]>--- 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.shtests/tcg/meson.build +1
-0@@ -7,6 +7,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 +0
-0Quoted 9 lines
tests/tcg/scripts/record_replay.sh line 1
Quoted 4 lines
tests/tcg/scripts/record_replay.sh new file +1
-0@@ -0,0 +1,16 @@ +#!/usr/bin/env bashWhile at it is there any reason this couldn't be plain POSIX shell. I don't think we explicitly require bash although its super likely to be on most systems. configure is all POSIX shell.
The main reason for me to use bash is that it supports set -uo pipefail in combination with set -e.
Which produces:
- exit if a variable is undefined
- exit if any command in a pipe sequence fails
Without this, script shells are pretty much house of cards waiting to collapse on any corner case.
Quoted 5 lines
bash is available out of the box at least on macos, msys2, and I expect, every single linux distro out there. Not sure about bsds though.
If that's such a big issue, I can port the scripts to sh.
Interestingly, QEMU main Makefile makes bash a defacto requirement, since it uses it for every single command to run. The reason is... to use -o pipefail.
https://gitlab.com/qemu-project/qemu/-/blob/master/Makefile?ref_type=heads#L17
Quoted 17 lines
Quoted 16 lines
Quoted 15 lines
tests/tcg/scripts/record_replay.sh new file +15
-0+# 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
Re: [PATCH v3 19/91] tests/tcg/meson.build: add wrapper record_replay
Quoted 51 lines · Pierrick Bouvier
Quoted 50 lines · Pierrick Bouvier
Quoted 27 lines · Alex Bennée
Quoted 25 lines · Pierrick Bouvier
Runs a record and replay test, and make sure the output produced by both runs is the same.
Signed-off-by Pierrick Bouvier <[email protected]>--- 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.shtests/tcg/meson.build +1
-0@@ -7,6 +7,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 +0
-0Quoted 9 lines
tests/tcg/scripts/record_replay.sh line 1
Quoted 4 lines
tests/tcg/scripts/record_replay.sh new file +1
-0@@ -0,0 +1,16 @@ +#!/usr/bin/env bashWhile at it is there any reason this couldn't be plain POSIX shell. I don't think we explicitly require bash although its super likely to be on most systems. configure is all POSIX shell.
The main reason for me to use bash is that it supports set -uo pipefail in combination with set -e.
Which produces:
- exit if a variable is undefined
- exit if any command in a pipe sequence fails
Without this, script shells are pretty much house of cards waiting to collapse on any corner case.bash is available out of the box at least on macos, msys2, and I expect, every single linux distro out there. Not sure about bsds though.
Quoted 9 lines
Quoted 2 lines
If that's such a big issue, I can port the scripts to sh.
Interestingly, QEMU main
Makefilemakes bash a defacto requirement, since it uses it for every single command to run. The reason is... to use -o pipefail.https://gitlab.com/qemu-project/qemu/-/blob/master/Makefile?ref_type=heads#L17
Well it looks like I misremembered as we list bash as a dependency in qemu-minimal:
packages:
- bash
so I drop my objection.
Quoted 17 lines
Quoted 17 lines
Quoted 16 lines
Quoted 15 lines
tests/tcg/scripts/record_replay.sh new file +15
-0+# 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 · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
Re: [PATCH v3 19/91] tests/tcg/meson.build: add wrapper record_replay
Quoted 63 lines · Alex Bennée
Quoted 51 lines · Pierrick Bouvier
Quoted 50 lines · Pierrick Bouvier
Quoted 27 lines · Alex Bennée
Quoted 25 lines · Pierrick Bouvier
Runs a record and replay test, and make sure the output produced by both runs is the same.
Signed-off-by Pierrick Bouvier <[email protected]>--- 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.shtests/tcg/meson.build +1
-0@@ -7,6 +7,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 +0
-0Quoted 9 lines
tests/tcg/scripts/record_replay.sh line 1
Quoted 4 lines
tests/tcg/scripts/record_replay.sh new file +1
-0@@ -0,0 +1,16 @@ +#!/usr/bin/env bashWhile at it is there any reason this couldn't be plain POSIX shell. I don't think we explicitly require bash although its super likely to be on most systems. configure is all POSIX shell.
The main reason for me to use bash is that it supports set -uo pipefail in combination with set -e.
Which produces:
- exit if a variable is undefined
- exit if any command in a pipe sequence fails
Without this, script shells are pretty much house of cards waiting to collapse on any corner case.bash is available out of the box at least on macos, msys2, and I expect, every single linux distro out there. Not sure about bsds though.
Quoted 9 lines
Quoted 2 lines
If that's such a big issue, I can port the scripts to sh.
Interestingly, QEMU main
Makefilemakes bash a defacto requirement, since it uses it for every single command to run. The reason is... to use -o pipefail.https://gitlab.com/qemu-project/qemu/-/blob/master/Makefile?ref_type=heads#L17
Quoted 8 lines
Well it looks like I misremembered as we list bash as a dependency in qemu-minimal:
packages:
- bashso I drop my objection.
👍
Quoted 19 lines
Quoted 18 lines
Quoted 18 lines
Quoted 17 lines
Quoted 16 lines
tests/tcg/scripts/record_replay.sh new file +15
-0+# 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
PATCH v3 20/91 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
@@ -6,6 +6,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.47.3
PATCH v3 21/91 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
@@ -115,11 +115,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
@@ -227,6 +231,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, suite: ['tcg', 'tcg-' + target])
Signature · 1 line
2.47.3
Re: [PATCH v3 21/91] tests/tcg/meson.build: add logic to skip tests
Quoted 6 lines · Pierrick Bouvier
Instead 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.
Signed-off-by Pierrick Bouvier <[email protected]>---
Quoted 38 lines
tests/tcg/meson.build | 9 +++++++++
1 file changed, 9 insertions(+)tests/tcg/meson.build +9
-0@@ -115,11 +115,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@@ -227,6 +231,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, suite: ['tcg', 'tcg-' + target])Signature · 1 line
2.47.3
Re: [PATCH v3 21/91] tests/tcg/meson.build: add logic to skip tests
In reply to Pierrick BouvierQuoted 8 lines · Pierrick Bouvier
Instead 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.
Signed-off-by Pierrick Bouvier <[email protected]>--- tests/tcg/meson.build | 9 +++++++++ 1 file changed, 9 insertions(+)
Re: [PATCH v3 21/91] tests/tcg/meson.build: add logic to skip tests
In reply to Pierrick BouvierQuoted 5 lines · Pierrick Bouvier
Instead 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.
Signed-off-by Pierrick Bouvier <[email protected]>
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
PATCH v3 22/91 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
@@ -21,6 +21,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-...'],
@@ -30,6 +34,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'],
@@ -75,10 +80,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) + '])')
@@ -89,13 +95,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
@@ -156,15 +166,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.47.3
PATCH v3 23/91 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
@@ -27,6 +27,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': [ # {
@@ -38,6 +42,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': {
@@ -84,7 +89,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) + '])')
@@ -99,6 +105,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
@@ -106,8 +117,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) + '])')
@@ -262,6 +273,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.47.3
PATCH v3 24/91 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
@@ -139,10 +139,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
@@ -285,6 +281,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.47.3
PATCH v3 25/91 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 | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-)
tests/tcg/meson.build +13 -5
@@ -20,7 +20,7 @@ tcg_tests = {} # # { # 'name_of_target': { -# 'cc': cross_compiler, +# 'cc': 'cross_compiler', # 'cc_feat_cflags': { # 'name': ['feature cflags'], # ...
@@ -97,7 +97,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']
@@ -190,9 +190,12 @@ 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, cc_check_args, cc_feat_cflags[cc_feat]], + check: false) + avail = cmd.returncode() == 0 + endif cc_has_feat += {cc_feat: avail} endif
@@ -203,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.47.3
PATCH v3 26/91 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
@@ -623,6 +623,7 @@ def run(self, args, argv): print(" ".join(docker._command)) except Exception: print("no") + return 1 return
Signature · 1 line
2.47.3
Re: [PATCH v3 26/91] tests/docker/docker.py: return error code if probe fails
Quoted 10 lines · Pierrick Bouvier
We 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.
Signed-off-by Pierrick Bouvier <[email protected]>--- tests/docker/docker.py | 1 + 1 file changed, 1 insertion(+)
PATCH v3 27/91 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
@@ -448,8 +448,7 @@ def run(self, args, argv): dkr = Docker() 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.47.3
Re: [PATCH v3 27/91] tests/docker/docker.py: remove "Image is up to date" info
Quoted 7 lines · Pierrick Bouvier
It's useful to print build output by default, but not useful to mention it succeeded. Reduce verbosity of tcg tests build.
Signed-off-by Pierrick Bouvier <[email protected]>--- tests/docker/docker.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
PATCH v3 28/91 tests/tcg/meson.build: introduce cc_dockerfile and cc_docker_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_arch.
In case we rely on docker, we do not build tests by default anymore.
--- tests/tcg/meson.build | 61 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 57 insertions(+), 4 deletions(-)
tests/tcg/meson.build +57 -4
@@ -1,6 +1,7 @@ cc_check_args = ['-xc', '/dev/null', '-o', '/dev/null', '-c'] 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]
@@ -21,6 +22,8 @@ tcg_tests = {} # { # 'name_of_target': { # 'cc': 'cross_compiler', +# 'cc_dockerfile': 'name_of_dockerfile', +# 'cc_docker_arch': ['host_arch_supported (meson cpu)', ...], # 'cc_feat_cflags': { # 'name': ['feature cflags'], # ...
@@ -75,10 +78,14 @@ if gdb.found() endforeach endif +docker_supported = run_command(docker_wrapper, 'probe', + check: false).returncode() == 0 + # 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
@@ -89,8 +96,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_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) + '])')
@@ -98,6 +105,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_arch = plan['cc_docker_arch'] + allowed = ['aarch64', 'x86_64'] + foreach arch: cc_docker_arch + if arch not in allowed + error('incorrect docker arch ' + arch + ' for target ' + + target + ' (possible: [' + ', '.join(allowed) + '])') + endif + endforeach + docker_arch_supported = host_machine.cpu_family() in cc_docker_arch + dockerfile = files('..'/'docker'/'dockerfiles'/cc_dockerfile + '.docker') + image_name = 'image-' + cc_dockerfile + has_docker = docker_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']
@@ -191,10 +238,14 @@ 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, cc_check_args, 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 +257,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 +274,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.47.3
Re: [PATCH v3 28/91] tests/tcg/meson.build: introduce cc_dockerfile and cc_docker_arch
Hi Pierrick,
Quoted 27 lines · Pierrick Bouvier
We 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_arch.In case we rely on docker, we do not build tests by default anymore.
Signed-off-by Pierrick Bouvier <[email protected]>--- tests/tcg/meson.build | 61 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 57 insertions(+), 4 deletions(-)tests/tcg/meson.build +1
-0@@ -1,6 +1,7 @@ cc_check_args = ['-xc', '/dev/null', '-o', '/dev/null', '-c'] 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]
tests/tcg/meson.build tcg_tests = {} · line 26
Quoted 5 lines
tests/tcg/meson.build +2
-0@@ -21,6 +22,8 @@ tcg_tests = {} # { # 'name_of_target': { # 'cc': 'cross_compiler', +# 'cc_dockerfile': 'name_of_dockerfile', +# 'cc_docker_arch': ['host_arch_supported (meson cpu)', ...],
This variable confuses me while reviewing the other patches in this series. What about naming explicitly as 'cc_docker_host_arch'?
Quoted 40 lines
tests/tcg/meson.build +39
-0cc = 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_arch = plan['cc_docker_arch'] + allowed = ['aarch64', 'x86_64'] + foreach arch: cc_docker_arch + if arch not in allowed + error('incorrect docker arch ' + arch + ' for target ' + + target + ' (possible: [' + ', '.join(allowed) + '])') + endif + endforeach + docker_arch_supported = host_machine.cpu_family() in cc_docker_arch + dockerfile = files('..'/'docker'/'dockerfiles'/cc_dockerfile + '.docker') + image_name = 'image-' + cc_dockerfile + has_docker = docker_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
Re: [PATCH v3 28/91] tests/tcg/meson.build: introduce cc_dockerfile and cc_docker_arch
Quoted 29 lines · Philippe Mathieu-Daudé
Hi Pierrick,
Quoted 26 lines · Pierrick Bouvier
We 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_arch.In case we rely on docker, we do not build tests by default anymore.
Signed-off-by Pierrick Bouvier <[email protected]>---
tests/tcg/meson.build | 61 ++++++++++++++++++++++++++++++++++++++++---1 file changed, 57 insertions(+), 4 deletions(-)tests/tcg/meson.build +0
-0@@ -1,6 +1,7 @@
cc_check_args= ['-xc', '/dev/null', '-o', '/dev/null', '-c'] env =find_program('env')
+docker_wrapper =find_program('../docker/docker.py')gdb_progs= ['gdb-multiarch', 'gdb']
ifconfig_host.has_key('GDB')
gdb_progs= [config_host['GDB'],gdb_progs]tests/tcg/meson.build +0
-0@@ -21,6 +22,8 @@ tcg_tests = {}
Quoted 9 lines
tests/tcg/meson.build tcg_tests = {} · line 26
Quoted 5 lines
tests/tcg/meson.build +2
-0# { # 'name_of_target': { # 'cc': 'cross_compiler', +# 'cc_dockerfile': 'name_of_dockerfile', +# 'cc_docker_arch': ['host_arch_supported (meson cpu)', ...],This variable confuses me while reviewing the other patches in this series. What about naming explicitly as '
cc_docker_host_arch'?
Good for me if it helps!
Regards,
Pierrick
PATCH v3 29/91 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
@@ -41,6 +41,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',
@@ -164,7 +165,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 +
@@ -262,6 +263,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,
@@ -274,13 +280,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']
@@ -297,7 +303,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
@@ -352,7 +358,7 @@ foreach target, plan: tcg_tests endif test(test_name, env, args: cmd, - depends: depends, + depends: test_depends, suite: ['tcg', 'tcg-' + target]) added_tests += {test_name: true} endforeach
Signature · 1 line
2.47.3
Re: [PATCH v3 29/91] tests/tcg/meson.build: introduce depends
Quoted 5 lines · Pierrick Bouvier
This can be used to declare dependencies for a given test executable. Useful when generating headers (like
x86_64does).Signed-off-by Pierrick Bouvier <[email protected]>---
Quoted 73 lines
tests/tcg/meson.build | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)tests/tcg/meson.build +11
-5@@ -41,6 +41,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',@@ -164,7 +165,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 +@@ -262,6 +263,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,@@ -274,13 +280,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']@@ -297,7 +303,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@@ -352,7 +358,7 @@ foreach target, plan: tcg_tests endif test(test_name, env, args: cmd, - depends: depends, + depends: test_depends, suite: ['tcg', 'tcg-' + target]) added_tests += {test_name: true} endforeachSignature · 1 line
2.47.3
PATCH v3 30/91 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
@@ -87,6 +87,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
@@ -283,6 +284,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
@@ -364,3 +366,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.47.3
PATCH v3 31/91 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
@@ -85,11 +85,18 @@ docker_supported = run_command(docker_wrapper, 'probe', # 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.47.3
PATCH v3 32/91 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.47.3
PATCH v3 33/91 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
@@ -88,6 +88,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.47.3
PATCH v3 34/91 tests/tcg/aarch64: user tests
In reply to Pierrick Bouvier--- tests/tcg/aarch64/meson.build | 193 ++++++++++++++++++++++++++++++++++ tests/tcg/meson.build | 3 + 2 files changed, 196 insertions(+) create mode 100644 tests/tcg/aarch64/meson.build
tests/tcg/aarch64/meson.build new file +193 -0
@@ -0,0 +1,193 @@ +cc = 'aarch64-linux-gnu-gcc' +cc_dockerfile = 'debian-all-test-cross' +cc_docker_arch = ['aarch64', 'x86_64'] + +cc_feat_cflags = { + 'aes': '-march=armv8-a+aes', + 'sve': '-march=armv8.1-a+sve', + 'sve2': '-march=armv8.1-a+sve2', + 'v8.2': '-march=armv8.2-a', + 'v8.3': '-march=armv8.3-a', + 'v8.5': '-march=armv8.5-a', + 'bti': '-mbranch-protection=standard', + 'mte': '-march=armv8.5-a+memtag', + 'sme': '-Wa,-march=armv9-a+sme', +} + +gdb_feat_version = { + 'sme-tiles': '14.1', + 'mte': '15.1', + 'mte-baremetal': '16.0', +} + +tests = [] + +# Multi arch tests +tests += tcg_tests['multiarch-linux-user']['tests'] + +# Base architecture tests +tests += { + '../arm/fcvt.c': {'cflags': '-lm', 'expected_output': 'fcvt.ref'}, + 'pcalign-a64.c': {}, + 'lse2-fault.c': {}, + 'test-2248.c': {}, + 'test-2150.c': {}, +} + +tests += {'dcpop.c': {'cc_feat': 'v8.2'}} +tests += {'dcpodp.c': {'cc_feat': 'v8.5'}} + +# Pauth Tests +cpu_max = ['-cpu', 'max'] +cpu_neoverse = ['-cpu', 'neoverse-v1'] +tests += { + 'test-2375.c': {'cc_feat': 'v8.3'}, + 'pauth-1.c': {'cc_feat': 'v8.3', 'qemu_args': cpu_max}, + 'pauth-2.c': {'cc_feat': 'v8.3', 'qemu_args': cpu_max}, + # Choose a cpu with FEAT_Pauth but without FEAT_FPAC for pauth-[45]. + 'pauth-4.c': {'cc_feat': 'v8.3', 'qemu_args': cpu_neoverse}, + 'pauth-5.c': {'cc_feat': 'v8.3', 'qemu_args': cpu_neoverse}, +} + +# BTI Tests +# bti-1 tests the elf notes, so we require special compiler support. +f = ['-fno-stack-protector', '-nostdlib'] +tests += { + 'bti-1.c': {'cc_feat': 'bti', 'cflags': f}, + 'bti-3.c': {'cc_feat': 'bti', 'cflags': f}, +} +# bti-2 tests PROT_BTI, so no special compiler support required. +tests += {'bti-2.c': {}} + +# MTE Tests +tests += { + 'mte-1.c': {'cc_feat': 'mte'}, + 'mte-2.c': {'cc_feat': 'mte'}, + 'mte-3.c': {'cc_feat': 'mte'}, + 'mte-4.c': {'cc_feat': 'mte'}, + 'mte-5.c': {'cc_feat': 'mte'}, + 'mte-6.c': {'cc_feat': 'mte'}, + 'mte-7.c': {'cc_feat': 'mte'}, + 'mte-8.c': {'cc_feat': 'mte'}, + 'mte-9.c': {'cc_feat': 'mte'}, + 'mte-10.c': {'cc_feat': 'mte'}, +} +tests += { + 'mte-8.c': { + 'gdb_test': ['--test', files('gdbstub/test-mte.py'), '--', '--mode=user'], + 'gdb_feat': 'mte', + } +} + +# SME Tests +tests += { + 'sme-outprod1.c': {'cc_feat': 'sme'}, + 'sme-smopa-1.c': {'cc_feat': 'sme'}, + 'sme-smopa-2.c': {'cc_feat': 'sme'}, + 'sme-fmopa-1.c': {'cc_feat': 'sme'}, + 'sme-fmopa-2.c': {'cc_feat': 'sme'}, + 'sme-fmopa-3.c': {'cc_feat': 'sme'}, +} +sysregs_sme = 'sysregs-sme' +tests += { + 'sysregs.c': { + 'exe_name': sysregs_sme, + 'cc_feat': 'sme', + 'gdb_test': ['--test', files('gdbstub/test-sme.py'), '--', + 'test_sme', '--gdb_basic_za_test'], + } +} +tests += { + 'sysregs.c': { + 'test_name': 'sysregs-sme-tile-slice', + 'exe_name': sysregs_sme, + 'gdb_test': ['--test', files('gdbstub/test-sme.py'), '--', + 'test_sme', '--gdb_tile_slice_test'], + 'gdb_feat': 'sme-tiles', + } +} +tests += { + 'sysregs.c': { + 'test_name': 'sysregs-sme2', + 'exe_name': sysregs_sme, + 'gdb_test': ['--test', files('gdbstub/test-sme2.py')], + } +} + +# GCS Tests +tests += { + 'gcsstr.c': {}, + 'gcspushm.c': {}, + 'gcsss.c': {}, +} + +# System Registers Tests +tests += {'sysregs.c': {}} + +# Crypto Tests +tests += {'test-aes.c': {'cc_feat': 'aes'}} + +# Vector SHA1 +# Work around compiler false-positive warning, as we do for the 'sha1' test +tests += {'../multiarch/sha1.c': { + 'exe_name': 'sha1-vector', + 'cflags': ['-O3', '-Wno-stringop-overread'], + 'expected_output': '../multiarch/sha1.ref', + }} + +# Vector versions of sha512 (-O3 triggers vectorisation) +tests += {'../multiarch/sha512.c': { + 'exe_name': 'sha512-vector', + 'cflags': ['-O3'], + }} + +# SVE Tests +tests += { + 'sve-ioctls.c': {'cc_feat': 'sve'}, + '../multiarch/sha512.c': { + 'exe_name': 'sha512-sve', + 'cc_feat': 'sve', + }, + 'sve-str.c': {'cc_feat': 'sve', 'cflags': ['-O1']}, +} +tests += { + 'sysregs.c': { + 'exe_name': 'sysregs-sve', + 'cc_feat': 'sve', + 'gdb_test': ['--test', files('gdbstub/test-sve.py')], + }, + 'sve-ioctls.c': { + 'gdb_test': ['--test', files('gdbstub/test-sve-ioctl.py')], + }, +} + +# SVE2 Tests +tests += {'test-826.c': {'cc_feat': 'sve2'}} + +# Semihosting tests +# Add -I path for semicall.h +semihosting_cflags = ['-I', meson.current_source_dir()] + +tests += { + '../multiarch/arm-compat-semi/semiconsole.c': { + 'cflags': semihosting_cflags, + 'wrapper': [prog_run_with_input, 'X'], + }, + '../multiarch/arm-compat-semi/semihosting.c': {'cflags': semihosting_cflags}, +} + +if 'qemu-aarch64' in emulators + tcg_tests += { + 'aarch64-linux-user': { + 'cc': cc, + 'cc_dockerfile': cc_dockerfile, + 'cc_docker_arch': cc_docker_arch, + 'cc_feat_cflags': cc_feat_cflags, + 'folder': 'aarch64', + 'gdb_arch': 'aarch64', + 'gdb_feat_version': gdb_feat_version, + 'qemu': emulators['qemu-aarch64'], + 'tests': tests, + } + } +endif
tests/tcg/meson.build +3 -0
@@ -133,6 +133,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.47.3
PATCH v3 35/91 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.47.3
PATCH v3 36/91 tests/tcg/aarch64: system tests
In reply to Pierrick Bouvier--- tests/tcg/aarch64/meson.build | 2 + tests/tcg/aarch64/system/meson.build | 108 +++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 tests/tcg/aarch64/system/meson.build
tests/tcg/aarch64/meson.build +2 -0
@@ -20,6 +20,8 @@ gdb_feat_version = { 'mte-baremetal': '16.0', } +subdir('system') + tests = [] # Multi arch tests
tests/tcg/aarch64/system/meson.build new file +108 -0
108 lines not on this page · raw message
Signature · 1 line
2.47.3
PATCH v3 37/91 tests/tcg/aarch64_be: user tests
In reply to Pierrick Bouvier--- tests/tcg/aarch64_be/meson.build | 22 ++++++++++++++++++++++ tests/tcg/meson.build | 1 + 2 files changed, 23 insertions(+) create mode 100644 tests/tcg/aarch64_be/meson.build
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_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
@@ -135,6 +135,7 @@ endforeach # Now let's go through all architectures subdir('aarch64') +subdir('aarch64_be') image_targets = {} exe_targets = []
Signature · 1 line
2.47.3
PATCH v3 38/91 tests/tcg/alpha: add float reference files
In reply to Pierrick Bouvier--- 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.47.3
PATCH v3 39/91 tests/tcg/alpha: user tests
In reply to Pierrick Bouvier--- tests/tcg/alpha/meson.build | 53 +++++++++++++++++++++++++++++++++++++ tests/tcg/meson.build | 1 + 2 files changed, 54 insertions(+) create mode 100644 tests/tcg/alpha/meson.build
tests/tcg/alpha/meson.build new file +53 -0
@@ -0,0 +1,53 @@ +cc = 'alpha-linux-gnu-gcc' +cc_dockerfile = 'debian-all-test-cross' +cc_docker_arch = ['aarch64', 'x86_64'] + +tests = [] + +# Multi arch tests +multi_src = [] +foreach t: tcg_tests['multiarch-linux-user']['tests'] + foreach src, setup: t + new_cflags = [] + if 'cflags' in setup + new_cflags = setup['cflags'] + endif + # Force generation of byte read/write + if fs.stem(src) == 'test-plugin-mem-access' + new_cflags += ['-mbwx'] + endif + if src not in multi_src + setup += {'cflags': new_cflags} + multi_src += src + endif + tests += {src: setup} + endforeach +endforeach + +tests += { + 'hello-alpha.c': {}, + 'test-cond.c': {}, + 'test-cvttq.c': {}, + 'test-ovf.c': {}, +} + +tests += { + 'test-cond.c': { + 'cflags': ['-DTEST_CMOV'], + 'exe_name': 'test-cmov' + }, +} + +if 'qemu-alpha' in emulators + tcg_tests += { + 'alpha-linux-user': { + 'cc': cc, + 'cc_dockerfile': cc_dockerfile, + 'cc_docker_arch': cc_docker_arch, + 'folder': 'alpha', + 'gdb_arch': 'alpha', + 'qemu': emulators['qemu-alpha'], + 'tests': tests, + } + } +endif
tests/tcg/meson.build +1 -0
@@ -136,6 +136,7 @@ endforeach # Now let's go through all architectures subdir('aarch64') subdir('aarch64_be') +subdir('alpha') image_targets = {} exe_targets = []
Signature · 1 line
2.47.3
PATCH v3 40/91 tests/tcg/alpha: system tests
In reply to Pierrick Bouvier--- tests/tcg/alpha/meson.build | 2 ++ tests/tcg/alpha/system/meson.build | 46 ++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 tests/tcg/alpha/system/meson.build
tests/tcg/alpha/meson.build +2 -0
@@ -2,6 +2,8 @@ cc = 'alpha-linux-gnu-gcc' cc_dockerfile = 'debian-all-test-cross' cc_docker_arch = ['aarch64', 'x86_64'] +subdir('system') + tests = [] # Multi arch tests
tests/tcg/alpha/system/meson.build new file +46 -0
46 lines not on this page · raw message
Signature · 1 line
2.47.3
PATCH v3 41/91 tests/tcg/arm: user tests
In reply to Pierrick Bouvier--- tests/tcg/arm/meson.build | 78 +++++++++++++++++++++++++++++++++++++++ tests/tcg/meson.build | 1 + 2 files changed, 79 insertions(+) create mode 100644 tests/tcg/arm/meson.build
tests/tcg/arm/meson.build new file +78 -0
@@ -0,0 +1,78 @@ +cc = 'arm-linux-gnueabihf-gcc' +cc_dockerfile = 'debian-all-test-cross' +cc_docker_arch = ['aarch64', 'x86_64'] + +tests = [] + +# Multi arch tests +multi_src = [] +foreach t: tcg_tests['multiarch-linux-user']['tests'] + foreach src, setup: t + new_cflags = [] + if 'cflags' in setup + new_cflags = setup['cflags'] + endif + if fs.stem(src) == 'float_madds' + new_cflags += ['-mfpu=neon-vfpv4'] + elif fs.stem(src) == 'test-plugin-set-pc' + # Require emitting arm32 insns, otherwise the vCPU might accidentally + # try to execute Thumb insns in arm32 mode after qemu_plugin_set_pc() + new_cflags += ['-marm'] + endif + if src not in multi_src + setup += {'cflags': new_cflags} + multi_src += src + endif + tests += {src: setup} + endforeach +endforeach + +tests += { + 'commpage.c': {}, + 'hello-arm.c': { + 'cflags': ['-marm', '-nostdlib', '-ffreestanding', '-fno-stack-protector'], + }, + 'fcvt.c': { + 'cflags': ['-lm', '-march=armv8.2-a+fp16', '-mfpu=neon-fp-armv8'], + 'expected_output': 'fcvt.ref', + }, + 'pcalign-a32.c': {'cflags': ['-marm']}, +} + +# Vector SHA1 +# Work around compiler false-positive warning, as we do for the 'sha1' test +tests += {'../multiarch/sha1.c': { + 'exe_name': 'sha1-vector', + 'cflags': ['-O3', '-Wno-stringop-overread'], + 'expected_output': '../multiarch/sha1.ref', + }} + +# Vector versions of sha512 (-O3 triggers vectorisation) +tests += {'../multiarch/sha512.c': { + 'exe_name': 'sha512-vector', + 'cflags': ['-O3'], + }} + +# Semihosting tests +semihosting_cflags = ['-marm', '-mthumb', '-I', meson.current_source_dir()] +tests += { + '../multiarch/arm-compat-semi/semiconsole.c': { + 'cflags': semihosting_cflags, + 'wrapper': [prog_run_with_input, 'X'], + }, + '../multiarch/arm-compat-semi/semihosting.c': {'cflags': semihosting_cflags}, +} + +if 'qemu-arm' in emulators + tcg_tests += { + 'arm-linux-user': { + 'cc': cc, + 'cc_dockerfile': cc_dockerfile, + 'cc_docker_arch': cc_docker_arch, + 'folder': 'arm', + 'gdb_arch': 'arm', + 'qemu': emulators['qemu-arm'], + 'tests': tests, + } + } +endif
tests/tcg/meson.build +1 -0
@@ -137,6 +137,7 @@ endforeach subdir('aarch64') subdir('aarch64_be') subdir('alpha') +subdir('arm') image_targets = {} exe_targets = []
Signature · 1 line
2.47.3
PATCH v3 42/91 tests/tcg/arm: system tests
In reply to Pierrick Bouvier--- tests/tcg/arm/meson.build | 2 + tests/tcg/arm/system/meson.build | 66 ++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 tests/tcg/arm/system/meson.build
tests/tcg/arm/meson.build +2 -0
@@ -2,6 +2,8 @@ cc = 'arm-linux-gnueabihf-gcc' cc_dockerfile = 'debian-all-test-cross' cc_docker_arch = ['aarch64', 'x86_64'] +subdir('system') + tests = [] # Multi arch tests
tests/tcg/arm/system/meson.build new file +66 -0
66 lines not on this page · raw message
Signature · 1 line
2.47.3
PATCH v3 43/91 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.47.3
Re: [PATCH v3 43/91] tests/tcg/hexagon/overflow.c: add missing include
Quoted 6 lines · Pierrick Bouvier
../tests/tcg/hexagon/overflow.c:59:1: error: unknown type name 'bool'Signed-off-by Pierrick Bouvier <[email protected]>--- tests/tcg/hexagon/overflow.c | 1 + 1 file changed, 1 insertion(+)
PATCH v3 44/91 tests/tcg/hexagon: user tests
In reply to Pierrick Bouvier--- tests/tcg/hexagon/meson.build | 111 ++++++++++++++++++++++++++++++++++ tests/tcg/meson.build | 1 + 2 files changed, 112 insertions(+) create mode 100644 tests/tcg/hexagon/meson.build
tests/tcg/hexagon/meson.build new file +111 -0
@@ -0,0 +1,111 @@ +tests = [] + +cflags = ['-Wno-incompatible-pointer-types', '-Wno-undefined-internal', + '-fno-unroll-loops', '-fno-stack-protector'] +asmflags = [cflags, '-nostdlib', '-mv67', files('crt.S')] + +multi_src = [] +foreach t: tcg_tests['multiarch-linux-user']['tests'] + foreach src, setup: t + if 'gdb_test' in setup + # gdb does not support hexagon, ignore test + continue + endif + new_cflags = [] + if 'cflags' in setup + new_cflags += setup['cflags'] + endif + new_cflags += cflags + if src not in multi_src + setup += {'cflags': [new_cflags]} + multi_src += src + endif + tests += {src: setup} + endforeach +endforeach + +tests += { + 'atomics.c': {'cflags': cflags}, + 'brev.c': {'cflags': cflags}, + # Compile for v66 so that the ELF selects a v66 CPU; the test then + # exercises revision gating by executing a v68 .word instruction. + 'check_rev_gating.c': { + 'cflags': [cflags, '-mv66', '-O2'], + 'qemu_args': ['-cpu', 'v66'], + }, + 'circ.c': {'cflags': cflags}, + 'first.S': {'cflags': asmflags}, + 'fpstuff.c': {'cflags': cflags}, + 'hex_sigsegv.c': {'cflags': cflags}, + 'hvx_misc.c': {'cflags': [cflags, '-mhvx', '-mv69']}, + 'hvx_histogram.c': { + 'cflags': [cflags, '-mhvx', '-Wno-gnu-folding-constant', + files('hvx_histogram_row.S')] + }, + 'invalid-encoding.c': {'cflags': cflags}, + 'invalid-slots.c': {'cflags': cflags}, + 'load_align.c': {'cflags': cflags}, + 'load_unpack.c': {'cflags': cflags}, + # Build this test with -mv71 to exercise the CABAC instruction + 'misc.c': {'cflags': [cflags, '-mv71', '-O2']}, + 'multiple-writes.c': {'cflags': cflags}, + 'overflow.c': {'cflags': cflags, 'exe_name': 'hex-overflow'}, + 'preg_alias.c': {'cflags': cflags}, + 'dual_stores.c': {'cflags': cflags}, + 'multi_result.c': {'cflags': cflags}, + 'mem_noshuf.c': {'cflags': cflags}, + 'mem_noshuf_exception.c': {'cflags': cflags}, + 'read_write_overlap.c': {'cflags': cflags}, + 'reg_mut.c': {'cflags': cflags}, + 'scatter_gather.c': {'cflags': [cflags, '-mhvx']}, + 'signal_context.c': {'cflags': cflags}, + 'test_abs.S': {'cflags': asmflags}, + 'test_bitcnt.S': {'cflags': asmflags}, + 'test_bitsplit.S': {'cflags': asmflags}, + 'test_call.S': {'cflags': asmflags}, + 'test_clobber.S': {'cflags': asmflags}, + 'test_cmp.S': {'cflags': asmflags}, + 'test_dotnew.S': {'cflags': asmflags}, + 'test_ext.S': {'cflags': asmflags}, + 'test_fibonacci.S': {'cflags': asmflags}, + 'test_hl.S': {'cflags': asmflags}, + 'test_hwloops.S': {'cflags': asmflags}, + 'test_jmp.S': {'cflags': asmflags}, + 'test_lsr.S': {'cflags': asmflags}, + 'test_mpyi.S': {'cflags': asmflags}, + 'test_packet.S': {'cflags': asmflags}, + 'test_reorder.S': {'cflags': asmflags}, + 'test_round.S': {'cflags': asmflags}, + 'test_vavgw.S': {'cflags': asmflags}, + 'test_vcmpb.S': {'cflags': asmflags}, + 'test_vcmpw.S': {'cflags': asmflags}, + 'test_vlsrw.S': {'cflags': asmflags}, + 'test_vmaxh.S': {'cflags': asmflags}, + 'test_vminh.S': {'cflags': asmflags}, + 'test_vpmpyh.S': {'cflags': asmflags}, + 'test_vspliceb.S': {'cflags': asmflags}, + 'unaligned_pc.c': {'cflags': cflags}, + 'usr.c': { + 'cflags': [cflags, '-mv67t', '-O2', + '-Wno-inline-asm', '-Wno-expansion-to-defined'] + }, + 'v68_scalar.c': {'cflags': [cflags, '-mv68']}, + 'v68_hvx.c': {'cflags': [cflags, '-mhvx', '-Wno-unused-function', '-mv68']}, + 'v69_hvx.c': {'cflags': [cflags, '-mhvx', '-Wno-unused-function', '-mv69']}, + 'v73_scalar.c': {'cflags': [cflags, '-Wno-unused-function', '-mv73']}, + 'vector_add_int.c': {'cflags': [cflags, '-mhvx', '-fvectorize']}, +} + +if 'qemu-hexagon' in emulators + tcg_tests += { + 'hexagon-linux-user': { + 'cc': 'hexagon-unknown-linux-musl-clang', + 'cc_dockerfile': 'debian-hexagon-cross', + 'cc_docker_arch': ['x86_64'], + 'folder': 'hexagon', + 'gdb_arch': 'hexagon_is_not_supported_by_gdb', + 'qemu': emulators['qemu-hexagon'], + 'tests': tests, + } + } +endif
tests/tcg/meson.build +1 -0
@@ -138,6 +138,7 @@ subdir('aarch64') subdir('aarch64_be') subdir('alpha') subdir('arm') +subdir('hexagon') image_targets = {} exe_targets = []
Signature · 1 line
2.47.3
PATCH v3 45/91 tests/tcg/multiarch/sha1.c: fix big endian implementation
In reply to Pierrick BouvierAll big endian targets were returning a wrong value due to this.
--- tests/tcg/multiarch/sha1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tests/tcg/multiarch/sha1.c +2 -2
@@ -48,10 +48,10 @@ void SHA1Final(unsigned char digest[20], SHA1_CTX* context);/* blk0() and blk() perform the initial expand. */ /* I got the idea of expanding during the round function from SSLeay */ -#if BYTE_ORDER ==LITTLE_ENDIAN +#if __BYTE_ORDER__ == __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 +#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__#define blk0 (i) block->l[i]#else #error "Endianness not defined!"
Signature · 1 line
2.47.3
PATCH v3 46/91 tests/tcg/hppa: add float reference files
In reply to Pierrick Bouvier--- 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.47.3
PATCH v3 47/91 tests/tcg/hppa: user tests
In reply to Pierrick Bouvier--- tests/tcg/hppa/meson.build | 22 ++++++++++++++++++++++ tests/tcg/meson.build | 1 + 2 files changed, 23 insertions(+) create mode 100644 tests/tcg/hppa/meson.build
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_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
@@ -139,6 +139,7 @@ subdir('aarch64_be') subdir('alpha') subdir('arm') subdir('hexagon') +subdir('hppa') image_targets = {} exe_targets = []
Signature · 1 line
2.47.3
PATCH v3 48/91 tests/tcg/i386: add missing float reference files
In reply to Pierrick BouvierDelete 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.47.3
PATCH v3 49/91 tests/tcg/i386: user tests
In reply to Pierrick BouvierWe did not include test-i386-fprem.c test as it has four problems:
- it's the only tcg test declared as "slow", which would require to create a test suite just for it.
- it compares output to host which limits how to test it
- it produces a gigantic reference file (64MB)
- finally, because it is in its own category, it never runs, and thus it's currently broken, there are flags difference with existing qemu-i386.
If we want to resurrect it, we could generate a simple hash as output by default, and store the reference, which would solve the first three problems. Also, we could add an option to do a full dump for debugging purpose, fix it, and solve 4.
--- tests/tcg/i386/meson.build | 56 ++++++++++++++++++++++++++++++++++++++ tests/tcg/meson.build | 1 + 2 files changed, 57 insertions(+) create mode 100644 tests/tcg/i386/meson.build
tests/tcg/i386/meson.build new file +56 -0
@@ -0,0 +1,56 @@ +cc = 'i686-linux-gnu-gcc' +cc_dockerfile = 'debian-i686-cross' +cc_docker_arch = ['x86_64'] + +tests = [] + +tests += tcg_tests['multiarch-linux-user']['tests'] + +tests += { + 'hello-i386.c': { + 'cflags': ['-ffreestanding', '-fno-stack-protector', '-nostdlib'], + }, + 'test-aes.c': {'cflags': ['-O1', '-msse2', '-maes']}, + 'test-i386-adcox.c': {'cflags': ['-O2']}, + 'test-i386-bmi2.c': {'cflags': ['-O2', '-fwrapv']}, + 'test-i386-f2xm1.c': {}, + 'test-i386-fbstp.c': {}, + 'test-i386-fisttp.c': {}, + 'test-i386-fldcst.c': {}, + 'test-i386-fp-exceptions.c': {}, + # TODO: this test is too long, and its output needs to be compared to native + # execution. Make it faster, and compare only a hash as output. + #'test-i386-fprem.c': {}, + 'test-i386-fpatan.c': {}, + 'test-i386-fscale.c': {}, + 'test-i386-fxam.c': {}, + 'test-i386-fxtract.c': {}, + 'test-i386-fyl2x.c': {}, + 'test-i386-fyl2xp1.c': {}, + 'test-i386-pcmpistri.c': {'cflags': ['-msse4.2']}, + 'test-i386-pseudo-denormal.c': {}, + 'test-i386-snan-convert.c': {}, + 'test-i386-sse-exceptions.c': {'cflags': ['-msse4.1', '-mfpmath=sse']}, + 'test-i386.c': { + 'cflags': [files('test-i386-code16.S'), files('test-i386-vm86.S'), + '-lm', '-fno-pie', '-Wl,--no-warn-rwx-segments'], + }, + '../multiarch/sha512.c': { + 'exe_name': 'sha512-sse', + 'cflags': ['-msse4.1', '-O3'], + }, +} + +if 'qemu-i386' in emulators + tcg_tests += { + 'i386-linux-user': { + 'cc': cc, + 'cc_dockerfile': cc_dockerfile, + 'cc_docker_arch': cc_docker_arch, + 'folder': 'i386', + 'gdb_arch': 'i386', + 'qemu': emulators['qemu-i386'], + 'tests': tests, + } + } +endif
tests/tcg/meson.build +1 -0
@@ -140,6 +140,7 @@ subdir('alpha') subdir('arm') subdir('hexagon') subdir('hppa') +subdir('i386') image_targets = {} exe_targets = []
Signature · 1 line
2.47.3
PATCH v3 50/91 tests/tcg/i386: system tests
In reply to Pierrick Bouvier--- tests/tcg/i386/meson.build | 2 ++ tests/tcg/i386/system/meson.build | 48 +++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 tests/tcg/i386/system/meson.build
tests/tcg/i386/meson.build +2 -0
@@ -2,6 +2,8 @@ cc = 'i686-linux-gnu-gcc' cc_dockerfile = 'debian-i686-cross' cc_docker_arch = ['x86_64'] +subdir('system') + tests = [] tests += tcg_tests['multiarch-linux-user']['tests']
tests/tcg/i386/system/meson.build new file +48 -0
48 lines not on this page · raw message
Signature · 1 line
2.47.3
PATCH v3 51/91 tests/tcg/loongarch64: user tests
In reply to Pierrick Bouvier--- tests/tcg/loongarch64/meson.build | 30 ++++++++++++++++++++++++++++++ tests/tcg/meson.build | 1 + 2 files changed, 31 insertions(+) create mode 100644 tests/tcg/loongarch64/meson.build
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_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_arch': cc_docker_arch, + 'folder': 'loongarch64', + 'gdb_arch': 'loongarch64', + 'qemu': emulators['qemu-loongarch64'], + 'tests': tests, + } + } +endif
tests/tcg/meson.build +1 -0
@@ -141,6 +141,7 @@ subdir('arm') subdir('hexagon') subdir('hppa') subdir('i386') +subdir('loongarch64') image_targets = {} exe_targets = []
Signature · 1 line
2.47.3
PATCH v3 52/91 tests/tcg/loongarch64: system tests
In reply to Pierrick Bouvier--- tests/tcg/loongarch64/meson.build | 2 + tests/tcg/loongarch64/system/meson.build | 47 ++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 tests/tcg/loongarch64/system/meson.build
tests/tcg/loongarch64/meson.build +2 -0
@@ -2,6 +2,8 @@ cc = 'loongarch64-unknown-linux-gnu-gcc' cc_dockerfile = 'debian-loongarch-cross' cc_docker_arch = ['x86_64'] +subdir('system') + tests = [] tests += tcg_tests['multiarch-linux-user']['tests']
tests/tcg/loongarch64/system/meson.build new file +47 -0
47 lines not on this page · raw message
Signature · 1 line
2.47.3
PATCH v3 53/91 tests/tcg/m68k: add float reference files
In reply to Pierrick Bouvier--- 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.47.3
PATCH v3 54/91 tests/tcg/m68k: user tests
In reply to Pierrick Bouvier--- tests/tcg/m68k/meson.build | 23 +++++++++++++++++++++++ tests/tcg/meson.build | 1 + 2 files changed, 24 insertions(+) create mode 100644 tests/tcg/m68k/meson.build
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_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
@@ -142,6 +142,7 @@ subdir('hexagon') subdir('hppa') subdir('i386') subdir('loongarch64') +subdir('m68k') image_targets = {} exe_targets = []
Signature · 1 line
2.47.3
PATCH v3 55/91 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"], "mips:isa64" : ["mips64", "mips64el"], "or1k" : ["or1k"], "powerpc:common" : ["ppc"],
Signature · 1 line
2.47.3
PATCH v3 56/91 tests/tcg/mips: add float reference files
In reply to Pierrick Bouvier--- 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.47.3
PATCH v3 57/91 test/tcg/mips: user tests
In reply to Pierrick Bouvier--- tests/tcg/meson.build | 1 + tests/tcg/mips/meson.build | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 tests/tcg/mips/meson.build
tests/tcg/meson.build +1 -0
@@ -143,6 +143,7 @@ subdir('hppa') subdir('i386') subdir('loongarch64') subdir('m68k') +subdir('mips') image_targets = {} exe_targets = []
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_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.47.3
PATCH v3 58/91 tests/tcg/mips64: add float reference files
In reply to Pierrick Bouvier--- 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.47.3
PATCH v3 59/91 tests/tcg/mips64: user tests
In reply to Pierrick Bouvier--- tests/tcg/meson.build | 1 + tests/tcg/mips64/meson.build | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 tests/tcg/mips64/meson.build
tests/tcg/meson.build +1 -0
@@ -144,6 +144,7 @@ subdir('i386') subdir('loongarch64') subdir('m68k') subdir('mips') +subdir('mips64') image_targets = {} exe_targets = []
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_arch': ['aarch64', 'x86_64'], + 'cc_feat_cflags': cc_feat_cflags, + 'folder': 'mips64', + 'gdb_arch': 'mips64', + 'qemu': emulators['qemu-mips64'], + 'tests': tcg_tests_mips64, + } + } +endif
Signature · 1 line
2.47.3
PATCH v3 60/91 tests/tcg/mips64el: add float reference files
In reply to Pierrick Bouvier--- 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.47.3
PATCH v3 61/91 tests/tcg/mips64el: user tests
In reply to Pierrick Bouvier--- tests/tcg/meson.build | 1 + tests/tcg/mips64el/meson.build | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tests/tcg/mips64el/meson.build
tests/tcg/meson.build +1 -0
@@ -145,6 +145,7 @@ subdir('loongarch64') subdir('m68k') subdir('mips') subdir('mips64') +subdir('mips64el') image_targets = {} exe_targets = []
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_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.47.3
PATCH v3 62/91 tests/docker/dockerfiles/debian-all-test-cross.docker: add or1k toolchain
In reply to Pierrick BouvierTo avoid escape hell in tests/lcitool/refresh, just use a raw multiline string instead of a list of strings.
--- .../dockerfiles/debian-all-test-cross.docker | 16 ++- tests/lcitool/refresh | 107 ++++++++++-------- 2 files changed, 75 insertions(+), 48 deletions(-)
tests/docker/dockerfiles/debian-all-test-cross.docker +15 -1
@@ -54,13 +54,26 @@ ENV LANG="en_US.UTF-8" ENV MAKE="/usr/bin/make" ENV NINJA="/usr/bin/ninja" ENV PYTHON="/usr/bin/python3" + # extras for cross and alternate toolchains RUN DEBIAN_FRONTEND=noninteractive eatmydata \ apt install -y --no-install-recommends \ 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 \
@@ -96,6 +109,7 @@ DEBIAN_FRONTEND=noninteractive eatmydata \ apt install -y --no-install-recommends \ ${AVAILABLE_COMPILERS} && \ dpkg-query --showformat '${Package}_${Version}_${Architecture}' --show > /packages.txt + ENV QEMU_CONFIGURE_OPTS=--disable-docs ENV DEF_TARGET_LIST=aarch64-linux-user,alpha-linux-user,arm-linux-user,hppa-linux-user,i386-linux-user,m68k-linux-user,mips-linux-user,mips64-linux-user,mips64el-linux-user,mipsel-linux-user,ppc-linux-user,ppc64-linux-user,ppc64le-linux-user,riscv64-linux-user,s390x-linux-user,sh4-linux-user,sparc64-linux-user # As a final step configure the user (if env is defined)
tests/lcitool/refresh +60 -47
119 lines not on this page · raw message
Signature · 1 line
2.47.3
Re: [PATCH v3 62/91] tests/docker/dockerfiles/debian-all-test-cross.docker: add or1k toolchain
Quoted 2 lines · Pierrick Bouvier
To avoid escape hell in tests/lcitool/refresh, just use a raw multiline string instead of a list of strings.
Could we have 1 patch for raw multiline conversion and another adding the or1k toolchain?
Quoted 6 lines
Signed-off-by Pierrick Bouvier <[email protected]>--- .../dockerfiles/debian-all-test-cross.docker | 16 ++- tests/lcitool/refresh | 107 ++++++++++-------- 2 files changed, 75 insertions(+), 48 deletions(-)
Re: [PATCH v3 62/91] tests/docker/dockerfiles/debian-all-test-cross.docker: add or1k toolchain
Quoted 14 lines · Philippe Mathieu-Daudé
Quoted 2 lines · Pierrick Bouvier
To avoid escape hell in tests/lcitool/refresh, just use a raw multiline string instead of a list of strings.
Could we have 1 patch for raw multiline conversion and another adding the or1k toolchain?
Quoted 6 lines
Signed-off-by Pierrick Bouvier <[email protected]>---
.../dockerfiles/debian-all-test-cross.docker | 16 ++- tests/lcitool/refresh | 107 ++++++++++--------2 files changed, 75 insertions(+), 48 deletions(-)
I'll send also another series for fixing missing 'apt update' in dockerfiles, which will conflict with this part since it's concerned. I'll do the change for multi lines string there, and rebase later on top.
Regards,
Pierrick
PATCH v3 63/91 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.47.3
Re: [PATCH v3 63/91] tests/tcg/or1k/test_addic.c: remove unused variables
Quoted 4 lines · Pierrick Bouvier
Signed-off-by Pierrick Bouvier <[email protected]>--- tests/tcg/or1k/test_addic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
PATCH v3 64/91 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.47.3
PATCH v3 65/91 tests/tcg/or1k: add float reference files
In reply to Pierrick Bouvier--- 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.47.3
PATCH v3 66/91 plugins/api.c: identify or1k pc register and mark it as read only
In reply to Pierrick Bouvierplugin registers.c check 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.47.3
Re: [PATCH v3 66/91] plugins/api.c: identify or1k pc register and mark it as read only
Quoted 1 line · Pierrick Bouvier
plugin
registers.ccheck if at least one register is read-only, which
"checks"?
Quoted 6 lines
was missing for target or1k.
Signed-off-by Pierrick Bouvier <[email protected]>--- plugins/api.c | 2 ++ 1 file changed, 2 insertions(+)
PATCH v3 67/91 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/meson.build | 72 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 tests/tcg/or1k/meson.build
tests/tcg/meson.build +1 -0
@@ -146,6 +146,7 @@ subdir('m68k') subdir('mips') subdir('mips64') subdir('mips64el') +subdir('or1k') image_targets = {} exe_targets = []
tests/tcg/or1k/meson.build new file +72 -0
72 lines not on this page · raw message
Signature · 1 line
2.47.3