diff options
author | Max Filippov | 2018-09-01 03:35:13 +0200 |
---|---|---|
committer | Max Filippov | 2019-02-28 13:43:24 +0100 |
commit | de0cebd93089ff2ebf2ebf9d287381eb73cbb9aa (patch) | |
tree | cbbaa97f20c824a639dfb3d3aa98e3350c4b7f59 /tests | |
parent | tests/tcg/xtensa: add FP1 group tests (diff) | |
download | qemu-de0cebd93089ff2ebf2ebf9d287381eb73cbb9aa.tar.gz qemu-de0cebd93089ff2ebf2ebf9d287381eb73cbb9aa.tar.xz qemu-de0cebd93089ff2ebf2ebf9d287381eb73cbb9aa.zip |
tests/tcg/xtensa: add FPU2000 coprocessor tests
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tcg/xtensa/Makefile | 1 | ||||
-rw-r--r-- | tests/tcg/xtensa/test_fp_cpenable.S | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/tests/tcg/xtensa/Makefile b/tests/tcg/xtensa/Makefile index 2b323adb8d..2bd4491769 100644 --- a/tests/tcg/xtensa/Makefile +++ b/tests/tcg/xtensa/Makefile @@ -42,6 +42,7 @@ TESTCASES += test_flix.tst TESTCASES += test_fp0_arith.tst TESTCASES += test_fp0_conv.tst TESTCASES += test_fp1.tst +TESTCASES += test_fp_cpenable.tst TESTCASES += test_interrupt.tst TESTCASES += test_loop.tst TESTCASES += test_lsc.tst diff --git a/tests/tcg/xtensa/test_fp_cpenable.S b/tests/tcg/xtensa/test_fp_cpenable.S new file mode 100644 index 0000000000..882bb2f3ce --- /dev/null +++ b/tests/tcg/xtensa/test_fp_cpenable.S @@ -0,0 +1,27 @@ +#include "macros.inc" + +test_suite fp_cpenable + +#if XCHAL_HAVE_FP + +test rur + set_vector kernel, 2f + movi a2, 0 + wsr a2, cpenable + isync +1: + rur a2, fsr + //wfr f0, a2 + test_fail +2: + movi a2, 1b + rsr a3, epc1 + assert eq, a2, a3 + movi a2, 32 + rsr a3, exccause + assert eq, a2, a3 +test_end + +#endif + +test_suite_end |