diff mbox series

[4/4] target/arm: Fix typo in helper_sve_movz_d

Message ID 20180801123111.3595-5-richard.henderson@linaro.org
State Superseded
Headers show
Series target/arm sve fixes | expand

Commit Message

Richard Henderson Aug. 1, 2018, 12:31 p.m. UTC
Reported-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

---
 target/arm/sve_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.17.1

Comments

Laurent Desnogues Aug. 1, 2018, 1:28 p.m. UTC | #1
On Wed, Aug 1, 2018 at 2:31 PM, Richard Henderson
<richard.henderson@linaro.org> wrote:
> Reported-by: Laurent Desnogues <laurent.desnogues@gmail.com>

> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


Reviewed-by: Laurent Desnogues <laurent.desnogues@gmail.com>

Tested-by: Laurent Desnogues <laurent.desnogues@gmail.com>



Laurent

> ---

>  target/arm/sve_helper.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

>

> diff --git a/target/arm/sve_helper.c b/target/arm/sve_helper.c

> index 87594a8adb..c3cbec9cf5 100644

> --- a/target/arm/sve_helper.c

> +++ b/target/arm/sve_helper.c

> @@ -1042,7 +1042,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);

>      }

>  }

>

> --

> 2.17.1

>
Alex Bennée Aug. 1, 2018, 1:44 p.m. UTC | #2
Richard Henderson <richard.henderson@linaro.org> writes:

> Reported-by: Laurent Desnogues <laurent.desnogues@gmail.com>

> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


Reviewed-by: Alex Bennée <alex.bennee@linaro.org>


> ---

>  target/arm/sve_helper.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

>

> diff --git a/target/arm/sve_helper.c b/target/arm/sve_helper.c

> index 87594a8adb..c3cbec9cf5 100644

> --- a/target/arm/sve_helper.c

> +++ b/target/arm/sve_helper.c

> @@ -1042,7 +1042,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);

>      }

>  }



--
Alex Bennée
Philippe Mathieu-Daudé Aug. 2, 2018, 3:39 p.m. UTC | #3
On 08/01/2018 09:31 AM, Richard Henderson wrote:
> Reported-by: Laurent Desnogues <laurent.desnogues@gmail.com>

> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

> ---

>  target/arm/sve_helper.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/target/arm/sve_helper.c b/target/arm/sve_helper.c

> index 87594a8adb..c3cbec9cf5 100644

> --- a/target/arm/sve_helper.c

> +++ b/target/arm/sve_helper.c

> @@ -1042,7 +1042,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);


:)))

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>


>      }

>  }

>  

>
diff mbox series

Patch

diff --git a/target/arm/sve_helper.c b/target/arm/sve_helper.c
index 87594a8adb..c3cbec9cf5 100644
--- a/target/arm/sve_helper.c
+++ b/target/arm/sve_helper.c
@@ -1042,7 +1042,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);
     }
 }