Blame SOURCES/valgrind-3.17.0-s390_insn_as_string.patch

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