summaryrefslogtreecommitdiff
path: root/0230-Backport-SME-middle-end-Fix-issue-of-poly_uint16-1-1.patch
blob: 588ea4098694979fe377ea922fbbcd52ab34335f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From bb15d4c4476e3ba303c5afe0adae0d86ab5f0a9b Mon Sep 17 00:00:00 2001
From: zhongjuzhe <juzhe.zhong@rivai.ai>
Date: Mon, 22 Aug 2022 10:15:31 +0100
Subject: [PATCH 131/157] [Backport][SME] middle-end: Fix issue of poly_uint16
 (1, 1) in self test

Reference: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=21e7d87a901d45f0cb5e5510d22bfbdb0d0ac6a1

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 e152918b0..fc79a2e2e 100644
--- a/gcc/simplify-rtx.cc
+++ b/gcc/simplify-rtx.cc
@@ -8380,7 +8380,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.33.0