From: zhongjuzhe Date: Mon, 22 Aug 2022 09:15:31 +0000 (+0100) Subject: middle-end: Fix issue of poly_uint16 (1, 1) in self test X-Git-Tag: basepoints/gcc-14~5071 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21e7d87a901d45f0cb5e5510d22bfbdb0d0ac6a1;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/simplify-rtx.cc b/gcc/simplify-rtx.cc index 7d09bf7103d6..fc0d6c3ca2ae 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);