OSDN Git Service

target/ppc: fix xxspltw for big endian hosts
authorMatheus Ferst <matheus.ferst@eldorado.org.br>
Mon, 14 Mar 2022 14:57:17 +0000 (15:57 +0100)
committerCédric Le Goater <clg@kaod.org>
Mon, 14 Mar 2022 14:57:17 +0000 (15:57 +0100)
commit52d324ff13fcf97bc31f2e24803e366d330aa7cc
tree58fbe26593e6b80df3fdfbca6277b3cc12001a86
parentc6242335b3ff504a552ceba18c8b8ab9dc684a77
target/ppc: fix xxspltw for big endian hosts

Fix a typo in the host endianness macro and add a simple test to detect
regressions.

Fixes: 9bb0048ec6f8 ("target/ppc: convert xxspltw to vector operations")
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220310172047.61094-1-matheus.ferst@eldorado.org.br>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
target/ppc/translate/vsx-impl.c.inc
tests/tcg/ppc64/Makefile.target
tests/tcg/ppc64le/Makefile.target
tests/tcg/ppc64le/xxspltw.c [new file with mode: 0644]