From e2e7bb0e211e8495c2eeb2a13c36757d1cdb9783 Mon Sep 17 00:00:00 2001
From: Richard Henderson <richard.henderson@linaro.org>
Date: Thu, 16 Aug 2018 07:12:15 -0400
Subject: [PATCH] target/arm: Fix typo in helper_sve_movz_d

Backports commit 054e7adf4e64e4acb3b033348ebf7cc871baa34f from qemu
---
 qemu/target/arm/sve_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qemu/target/arm/sve_helper.c b/qemu/target/arm/sve_helper.c
index a085895e..17791dd8 100644
--- a/qemu/target/arm/sve_helper.c
+++ b/qemu/target/arm/sve_helper.c
@@ -1039,7 +1039,7 @@ void HELPER(sve_movz_d)(void *vd, void *vn, void *vg, uint32_t desc)
     uint64_t *d = vd, *n = vn;
     uint8_t *pg = vg;
     for (i = 0; i < opr_sz; i += 1) {
-        d[i] = n[1] & -(uint64_t)(pg[H1(i)] & 1);
+        d[i] = n[i] & -(uint64_t)(pg[H1(i)] & 1);
     }
 }