From: Florian Krohm Date: Wed, 17 Sep 2014 19:48:36 +0000 (+0000) Subject: Fix type2index. It did not handle decimal floating point types. X-Git-Tag: svn/VALGRIND_3_11_0~986 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=935784f53057c48044be071fb036091229fdb242;p=thirdparty%2Fvalgrind.git Fix type2index. It did not handle decimal floating point types. nameOfTypeIndex likewise. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14546 --- diff --git a/lackey/lk_main.c b/lackey/lk_main.c index 9af280d9b3..bfa2fd8db8 100644 --- a/lackey/lk_main.c +++ b/lackey/lk_main.c @@ -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); } }