summaryrefslogtreecommitdiffstats
path: root/tcg/tci/tcg-target.h
diff options
context:
space:
mode:
authorRichard Henderson2015-07-24 16:16:00 +0200
committerRichard Henderson2015-08-24 20:10:54 +0200
commit609ad70562793937257c89d07bf7c1370b9fc9aa (patch)
treefd10a7febb6cfe6934d301b2b2dc7b675bade774 /tcg/tci/tcg-target.h
parenttcg: update README about size changing ops (diff)
downloadqemu-609ad70562793937257c89d07bf7c1370b9fc9aa.tar.gz
qemu-609ad70562793937257c89d07bf7c1370b9fc9aa.tar.xz
qemu-609ad70562793937257c89d07bf7c1370b9fc9aa.zip
tcg: Split trunc_shr_i32 opcode into extr[lh]_i64_i32
Rather than allow arbitrary shift+trunc, only concern ourselves with low and high parts. This is all that was being used anyway. Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/tci/tcg-target.h')
-rw-r--r--tcg/tci/tcg-target.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tcg/tci/tcg-target.h b/tcg/tci/tcg-target.h
index 8b1139b3f2..77e5952781 100644
--- a/tcg/tci/tcg-target.h
+++ b/tcg/tci/tcg-target.h
@@ -84,7 +84,8 @@
#define TCG_TARGET_HAS_mulsh_i32 0
#if TCG_TARGET_REG_BITS == 64
-#define TCG_TARGET_HAS_trunc_shr_i64_i32 0
+#define TCG_TARGET_HAS_extrl_i64_i32 0
+#define TCG_TARGET_HAS_extrh_i64_i32 0
#define TCG_TARGET_HAS_bswap16_i64 1
#define TCG_TARGET_HAS_bswap32_i64 1
#define TCG_TARGET_HAS_bswap64_i64 1