tests/tcg/ppc64le: drop __int128 usage in bcdsub
commit8189cb850728fd52cd98f5ee4640b5dc4e40239d
authorMatheus Ferst <matheus.ferst@eldorado.org.br>
Sat, 5 Mar 2022 06:16:46 +0000 (5 07:16 +0100)
committerCédric Le Goater <clg@kaod.org>
Sat, 5 Mar 2022 06:16:46 +0000 (5 07:16 +0100)
tree0915103ca582881416b577c0a50f655b917a6d07
parent4e4b5a3eacc51e60cdf2dff585702e560d674268
tests/tcg/ppc64le: drop __int128 usage in bcdsub

Using __int128 with inline asm constraints like "v" generates incorrect
code when compiling with LLVM/Clang (e.g., only one doubleword of the
VSR is loaded). Instead, use a GPR pair to pass the 128-bits value and
load the VSR with mtvsrd/xxmrghd.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Message-Id: <20220304165417.1981159-4-matheus.ferst@eldorado.org.br>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
tests/tcg/ppc64le/bcdsub.c