Blame SOURCES/valgrind-3.17.0-s390_insn_as_string.patch

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