diff options
Diffstat (limited to 'qemu/tests/tcg/xtensa/test_boolean.S')
-rw-r--r-- | qemu/tests/tcg/xtensa/test_boolean.S | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/qemu/tests/tcg/xtensa/test_boolean.S b/qemu/tests/tcg/xtensa/test_boolean.S new file mode 100644 index 000000000..eac40e097 --- /dev/null +++ b/qemu/tests/tcg/xtensa/test_boolean.S @@ -0,0 +1,23 @@ +#include "macros.inc" + +test_suite boolean + +test all4 + movi a2, 0xfec0 + wsr a2, br + all4 b0, b0 + rsr a3, br + assert eq, a2, a3 + all4 b0, b4 + rsr a3, br + assert eq, a2, a3 + all4 b0, b8 + rsr a3, br + assert eq, a2, a3 + all4 b0, b12 + rsr a3, br + addi a2, a2, 1 + assert eq, a2, a3 +test_end + +test_suite_end |