From 653c82d8f0151424977536b6e5d7c3c9522d8104 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Sat, 10 Feb 2018 17:05:52 +0000 Subject: [PATCH] impl: Improve Vpart setter --- 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 e70f3d3d..3c1deadb 100644 --- a/src/frontend/A64/translate/impl/impl.cpp +++ b/src/frontend/A64/translate/impl/impl.cpp @@ -236,7 +236,7 @@ void TranslatorVisitor::Vpart(size_t bitsize, Vec vec, size_t part, IR::U128 val V(128, vec, value); } else { ASSERT(bitsize == 64); - V(128, vec, ir.VectorSetElement(64, V(128, vec), 1, ir.VectorGetElement(64, value, 0))); + V(128, vec, ir.VectorInterleaveLower(64, V(128, vec), value)); } }