From: Julian Seward Date: Sat, 13 Apr 2019 10:34:06 +0000 (+0200) Subject: Bug 406465 - arm64 instruction selector fails on "t0 = " where has type... X-Git-Tag: VALGRIND_3_15_0~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=270037da8b508954f0f7d703a0bebf5364eec548;p=thirdparty%2Fvalgrind.git Bug 406465 - arm64 instruction selector fails on "t0 = " where has type Ity_F16. --- diff --git a/VEX/priv/host_arm64_isel.c b/VEX/priv/host_arm64_isel.c index 49d0f0b19f..b2ab7422b6 100644 --- a/VEX/priv/host_arm64_isel.c +++ b/VEX/priv/host_arm64_isel.c @@ -3391,6 +3391,10 @@ static HReg iselF16Expr_wrk ( ISelEnv* env, IRExpr* e ) vassert(e); vassert(ty == Ity_F16); + if (e->tag == Iex_RdTmp) { + return lookupIRTemp(env, e->Iex.RdTmp.tmp); + } + if (e->tag == Iex_Get) { Int offs = e->Iex.Get.offset; if (offs >= 0 && offs < 8192 && 0 == (offs & 1)) { @@ -3706,6 +3710,12 @@ static void iselStmt ( ISelEnv* env, IRStmt* stmt ) addInstr(env, ARM64Instr_VMov(8/*yes, really*/, dst, src)); return; } + if (ty == Ity_F16) { + HReg src = iselF16Expr(env, stmt->Ist.WrTmp.data); + HReg dst = lookupIRTemp(env, tmp); + addInstr(env, ARM64Instr_VMov(8/*yes, really*/, dst, src)); + return; + } if (ty == Ity_V128) { HReg src = iselV128Expr(env, stmt->Ist.WrTmp.data); HReg dst = lookupIRTemp(env, tmp);