summaryrefslogtreecommitdiff
path: root/0092-AES-Bugfix-Change-set_of-to-reg_set_p-and-add-check-.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-02-28 10:03:49 +0000
committerCoprDistGit <infra@openeuler.org>2025-02-28 10:03:49 +0000
commit73127104a245052cd5cf29cdaaca3e5c32c70348 (patch)
tree8e28b63e478c43c252f18b49836dff7313affe54 /0092-AES-Bugfix-Change-set_of-to-reg_set_p-and-add-check-.patch
parent49d3feaf4665cdb07576fc1a2382a4d82a612d35 (diff)
automatic import of gccopeneuler24.03_LTS_SP1
Diffstat (limited to '0092-AES-Bugfix-Change-set_of-to-reg_set_p-and-add-check-.patch')
-rw-r--r--0092-AES-Bugfix-Change-set_of-to-reg_set_p-and-add-check-.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/0092-AES-Bugfix-Change-set_of-to-reg_set_p-and-add-check-.patch b/0092-AES-Bugfix-Change-set_of-to-reg_set_p-and-add-check-.patch
new file mode 100644
index 0000000..c9bf39e
--- /dev/null
+++ b/0092-AES-Bugfix-Change-set_of-to-reg_set_p-and-add-check-.patch
@@ -0,0 +1,29 @@
+From acb6bbf0612aead00a879892ba8ed816c90fe788 Mon Sep 17 00:00:00 2001
+From: Chernonog Viacheslav <chernonog.vyacheslav@huawei.com>
+Date: Wed, 8 May 2024 19:24:27 +0800
+Subject: [PATCH 3/4] [AES][Bugfix] Change set_of to reg_set_p, and add check
+ for global_regs fix for I9JDHE
+
+---
+ gcc/rtl-matcher.h | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/gcc/rtl-matcher.h b/gcc/rtl-matcher.h
+index 6aed8d98d..5310f6266 100644
+--- a/gcc/rtl-matcher.h
++++ b/gcc/rtl-matcher.h
+@@ -56,8 +56,9 @@ check_def_chain_ref (df_ref ref, rtx reg)
+ if (!ref || !DF_REF_INSN_INFO (ref))
+ return false;
+
+- return !global_regs[REGNO (reg)]
+- || set_of (reg, DF_REF_INSN (ref));
++ return !(REGNO (reg) < FIRST_PSEUDO_REGISTER
++ && global_regs[REGNO (reg)])
++ || reg_set_p (reg, DF_REF_INSN (ref));
+ }
+
+ /* Get the single def instruction of the reg being used in the insn. */
+--
+2.33.0
+