tcg: queued patch
cover tcg: queued patch
The following changes since commit a050901d4b40092dc356b59912c6df39e389c7b9:
Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-4.1-20190612' into staging (2019-06-12 14:43:47 +0100)
are available in the Git repository at:
https://github.com/rth7680/qemu.git tags/pull-tcg-20190612
for you to fetch changes up to 899f08ad1d1231dbbfa67298413f05ed2679fb02:
tcg: Fix typos in helper_gvec_sar{8,32,64}v (2019-06-12 21:08:38 -0700)
----------------------------------------------------------------
Fix vector arithmetic right shift helpers.
----------------------------------------------------------------
Richard Henderson (1):
tcg: Fix typos in helper_gvec_sar{8,32,64}vaccel/tcg/tcg-runtime-gvec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
PATCH 1/1 tcg: Fix typos in helper_gvec_sar{8, 32, 64}v
The loop is written with scalars, not vectors. Use the correct type when incrementing.
--- accel/tcg/tcg-runtime-gvec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
accel/tcg/tcg-runtime-gvec.c +3 -3
@@ -874,7 +874,7 @@ void HELPER(gvec_sar8v)(void *d, void *a, void *b, uint32_t desc)intptr_t oprsz =simd_oprsz (desc);intptr_t i; -for (i =0 ; i < oprsz; i +=sizeof (vec8)) { +for (i =0 ; i < oprsz; i +=sizeof (int8_t )) {uint8_t sh = *(uint8_t *)(b + i) &7 ; *(int8_t *)(d + i) = *(int8_t *)(a + i) >> sh; }
@@ -898,7 +898,7 @@ void HELPER(gvec_sar32v)(void *d, void *a, void *b, uint32_t desc)intptr_t oprsz =simd_oprsz (desc);intptr_t i; -for (i =0 ; i < oprsz; i +=sizeof (vec32)) { +for (i =0 ; i < oprsz; i +=sizeof (int32_t )) {uint8_t sh = *(uint32_t *)(b + i) &31 ; *(int32_t *)(d + i) = *(int32_t *)(a + i) >> sh; }
@@ -910,7 +910,7 @@ void HELPER(gvec_sar64v)(void *d, void *a, void *b, uint32_t desc)intptr_t oprsz =simd_oprsz (desc);intptr_t i; -for (i =0 ; i < oprsz; i +=sizeof (vec64)) { +for (i =0 ; i < oprsz; i +=sizeof (int64_t )) {uint8_t sh = *(uint64_t *)(b + i) &63 ; *(int64_t *)(d + i) = *(int64_t *)(a + i) >> sh; }
Signature · 1 line
2.17.1
Re: [Qemu-devel] [PATCH 1/1] tcg: Fix typos in helper_gvec_sar{8, 32, 64}v
Quoted 10 lines · Richard Henderson
The loop is written with scalars, not vectors. Use the correct type when incrementing.
Fixes 5ee5c14cacdReported-by Laurent Vivier <[email protected]>Tested-by Laurent Vivier <[email protected]>Reviewed-by Laurent Vivier <[email protected]>Signed-off-by Richard Henderson <[email protected]>---
This is certainly not a case of “typo” (which would mean that you accidentally typed “vec8” instead od “int8_t”). So, change the title to “tcg: Fix loop step in
helper_gvec_sar{8, 32, 64}v” or similar.
accel/tcg/tcg-runtime-gvec.c void HELPER(gvec_sar8v)(void *d, void *a, void *b,
Quoted 8 lines
accel/tcg/tcg-runtime-gvec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)accel/tcg/tcg-runtime-gvec.c +0
-0@@ -874,7 +874,7 @@ void HELPER(gvec_sar8v)(void *d, void *a, void *b,
uint32_t desc)
accel/tcg/tcg-runtime-gvec.c void HELPER(gvec_sar32v)(void *d, void *a, void *b,
Quoted 9 lines
accel/tcg/tcg-runtime-gvec.c +1
-1intptr_t oprsz =simd_oprsz (desc);intptr_t i; -for (i =0 ; i < oprsz; i +=sizeof (vec8)) { +for (i =0 ; i < oprsz; i +=sizeof (int8_t )) {uint8_t sh = *(uint8_t *)(b + i) &7 ; *(int8_t *)(d + i) = *(int8_t *)(a + i) >> sh; }@@ -898,7 +898,7 @@ void HELPER(gvec_sar32v)(void *d, void *a, void *b,
uint32_t desc)
accel/tcg/tcg-runtime-gvec.c void HELPER(gvec_sar64v)(void *d, void *a, void *b,
Quoted 9 lines
accel/tcg/tcg-runtime-gvec.c +1
-1intptr_t oprsz =simd_oprsz (desc);intptr_t i; -for (i =0 ; i < oprsz; i +=sizeof (vec32)) { +for (i =0 ; i < oprsz; i +=sizeof (int32_t )) {uint8_t sh = *(uint32_t *)(b + i) &31 ; *(int32_t *)(d + i) = *(int32_t *)(a + i) >> sh; }@@ -910,7 +910,7 @@ void HELPER(gvec_sar64v)(void *d, void *a, void *b,
uint32_t desc)
Quoted 12 lines
accel/tcg/tcg-runtime-gvec.c +1
-2intptr_t oprsz =simd_oprsz (desc);intptr_t i; -for (i =0 ; i < oprsz; i +=sizeof (vec64)) { +for (i =0 ; i < oprsz; i +=sizeof (int64_t )) {uint8_t sh = *(uint64_t *)(b + i) &63 ; *(int64_t *)(d + i) = *(int64_t *)(a + i) >> sh; } --2.17.1
Re: [Qemu-devel] [PATCH 1/1] tcg: Fix typos in helper_gvec_sar{8, 32, 64}v
Quoted 3 lines · Aleksandar Markovic
On Jun 13, 2019 6:16 AM, "Richard Henderson" <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
I just noticed that this patch is already applied to the upstream - no pull request, no waiting time for community review -
Quoted 11 lines
Quoted 9 lines
The loop is written with scalars, not vectors. Use the correct type when incrementing.
Fixes 5ee5c14cacdReported-by Laurent Vivier <[email protected]>Tested-by Laurent Vivier <[email protected]>Reviewed-by Laurent Vivier <[email protected]>Signed-off-by Richard Henderson <[email protected]>---
This is certainly not a case of “typo” (which would mean that you
accidentally typed “vec8” instead od “int8_t”). So, change the title to “tcg: Fix loop step in
Quoted 10 lines
helper_gvec_sar{8, 32, 64}v” or similar.
accel/tcg/tcg-runtime-gvec.c void HELPER(gvec_sar8v)(void *d, void *a, void *b,
Quoted 8 lines
accel/tcg/tcg-runtime-gvec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)accel/tcg/tcg-runtime-gvec.c +0
-0@@ -874,7 +874,7 @@ void HELPER(gvec_sar8v)(void *d, void *a, void *b,
uint32_t desc)
Quoted 9 lines
accel/tcg/tcg-runtime-gvec.c void HELPER(gvec_sar32v)(void *d, void *a, void *b,
Quoted 9 lines
accel/tcg/tcg-runtime-gvec.c +1
-1intptr_t oprsz =simd_oprsz (desc);intptr_t i; -for (i =0 ; i < oprsz; i +=sizeof (vec8)) { +for (i =0 ; i < oprsz; i +=sizeof (int8_t )) {uint8_t sh = *(uint8_t *)(b + i) &7 ; *(int8_t *)(d + i) = *(int8_t *)(a + i) >> sh; }@@ -898,7 +898,7 @@ void HELPER(gvec_sar32v)(void *d, void *a, void *b,
uint32_t desc)
Quoted 9 lines
accel/tcg/tcg-runtime-gvec.c void HELPER(gvec_sar64v)(void *d, void *a, void *b,
Quoted 9 lines
accel/tcg/tcg-runtime-gvec.c +1
-1intptr_t oprsz =simd_oprsz (desc);intptr_t i; -for (i =0 ; i < oprsz; i +=sizeof (vec32)) { +for (i =0 ; i < oprsz; i +=sizeof (int32_t )) {uint8_t sh = *(uint32_t *)(b + i) &31 ; *(int32_t *)(d + i) = *(int32_t *)(a + i) >> sh; }@@ -910,7 +910,7 @@ void HELPER(gvec_sar64v)(void *d, void *a, void *b,
uint32_t desc)
Quoted 12 lines
Quoted 12 lines
accel/tcg/tcg-runtime-gvec.c +1
-2intptr_t oprsz =simd_oprsz (desc);intptr_t i; -for (i =0 ; i < oprsz; i +=sizeof (vec64)) { +for (i =0 ; i < oprsz; i +=sizeof (int64_t )) {uint8_t sh = *(uint64_t *)(b + i) &63 ; *(int64_t *)(d + i) = *(int64_t *)(a + i) >> sh; } --2.17.1
Re: [Qemu-devel] [PATCH 1/1] tcg: Fix typos in helper_gvec_sar{8, 32, 64}v
Quoted 3 lines · Aleksandar Markovic
On Jun 14, 2019 7:22 AM, "Aleksandar Markovic" <
Quoted 3 lines · [email protected]> wrote:
Quoted 3 lines
On Jun 13, 2019 6:16 AM, "Richard Henderson" <
Quoted 3 lines · [email protected]> wrote:
Quoted 1 line
Quoted 1 line
I just noticed that this patch is already applied to the upstream - no
pull request, no waiting time for community review -
Quoted 1 line
Peter, would you please explain to me what was going on with this patch? I am truly confused, since all rules and procedures seem to be somehow circumvented, don't they?
Yours,
Aleksandar
Quoted 11 lines
Quoted 11 lines
Quoted 9 lines
The loop is written with scalars, not vectors. Use the correct type when incrementing.
Fixes 5ee5c14cacdReported-by Laurent Vivier <[email protected]>Tested-by Laurent Vivier <[email protected]>Reviewed-by Laurent Vivier <[email protected]>Signed-off-by Richard Henderson <[email protected]>---
This is certainly not a case of “typo” (which would mean that you
accidentally typed “vec8” instead od “int8_t”). So, change the title to “tcg: Fix loop step in
Quoted 6 lines
Quoted 6 lines
helper_gvec_sar{8, 32, 64}v” or similar.
Review
Quoted 4 lines
accel/tcg/tcg-runtime-gvec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/accel/tcg/tcg-runtime-gvec.c
Quoted 4 lines
Quoted 4 lines
accel/tcg/tcg-runtime-gvec.c void HELPER(gvec_sar8v)(void *d, void *a, void
Quoted 4 lines
index
3b6052fe97..51cb29ca79100644accel/tcg/tcg-runtime-gvec.c +0
-0@@ -874,7 +874,7 @@ void HELPER(gvec_sar8v)(void *d, void *a, void
*b, uint32_t desc)
Quoted 9 lines
Quoted 9 lines
accel/tcg/tcg-runtime-gvec.c void HELPER(gvec_sar32v)(void *d, void *a, void
Quoted 9 lines
accel/tcg/tcg-runtime-gvec.c +1
-1intptr_t oprsz =simd_oprsz (desc);intptr_t i; -for (i =0 ; i < oprsz; i +=sizeof (vec8)) { +for (i =0 ; i < oprsz; i +=sizeof (int8_t )) {uint8_t sh = *(uint8_t *)(b + i) &7 ; *(int8_t *)(d + i) = *(int8_t *)(a + i) >> sh; }@@ -898,7 +898,7 @@ void HELPER(gvec_sar32v)(void *d, void *a, void
*b, uint32_t desc)
Quoted 9 lines
Quoted 9 lines
accel/tcg/tcg-runtime-gvec.c void HELPER(gvec_sar64v)(void *d, void *a, void
Quoted 9 lines
accel/tcg/tcg-runtime-gvec.c +1
-1intptr_t oprsz =simd_oprsz (desc);intptr_t i; -for (i =0 ; i < oprsz; i +=sizeof (vec32)) { +for (i =0 ; i < oprsz; i +=sizeof (int32_t )) {uint8_t sh = *(uint32_t *)(b + i) &31 ; *(int32_t *)(d + i) = *(int32_t *)(a + i) >> sh; }@@ -910,7 +910,7 @@ void HELPER(gvec_sar64v)(void *d, void *a, void
*b, uint32_t desc)
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
accel/tcg/tcg-runtime-gvec.c +1
-2intptr_t oprsz =simd_oprsz (desc);intptr_t i; -for (i =0 ; i < oprsz; i +=sizeof (vec64)) { +for (i =0 ; i < oprsz; i +=sizeof (int64_t )) {uint8_t sh = *(uint64_t *)(b + i) &63 ; *(int64_t *)(d + i) = *(int64_t *)(a + i) >> sh; } --2.17.1
Re: [Qemu-devel] [PATCH 1/1] tcg: Fix typos in helper_gvec_sar{8, 32, 64}v
Quoted 1 line · Aleksandar Markovic
Peter, would you please explain to me what was going on with this patch?
The original patch was posted to the list on the 7th June; it got reviewed and tested by Laurent. This email accidentally has "PATCH" in the subject line instead of "PULL" but it's just part of the pull request that got it into master -- that's just an accidental error by Richard when he put the pull request together.
thanks
-- PMM
Dang it, forgot the PULL tag.
r~
The following changes since commit a050901d4b40092dc356b59912c6df39e389c7b9:
Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-4.1-20190612' into
staging (2019-06-12 14:43:47 +0100)
are available in the Git repository at:
https://github.com/rth7680/qemu.git tags/pull-tcg-20190612
for you to fetch changes up to 899f08ad1d1231dbbfa67298413f05ed2679fb02:
tcg: Fix typos in helper_gvec_sar{8,32,64}v (2019-06-12 21:08:38 -0700)
----------------------------------------------------------------
Fix vector arithmetic right shift helpers.
----------------------------------------------------------------
Richard Henderson (1):
tcg: Fix typos in helper_gvec_sar{8,32,64}vaccel/tcg/tcg-runtime-gvec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Peter Maydell
AppliedQuoted 14 lines · Richard Henderson
Dang it, forgot the PULL tag.
r~
The following changes since commit
a050901d4b40092dc356b59912c6df39e389c7b9:Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-4.1-20190612' into
staging (2019-06-12 14:43:47 +0100)are available in the Git repository at:
Quoted 9 lines
https://github.com/rth7680/qemu.git tags/pull-tcg-20190612
for you to fetch changes up to
899f08ad1d1231dbbfa67298413f05ed2679fb02:tcg: Fix typos in helper_gvec_sar{8,32,64}v (2019-06-12 21:08:38 -0700)
----------------------------------------------------------------
Fix vector arithmetic right shift helpers.
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/4.1
for any user-visible changes.
-- PMM