diff options
author | Bastian Koppelmann <kbastian@mail.uni-paderborn.de> | 2023-08-28 13:26:46 +0200 |
---|---|---|
committer | Bastian Koppelmann <kbastian@mail.uni-paderborn.de> | 2023-09-28 10:45:22 +0200 |
commit | 815061b9da88a3a9a90fae58b5a778632e0cc2df (patch) | |
tree | 4aa125ddb7d925f729a527e3e4691bd36971ff1d /tests | |
parent | e43692bce684b76480df66473a9b3bec7a7d312a (diff) | |
download | qemu-815061b9da88a3a9a90fae58b5a778632e0cc2df.zip qemu-815061b9da88a3a9a90fae58b5a778632e0cc2df.tar.gz qemu-815061b9da88a3a9a90fae58b5a778632e0cc2df.tar.bz2 |
target/tricore: Implement ftohp insn
reported in https://gitlab.com/qemu-project/qemu/-/issues/1667
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Message-ID: <20230828112651.522058-7-kbastian@mail.uni-paderborn.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tcg/tricore/Makefile.softmmu-target | 1 | ||||
-rw-r--r-- | tests/tcg/tricore/asm/test_ftohp.S | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/tcg/tricore/Makefile.softmmu-target b/tests/tcg/tricore/Makefile.softmmu-target index 91ae129..fc545d4 100644 --- a/tests/tcg/tricore/Makefile.softmmu-target +++ b/tests/tcg/tricore/Makefile.softmmu-target @@ -14,6 +14,7 @@ TESTS += test_dextr.asm.tst TESTS += test_dvstep.asm.tst TESTS += test_fadd.asm.tst TESTS += test_fmul.asm.tst +TESTS += test_ftohp.asm.tst TESTS += test_ftoi.asm.tst TESTS += test_ftou.asm.tst TESTS += test_imask.asm.tst diff --git a/tests/tcg/tricore/asm/test_ftohp.S b/tests/tcg/tricore/asm/test_ftohp.S new file mode 100644 index 0000000..9e23141 --- /dev/null +++ b/tests/tcg/tricore/asm/test_ftohp.S @@ -0,0 +1,14 @@ +#include "macros.h" +.text +.global _start +_start: + TEST_D_D(ftohp, 1, 0xffff, 0xffffffff) + TEST_D_D(ftohp, 2, 0xfc00, 0xff800000) + TEST_D_D(ftohp, 3, 0x7c00, 0x7f800000) + TEST_D_D(ftohp, 4, 0x0, 0x0) + TEST_D_D(ftohp, 5, 0x5, 0x34a43580) + + #TEST_D_D_PSW(ftohp, 6, 0x400, 0x8c000b80, 0x387fee74) + + TEST_PASSFAIL + |