Blame SOURCES/valgrind-3.17.0-s390_insn_as_string.patch

39285c
commit 45873298ff2d17accc65654d64758360616aade5
39285c
Author: Andreas Arnez <arnez@linux.ibm.com>
39285c
Date:   Tue Mar 30 18:10:43 2021 +0200
39285c
39285c
    s390x: Add missing UNOP insns to s390_insn_as_string
39285c
    
39285c
    Some unary operator insns are not handled by s390_insn_as_string().  If
39285c
    they are encountered while the appropriate trace flag is set, a vpanic
39285c
    occurs.  Fix this: add handling for the missing insns.
39285c
39285c
diff --git a/VEX/priv/host_s390_defs.c b/VEX/priv/host_s390_defs.c
39285c
index 8762975b2..6e0734ae0 100644
39285c
--- a/VEX/priv/host_s390_defs.c
39285c
+++ b/VEX/priv/host_s390_defs.c
39285c
@@ -7860,12 +7860,24 @@ s390_insn_as_string(const s390_insn *insn)
39285c
          op = "v-vunpacku";
39285c
          break;
39285c
 
39285c
-      case S390_VEC_FLOAT_NEG:
39285c
-         op = "v-vfloatneg";
39285c
+      case S390_VEC_ABS:
39285c
+         op = "v-vabs";
39285c
          break;
39285c
 
39285c
-      case S390_VEC_FLOAT_SQRT:
39285c
-         op = "v-vfloatsqrt";
39285c
+      case S390_VEC_COUNT_LEADING_ZEROES:
39285c
+         op = "v-vclz";
39285c
+         break;
39285c
+
39285c
+      case S390_VEC_COUNT_TRAILING_ZEROES:
39285c
+         op = "v-vctz";
39285c
+         break;
39285c
+
39285c
+      case S390_VEC_COUNT_ONES:
39285c
+         op = "v-vpopct";
39285c
+         break;
39285c
+
39285c
+      case S390_VEC_FLOAT_NEG:
39285c
+         op = "v-vfloatneg";
39285c
          break;
39285c
 
39285c
       case S390_VEC_FLOAT_ABS:
39285c
@@ -7876,6 +7888,10 @@ s390_insn_as_string(const s390_insn *insn)
39285c
          op = "v-vfloatnabs";
39285c
          break;
39285c
 
39285c
+      case S390_VEC_FLOAT_SQRT:
39285c
+         op = "v-vfloatsqrt";
39285c
+         break;
39285c
+
39285c
       default:
39285c
          goto fail;
39285c
       }