summaryrefslogtreecommitdiff
path: root/0101-To-resolve-the-SPEC-.548-fluctuation-problem-revert-.patch
blob: 836197a002ce53c56a468957311ff735ea8c28d8 (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
From 962eda7f0336c883c52c33a9b61a19f7e80ea9e2 Mon Sep 17 00:00:00 2001
From: root <root@localhost.localdomain>
Date: Tue, 6 Jun 2023 22:29:03 +0800
Subject: [PATCH] To resolve the SPEC .548 fluctuation problem, revert GCC
 commit 835d50c66aa5bde2f354a6e63a2afa7d2f76a05a

---
 gcc/config/aarch64/aarch64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index 85dbd3898..116b4b8ca 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -12726,7 +12726,7 @@ cost_plus:
 	  }
 
 	if (GET_MODE_CLASS (mode) == MODE_INT
-	    && (aarch64_plus_immediate (op1, mode)
+	    && ((CONST_INT_P (op1) && aarch64_uimm12_shift (INTVAL (op1))) 
 		|| aarch64_sve_addvl_addpl_immediate (op1, mode)))
 	  {
 	    *cost += rtx_cost (op0, mode, PLUS, 0, speed);
-- 
2.33.0