From 3acd9c9200acf486fd0e1b63280693b6509d0712 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 20 Apr 2018 16:38:09 -0400 Subject: [PATCH] translate: zero extend result in Vpart when storing to lower part of vector --- src/frontend/A64/translate/impl/impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/A64/translate/impl/impl.cpp b/src/frontend/A64/translate/impl/impl.cpp index 3f056fc9..c5d7f573 100644 --- a/src/frontend/A64/translate/impl/impl.cpp +++ b/src/frontend/A64/translate/impl/impl.cpp @@ -244,7 +244,7 @@ void TranslatorVisitor::Vpart(size_t bitsize, Vec vec, size_t part, IR::U128 val ASSERT(part == 0 || part == 1); if (part == 0) { ASSERT(bitsize == 64); - V(128, vec, value); + V(128, vec, ir.VectorZeroExtend(bitsize, value)); } else { ASSERT(bitsize == 64); V(128, vec, ir.VectorInterleaveLower(64, V(128, vec), value));