Skip to content

Commit

Permalink
tests/tcg/xtensa: enable boolean tests
Browse files Browse the repository at this point in the history
Uncomment test_boolean in the test makefile. Make actual tests code
conditional on the presence of boolean option in the config.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
  • Loading branch information
jcmvbkbc committed Feb 28, 2019
1 parent 64eef9b commit 912f161
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tcg/xtensa/Makefile
Expand Up @@ -31,7 +31,7 @@ CRT = crt.o vectors.o

TESTCASES += test_b.tst
TESTCASES += test_bi.tst
#TESTCASES += test_boolean.tst
TESTCASES += test_boolean.tst
TESTCASES += test_break.tst
TESTCASES += test_bz.tst
TESTCASES += test_cache.tst
Expand Down
4 changes: 4 additions & 0 deletions tests/tcg/xtensa/test_boolean.S
Expand Up @@ -2,6 +2,8 @@

test_suite boolean

#if XCHAL_HAVE_BOOLEANS

test all4
movi a2, 0xfec0
wsr a2, br
Expand All @@ -20,4 +22,6 @@ test all4
assert eq, a2, a3
test_end

#endif

test_suite_end

0 comments on commit 912f161

Please sign in to comment.