]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips: support Ico_U1 in extractConst() for nanoMIPS
authorAleksandar Rikalo <aleksandar.rikalo@rt-rk.com>
Fri, 17 Apr 2020 18:31:42 +0000 (18:31 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Fri, 17 Apr 2020 18:31:42 +0000 (18:31 +0000)
Add missing case in extractConst().

It fixes Memcheck chrashing on nanoMIPS.

VEX/priv/host_nanomips_isel.c

index d348f219304bd19e82a6f807b77bd27d1f6f9916..16932dd65f04004b6b45e3eed7a2a9736f946a98 100644 (file)
@@ -194,6 +194,9 @@ static inline Int extractConst(IRConst *c)
       case Ico_U8:
          return (Int)(Char)c->Ico.U8;
 
+      case Ico_U1:
+         return !!c->Ico.U1;
+
       default:
          vpanic("NANOMIPSisel_extractConst() fails");
    }