From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7877) id 6A383385828B; Thu, 13 Oct 2022 01:57:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6A383385828B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665626242; bh=/AWsn7KQ9n4DKTddBzaRpYAA/tc/+r53lTAMbb0ssXc=; h=From:To:Subject:Date:From; b=otJmgVpRLTMxim5Eherr3I71CQyFldqVB4rrLBhpOgwbqNFMQQYJILc/GrgSWyQk6 DeAem51YQD8CwFSBNTtUd0i7hYCKofNsc7m24bBcWac5/JTmc3D+X5e9+QutViVZcc bgSTig1hwm3KkvqcaKLQmOnhVb/KoEk7Xut4jwi4= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: LuluCheng To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3267] LoongArch: Fixed a bug in the loongarch architecture of libitm package. X-Act-Checkin: gcc X-Git-Author: Lulu Cheng X-Git-Refname: refs/heads/master X-Git-Oldrev: e867f6b7e636391cf70a8d9b9bac79248b3fad67 X-Git-Newrev: 7c059880fca175589efc8e06ef458020a005658d Message-Id: <20221013015722.6A383385828B@sourceware.org> Date: Thu, 13 Oct 2022 01:57:22 +0000 (GMT) List-Id: https://gcc.gnu.org/g:7c059880fca175589efc8e06ef458020a005658d commit r13-3267-g7c059880fca175589efc8e06ef458020a005658d Author: Lulu Cheng Date: Wed Oct 12 11:02:11 2022 +0800 LoongArch: Fixed a bug in the loongarch architecture of libitm package. Add a soft floating point condition to the register recovery part of the code. libitm/ChangeLog: * config/loongarch/sjlj.S: Add a soft floating point condition to the register recovery part of the code. Diff: --- libitm/config/loongarch/sjlj.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libitm/config/loongarch/sjlj.S b/libitm/config/loongarch/sjlj.S index a5f9fadde34..f896e400e6a 100644 --- a/libitm/config/loongarch/sjlj.S +++ b/libitm/config/loongarch/sjlj.S @@ -104,6 +104,8 @@ GTM_longjmp: GPR_L $s7, $r5, 10*SZ_GPR GPR_L $s8, $r5, 11*SZ_GPR +#if !defined(__loongarch_soft_float) + /* Callee-saved scratch FPRs (f24-f31) */ FPR_L $f24, $r5, 12*SZ_GPR + 0*SZ_FPR FPR_L $f25, $r5, 12*SZ_GPR + 1*SZ_FPR FPR_L $f26, $r5, 12*SZ_GPR + 2*SZ_FPR @@ -112,6 +114,7 @@ GTM_longjmp: FPR_L $f29, $r5, 12*SZ_GPR + 5*SZ_FPR FPR_L $f30, $r5, 12*SZ_GPR + 6*SZ_FPR FPR_L $f31, $r5, 12*SZ_GPR + 7*SZ_FPR +#endif GPR_L $r7, $r5, 2*SZ_GPR GPR_L $fp, $r5, 0*SZ_GPR