summaryrefslogtreecommitdiff
path: root/0230-Backport-SME-middle-end-Fix-issue-of-poly_uint16-1-1.patch
diff options
context:
space:
mode:
Diffstat (limited to '0230-Backport-SME-middle-end-Fix-issue-of-poly_uint16-1-1.patch')
-rw-r--r--0230-Backport-SME-middle-end-Fix-issue-of-poly_uint16-1-1.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/0230-Backport-SME-middle-end-Fix-issue-of-poly_uint16-1-1.patch b/0230-Backport-SME-middle-end-Fix-issue-of-poly_uint16-1-1.patch
new file mode 100644
index 0000000..588ea40
--- /dev/null
+++ b/0230-Backport-SME-middle-end-Fix-issue-of-poly_uint16-1-1.patch
@@ -0,0 +1,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
+