mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
tests/tcg/xtensa: add FPU2000 coprocessor tests
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
parent
fd78bc55a4
commit
de0cebd930
2 changed files with 28 additions and 0 deletions
|
@ -42,6 +42,7 @@ TESTCASES += test_flix.tst
|
||||||
TESTCASES += test_fp0_arith.tst
|
TESTCASES += test_fp0_arith.tst
|
||||||
TESTCASES += test_fp0_conv.tst
|
TESTCASES += test_fp0_conv.tst
|
||||||
TESTCASES += test_fp1.tst
|
TESTCASES += test_fp1.tst
|
||||||
|
TESTCASES += test_fp_cpenable.tst
|
||||||
TESTCASES += test_interrupt.tst
|
TESTCASES += test_interrupt.tst
|
||||||
TESTCASES += test_loop.tst
|
TESTCASES += test_loop.tst
|
||||||
TESTCASES += test_lsc.tst
|
TESTCASES += test_lsc.tst
|
||||||
|
|
27
tests/tcg/xtensa/test_fp_cpenable.S
Normal file
27
tests/tcg/xtensa/test_fp_cpenable.S
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue