aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhongjuzhe <juzhe.zhong@rivai.ai>2022-08-22 10:15:31 +0100
committerRichard Sandiford <richard.sandiford@arm.com>2022-08-22 10:15:31 +0100
commit21e7d87a901d45f0cb5e5510d22bfbdb0d0ac6a1 (patch)
tree1c993f75d04092089dd7c0ff620dd0c246284a6d
parente228683b244c6afbe3bdfef7ba607fbda813bd0f (diff)
downloadgcc-21e7d87a901d45f0cb5e5510d22bfbdb0d0ac6a1.zip
gcc-21e7d87a901d45f0cb5e5510d22bfbdb0d0ac6a1.tar.gz
gcc-21e7d87a901d45f0cb5e5510d22bfbdb0d0ac6a1.tar.bz2
middle-end: Fix issue of poly_uint16 (1, 1) in self test
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.
-rw-r--r--gcc/simplify-rtx.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/simplify-rtx.cc b/gcc/simplify-rtx.cc
index 7d09bf7..fc0d6c3 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);