2014-02-10 20:20:52 +04:00
|
|
|
#include "macros.inc"
|
2011-09-06 03:55:57 +04:00
|
|
|
|
|
|
|
test_suite mul32
|
|
|
|
|
2019-02-18 17:40:38 +03:00
|
|
|
#if XCHAL_HAVE_MUL32
|
|
|
|
|
2011-09-06 03:55:57 +04:00
|
|
|
test mull
|
|
|
|
movi a2, 0x137f5a5a
|
|
|
|
mov a3, a2
|
|
|
|
movi a4, 0xa5a5137f
|
|
|
|
movi a6, 0x5de480a6
|
|
|
|
mull a5, a2, a4
|
|
|
|
assert eq, a5, a6
|
|
|
|
mull a2, a2, a4
|
|
|
|
assert eq, a2, a6
|
|
|
|
mull a3, a4, a3
|
|
|
|
assert eq, a3, a6
|
|
|
|
test_end
|
|
|
|
|
2019-02-18 17:40:38 +03:00
|
|
|
#endif
|
|
|
|
|
2011-09-06 03:55:57 +04:00
|
|
|
/* unfortunately dc232b doesn't have muluh/mulsh*/
|
|
|
|
|
|
|
|
test_suite_end
|