summaryrefslogtreecommitdiffstats
path: root/tcg/mips/tcg-target.h
diff options
context:
space:
mode:
authorRichard Henderson2013-08-14 23:35:56 +0200
committerRichard Henderson2013-09-02 18:08:29 +0200
commit03271524b66dfc979cc0412bdb5d8d617426b644 (patch)
tree31d2002d9a8ab63e59bbcfd0772599ffa79271c0 /tcg/mips/tcg-target.h
parentMerge remote-tracking branch 'luiz/queue/qmp' into staging (diff)
downloadqemu-03271524b66dfc979cc0412bdb5d8d617426b644.tar.gz
qemu-03271524b66dfc979cc0412bdb5d8d617426b644.tar.xz
qemu-03271524b66dfc979cc0412bdb5d8d617426b644.zip
tcg: Add muluh and mulsh opcodes
Use them in places where mulu2 and muls2 are used. Optimize mulx2 with dead low part to mulxh. Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/mips/tcg-target.h')
-rw-r--r--tcg/mips/tcg-target.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcg/mips/tcg-target.h b/tcg/mips/tcg-target.h
index a438950bc1..6cb7c2f3c4 100644
--- a/tcg/mips/tcg-target.h
+++ b/tcg/mips/tcg-target.h
@@ -89,6 +89,8 @@ typedef enum {
#define TCG_TARGET_HAS_eqv_i32 0
#define TCG_TARGET_HAS_nand_i32 0
#define TCG_TARGET_HAS_muls2_i32 1
+#define TCG_TARGET_HAS_muluh_i32 0
+#define TCG_TARGET_HAS_mulsh_i32 0
/* optional instructions only implemented on MIPS4, MIPS32 and Loongson 2 */
#if (defined(__mips_isa_rev) && (__mips_isa_rev >= 1)) || \