summaryrefslogtreecommitdiffstats
path: root/tcg/riscv
diff options
context:
space:
mode:
authorRichard Henderson2019-02-25 19:29:25 +0100
committerRichard Henderson2019-04-24 22:04:33 +0200
commitfce1296f135669eca85dc42154a2a352c818ad76 (patch)
tree847ec48009722f8cc322e1661a080de798d77bc1 /tcg/riscv
parenttcg: Implement tcg_gen_extract2_{i32,i64} (diff)
downloadqemu-fce1296f135669eca85dc42154a2a352c818ad76.tar.gz
qemu-fce1296f135669eca85dc42154a2a352c818ad76.tar.xz
qemu-fce1296f135669eca85dc42154a2a352c818ad76.zip
tcg: Add INDEX_op_extract2_{i32,i64}
This will let backends implement the double-word shift operation. Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/riscv')
-rw-r--r--tcg/riscv/tcg-target.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcg/riscv/tcg-target.h b/tcg/riscv/tcg-target.h
index 60918cacb4..032439d806 100644
--- a/tcg/riscv/tcg-target.h
+++ b/tcg/riscv/tcg-target.h
@@ -93,6 +93,7 @@ typedef enum {
#define TCG_TARGET_HAS_deposit_i32 0
#define TCG_TARGET_HAS_extract_i32 0
#define TCG_TARGET_HAS_sextract_i32 0
+#define TCG_TARGET_HAS_extract2_i32 0
#define TCG_TARGET_HAS_add2_i32 1
#define TCG_TARGET_HAS_sub2_i32 1
#define TCG_TARGET_HAS_mulu2_i32 0
@@ -128,6 +129,7 @@ typedef enum {
#define TCG_TARGET_HAS_deposit_i64 0
#define TCG_TARGET_HAS_extract_i64 0
#define TCG_TARGET_HAS_sextract_i64 0
+#define TCG_TARGET_HAS_extract2_i64 0
#define TCG_TARGET_HAS_extrl_i64_i32 1
#define TCG_TARGET_HAS_extrh_i64_i32 1
#define TCG_TARGET_HAS_ext8s_i64 1