aboutsummaryrefslogtreecommitdiff
path: root/tcg/tcg-opc.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2013-09-09 17:03:24 -0700
committerRichard Henderson <rth@twiddle.net>2014-04-28 11:06:34 -0700
commit4bb7a41ed635960e1551e8b5a1aea9ee4d1758a3 (patch)
tree68ed85758ad038717290bd8f4aa4dae00d08935b /tcg/tcg-opc.h
parent71b926992e0e0a0da078873480c6fc1dd65af6fc (diff)
downloadqemu-4bb7a41ed635960e1551e8b5a1aea9ee4d1758a3.zip
qemu-4bb7a41ed635960e1551e8b5a1aea9ee4d1758a3.tar.gz
qemu-4bb7a41ed635960e1551e8b5a1aea9ee4d1758a3.tar.bz2
tcg: Add INDEX_op_trunc_shr_i32
Let the backend do something special for truncation. Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/tcg-opc.h')
-rw-r--r--tcg/tcg-opc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tcg/tcg-opc.h b/tcg/tcg-opc.h
index d71707d..adb6ce1 100644
--- a/tcg/tcg-opc.h
+++ b/tcg/tcg-opc.h
@@ -147,6 +147,10 @@ DEF(rotl_i64, 1, 2, 0, IMPL64 | IMPL(TCG_TARGET_HAS_rot_i64))
DEF(rotr_i64, 1, 2, 0, IMPL64 | IMPL(TCG_TARGET_HAS_rot_i64))
DEF(deposit_i64, 1, 2, 2, IMPL64 | IMPL(TCG_TARGET_HAS_deposit_i64))
+DEF(trunc_shr_i32, 1, 1, 1,
+ IMPL(TCG_TARGET_HAS_trunc_shr_i32)
+ | (TCG_TARGET_REG_BITS == 32 ? TCG_OPF_NOT_PRESENT : 0))
+
DEF(brcond_i64, 0, 2, 2, TCG_OPF_BB_END | IMPL64)
DEF(ext8s_i64, 1, 1, 0, IMPL64 | IMPL(TCG_TARGET_HAS_ext8s_i64))
DEF(ext16s_i64, 1, 1, 0, IMPL64 | IMPL(TCG_TARGET_HAS_ext16s_i64))