Skip to contentSkip to conversation

tcg: Add load_dest parameter to GVecGen2

PATCH New Richard Henderson 1 participant 1 message Apr 18, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tcg: Add load_dest parameter to GVecGen2

We have this same parameter for GVecGen2i, GVecGen3, and GVecGen3i. This will make some SVE2 insns easier to parameterize.

---
 include/tcg/tcg-op-gvec.h |  2 ++
 tcg/tcg-op-gvec.c         | 45 ++++++++++++++++++++++++++++-----------
 2 files changed, 34 insertions(+), 13 deletions(-)
include/tcg/tcg-op-gvec.h +2 -0
index d89f91f40e..cea6497341 100644
@@ -109,6 +109,8 @@ typedef struct {
     uint8_t vece;
     /* Prefer i64 to v64.  */
     bool prefer_i64;
+    /* Load dest as a 2nd source operand.  */
+    bool load_dest;
 } GVecGen2;
 
 typedef struct {
tcg/tcg-op-gvec.c +32 -13

107 lines not on this page · raw message

Signature · 1 line
2.20.1