From 16a55143dcd5f7a11fed8fbb9507920362bfed3d Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 3 May 2018 14:40:39 -0400 Subject: [PATCH] tcg: Document INDEX_mul[us]h_* Backports commit d103021269ca9307ed7ca0d845d2b9e6c387509a from qemu --- qemu/tcg/README | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qemu/tcg/README b/qemu/tcg/README index 0f9a25f1..ff3f231c 100644 --- a/qemu/tcg/README +++ b/qemu/tcg/README @@ -426,6 +426,14 @@ double-word product T0. The later is returned in two single-word outputs. Similar to mulu2, except the two inputs T1 and T2 are signed. +* mulsh_i32/i64 t0, t1, t2 +* muluh_i32/i64 t0, t1, t2 + +Provide the high part of a signed or unsigned multiply, respectively. +If mulu2/muls2 are not provided by the backend, the tcg-op generator +can obtain the same results can be obtained by emitting a pair of +opcodes, mul+muluh/mulsh. + ********* Memory Barrier support * mb <$arg>