2014-02-10 17:20:52 +01:00
|
|
|
#include "macros.inc"
|
2011-09-06 01:55:57 +02:00
|
|
|
|
|
|
|
test_suite boolean
|
|
|
|
|
2019-02-18 15:22:41 +01:00
|
|
|
#if XCHAL_HAVE_BOOLEANS
|
|
|
|
|
2011-09-06 01:55:57 +02:00
|
|
|
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
|
|
|
|
|
2019-02-18 15:22:41 +01:00
|
|
|
#endif
|
|
|
|
|
2011-09-06 01:55:57 +02:00
|
|
|
test_suite_end
|