target/sparc: Implement XMULX

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson 2023-11-04 18:31:59 -07:00
parent 680af1b4a5
commit 029b0283df
4 changed files with 19 additions and 0 deletions

View file

@ -20,6 +20,7 @@
#include "qemu/osdep.h"
#include "cpu.h"
#include "exec/helper-proto.h"
#include "crypto/clmul.h"
target_ulong helper_array8(target_ulong rs1, target_ulong rs2)
{
@ -509,3 +510,13 @@ uint64_t helper_fslas32(uint64_t src1, uint64_t src2)
return r.ll;
}
uint64_t helper_xmulx(uint64_t src1, uint64_t src2)
{
return int128_getlo(clmul_64(src1, src2));
}
uint64_t helper_xmulxhi(uint64_t src1, uint64_t src2)
{
return int128_gethi(clmul_64(src1, src2));
}