]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
middle-end: Fix issue of poly_uint16 (1, 1) in self test
authorzhongjuzhe <juzhe.zhong@rivai.ai>
Mon, 22 Aug 2022 09:15:31 +0000 (10:15 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Mon, 22 Aug 2022 09:15:31 +0000 (10:15 +0100)
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

index 7d09bf7103d6bb8133ae579fb9fdd21922b12fb1..fc0d6c3ca2ae2f3b412090655db626845283dd24 100644 (file)
@@ -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);