* [PATCH] middle-end: Fix issue of poly_uint16 (1, 1) in self test
@ 2022-08-22 9:09 juzhe.zhong
2022-08-22 9:16 ` Richard Sandiford
0 siblings, 1 reply; 2+ messages in thread
From: juzhe.zhong @ 2022-08-22 9:09 UTC (permalink / raw)
To: gcc-patches; +Cc: richard.sandiford, kito.cheng, zhongjuzhe
From: zhongjuzhe <juzhe.zhong@rivai.ai>
This patch fix issue of poly_uint16 (1, 1) in machine mode self test.
gcc/ChangeLog:
* simplify-rtx.cc (test_vector_subregs_fore_back): Make first value and repeat value different.
---
gcc/simplify-rtx.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/simplify-rtx.cc b/gcc/simplify-rtx.cc
index 7d09bf7103d..fc0d6c3ca2a 100644
--- a/gcc/simplify-rtx.cc
+++ b/gcc/simplify-rtx.cc
@@ -8434,7 +8434,7 @@ test_vector_subregs_fore_back (machine_mode inner_mode)
for (unsigned int i = 0; i < count; ++i)
builder.quick_push (gen_int_mode (i, int_mode));
for (unsigned int i = 0; i < count; ++i)
- builder.quick_push (gen_int_mode (-(int) i, int_mode));
+ builder.quick_push (gen_int_mode (-1 - (int) i, int_mode));
rtx x = builder.build ();
test_vector_subregs_modes (x);
--
2.36.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] middle-end: Fix issue of poly_uint16 (1, 1) in self test
2022-08-22 9:09 [PATCH] middle-end: Fix issue of poly_uint16 (1, 1) in self test juzhe.zhong
@ 2022-08-22 9:16 ` Richard Sandiford
0 siblings, 0 replies; 2+ messages in thread
From: Richard Sandiford @ 2022-08-22 9:16 UTC (permalink / raw)
To: juzhe.zhong; +Cc: gcc-patches, kito.cheng
juzhe.zhong@rivai.ai writes:
> From: zhongjuzhe <juzhe.zhong@rivai.ai>
>
> This patch fix issue of poly_uint16 (1, 1) in machine mode self test.
>
> gcc/ChangeLog:
>
> * simplify-rtx.cc (test_vector_subregs_fore_back): Make first value and repeat value different.
Thanks, pushed.
Richard
>
> ---
> gcc/simplify-rtx.cc | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/simplify-rtx.cc b/gcc/simplify-rtx.cc
> index 7d09bf7103d..fc0d6c3ca2a 100644
> --- a/gcc/simplify-rtx.cc
> +++ b/gcc/simplify-rtx.cc
> @@ -8434,7 +8434,7 @@ test_vector_subregs_fore_back (machine_mode inner_mode)
> for (unsigned int i = 0; i < count; ++i)
> builder.quick_push (gen_int_mode (i, int_mode));
> for (unsigned int i = 0; i < count; ++i)
> - builder.quick_push (gen_int_mode (-(int) i, int_mode));
> + builder.quick_push (gen_int_mode (-1 - (int) i, int_mode));
> rtx x = builder.build ();
>
> test_vector_subregs_modes (x);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-22 9:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-22 9:09 [PATCH] middle-end: Fix issue of poly_uint16 (1, 1) in self test juzhe.zhong
2022-08-22 9:16 ` Richard Sandiford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).