mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
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>
This commit is contained in:
parent
e43692bce6
commit
815061b9da
7 changed files with 63 additions and 0 deletions
|
@ -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
|
||||
|
|
14
tests/tcg/tricore/asm/test_ftohp.S
Normal file
14
tests/tcg/tricore/asm/test_ftohp.S
Normal file
|
@ -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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue