From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7877) id 541ED386074C; Sun, 18 Feb 2024 01:32:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 541ED386074C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708219936; bh=kokk1uL+IucjLloD9vryPjNTF/tb5HWVI/F2vBMqj/o=; h=From:To:Subject:Date:From; b=hMwskcTRLqyJRS1K26MYsGCbUX+W5sRnj2zT94mTgifVxep2DTKgBTPZUH9J3chzb pKyQRbCi/q7YmLnoNYS2Vv2ZXGQBPj8mQxeKGhqEQh7K8cpVvtLRket/PJF+S9y9rp rFhp62wBLCdQ9jWLseWdymwLo4PBTZHdO8tU/zUQ= 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 r14-9053] LoongArch: Fix wrong return value type of __iocsrrd_h. X-Act-Checkin: gcc X-Git-Author: Lulu Cheng X-Git-Refname: refs/heads/master X-Git-Oldrev: c1d1571329b4e0923a104b6139cd7db2f0aa1c1d X-Git-Newrev: 12bcac83cee08dde89feaee1c66cd143f6c7d7b3 Message-Id: <20240218013216.541ED386074C@sourceware.org> Date: Sun, 18 Feb 2024 01:32:15 +0000 (GMT) List-Id: https://gcc.gnu.org/g:12bcac83cee08dde89feaee1c66cd143f6c7d7b3 commit r14-9053-g12bcac83cee08dde89feaee1c66cd143f6c7d7b3 Author: Lulu Cheng Date: Mon Feb 5 16:23:20 2024 +0800 LoongArch: Fix wrong return value type of __iocsrrd_h. gcc/ChangeLog: * config/loongarch/larchintrin.h (__iocsrrd_h): Modify the function return value type to unsigned short. Diff: --- gcc/config/loongarch/larchintrin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/loongarch/larchintrin.h b/gcc/config/loongarch/larchintrin.h index ff2c9f460ac3..04672e717280 100644 --- a/gcc/config/loongarch/larchintrin.h +++ b/gcc/config/loongarch/larchintrin.h @@ -268,7 +268,7 @@ __iocsrrd_b (unsigned int _1) /* Assembly instruction format: rd, rj. */ /* Data types in instruction templates: UHI, USI. */ -extern __inline unsigned char +extern __inline unsigned short __attribute__ ((__gnu_inline__, __always_inline__, __artificial__)) __iocsrrd_h (unsigned int _1) {