Blame SOURCES/valgrind-3.17.0-s390_insn_as_string.patch

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