tests/tcg/xtensa: fix endianness issues in test_b
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 18 Feb 2019 14:18:13 +0000 (06:18 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Thu, 28 Feb 2019 12:43:22 +0000 (04:43 -0800)
commit64eef9bf95a3d3759f2239f9e2b8425fc97858a7
tree3cf141b6ff6f1d5389802bb58fee005341d34004
parentfafd5533430cc5c16f419282ae46874271b0d30c
tests/tcg/xtensa: fix endianness issues in test_b

Use bbci.l/bbsi.l instead of bbci/bbsi, as they are assembly macros that
accept little-endian bit number and produce correct immediate for both
little and big endian configurations. Choose value loaded into register
for bbc/bbs opcodes based on configuration endianness.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
tests/tcg/xtensa/test_b.S