From d4c37a68a8302ef8556834c6e91fadf633f804ed Mon Sep 17 00:00:00 2001 From: MerryMage Date: Sun, 9 Sep 2018 19:59:02 +0100 Subject: [PATCH] A64/translate: VectorZeroUpper for V(64) stores Ensures correctness. --- src/frontend/A64/translate/impl/impl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/A64/translate/impl/impl.cpp b/src/frontend/A64/translate/impl/impl.cpp index c5d7f573..626f6547 100644 --- a/src/frontend/A64/translate/impl/impl.cpp +++ b/src/frontend/A64/translate/impl/impl.cpp @@ -205,7 +205,8 @@ void TranslatorVisitor::V(size_t bitsize, Vec vec, IR::U128 value) { ir.SetS(vec, value); return; case 64: - ir.SetD(vec, value); + // TODO: Remove VectorZeroUpper when possible. + ir.SetD(vec, ir.VectorZeroUpper(value)); return; case 128: ir.SetQ(vec, value);