]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix type2index. It did not handle decimal floating point types.
authorFlorian Krohm <florian@eich-krohm.de>
Wed, 17 Sep 2014 19:48:36 +0000 (19:48 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Wed, 17 Sep 2014 19:48:36 +0000 (19:48 +0000)
nameOfTypeIndex likewise.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14546

lackey/lk_main.c

index 9af280d9b3186d02ad20d6afa1c4323da7161c24..bfa2fd8db8ab8ba95a41088edf8a976871ed36d6 100644 (file)
@@ -305,7 +305,7 @@ typedef enum { OpLoad=0, OpStore=1, OpAlu=2 } Op;
 
 /* --- Types --- */
 
-#define N_TYPES 11
+#define N_TYPES 14
 
 static Int type2index ( IRType ty )
 {
@@ -321,6 +321,9 @@ static Int type2index ( IRType ty )
       case Ity_F128:    return 8;
       case Ity_V128:    return 9;
       case Ity_V256:    return 10;
+      case Ity_D32:     return 11;
+      case Ity_D64:     return 12;
+      case Ity_D128:    return 13;
       default: tl_assert(0);
    }
 }
@@ -337,8 +340,11 @@ static const HChar* nameOfTypeIndex ( Int i )
       case 6: return "F32";  break;
       case 7: return "F64";  break;
       case 8: return "F128";  break;
-      case 9: return "V128"; break;
+      case 9: return "V128";  break;
       case 10: return "V256"; break;
+      case 11: return "D32";  break;
+      case 12: return "D64";  break;
+      case 13: return "D128"; break;
       default: tl_assert(0);
    }
 }