OSDN Git Service

target/mips: Refactor and fix COPY_S.<B|H|W|D> instructions
authorMateja Marjanovic <Mateja.Marjanovic@rt-rk.com>
Tue, 2 Apr 2019 13:43:23 +0000 (15:43 +0200)
committerAleksandar Markovic <amarkovic@wavecomp.com>
Sun, 26 May 2019 15:32:57 +0000 (17:32 +0200)
commit631c467461496dcf6d6a3e4c3d27a1433e96868e
treed169df8e883f85c6b0138a5897109ef37419aafe
parent6decc572dcedbf298ae30f8213b39c8b842a595a
target/mips: Refactor and fix COPY_S.<B|H|W|D> instructions

The old version of the helper for the COPY_S.<B|H|W|D> MSA instructions
has been replaced with four helpers that don't use switch, and change
the endianness of the given index, when executed on a big endian host.

Signed-off-by: Mateja Marjanovic <mateja.marjanovic@rt-rk.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Message-Id: <1554212605-16457-4-git-send-email-mateja.marjanovic@rt-rk.com>
target/mips/helper.h
target/mips/msa_helper.c
target/mips/translate.c