Re: [PATCH v2 37/55] target/mips: Use 8-byte memory ops for msa load/store

2021-08-18 Thread Richard Henderson
On 8/17/21 11:21 PM, Philippe Mathieu-Daudé wrote: +#ifdef TARGET_WORDS_BIGENDIAN +static inline uint64_t bswap16x4(uint64_t x) +{ +uint64_t m = 0x00ff00ff00ff00ffull; +return ((x & m) << 8) | ((x >> 8) & m); +} + +static inline uint64_t bswap32x2(uint64_t x) +{ +return ror64(bswap64(

Re: [PATCH v2 37/55] target/mips: Use 8-byte memory ops for msa load/store

2021-08-18 Thread Philippe Mathieu-Daudé
On 8/3/21 6:14 AM, Richard Henderson wrote: > Rather than use 4-16 separate operations, use 2 operations > plus some byte reordering as necessary. > > Cc: Philippe Mathieu-Daudé > Signed-off-by: Richard Henderson > --- > target/mips/tcg/msa_helper.c | 201 +-- >

[PATCH v2 37/55] target/mips: Use 8-byte memory ops for msa load/store

2021-08-02 Thread Richard Henderson
Rather than use 4-16 separate operations, use 2 operations plus some byte reordering as necessary. Cc: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/mips/tcg/msa_helper.c | 201 +-- 1 file changed, 71 insertions(+), 130 deletions(-) diff --g