Message ID | 20240206021030.7391-1-chenglulu@loongson.cn |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1272917dyb; Mon, 5 Feb 2024 18:11:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3a1YHnTORzS314ahjrZ7jp2wwUJqMXFat/SE8ay0RBV7Cz5tQ/Xoiq/WJRlsummUwzPv8 X-Received: by 2002:a05:620a:4381:b0:784:1215:e9fe with SMTP id a1-20020a05620a438100b007841215e9femr1315348qkp.69.1707185511852; Mon, 05 Feb 2024 18:11:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707185511; cv=pass; d=google.com; s=arc-20160816; b=GCdZGT3BAmawgVr7whXSNciTCueRf3St4HTD8w+KsIPraJHbtle7koyQrP/vvjECnH LLWtnMiZa7L5UzjIhbHn5nrCOIhbiTYiKUkTUyl2on/RCTXJRexdLKp1Har6UMw/MHmF 7iKzraLXn/v9GbCUPBATipa3tSsQZU4vrzGO9KVv9W3WzbCSEhCCeiC/7o0QM3yGpCMH phd/B/mXNOSHtlO6BFFuqqn2jYFH/EWJAImbyknn8V6AXkB2SPEl1GpalDt438pzB1Nd P10lstCmVM8KmgUuI/Szbj38L9qagCebqd7aBF0BUXuV6HcnL1XuFwJM19m0RTGCC0BT B7xQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:arc-filter :dmarc-filter:delivered-to; bh=ugo7K4r88KJCxTZeAbHGOTPGrOmAMeL8qUYYO5tgp5U=; fh=4b+TVFjPGR99PZD6mukm4V9FANJFmD801egVdhObRZQ=; b=xuaxzdfCqt4vC/0ll2DFgaijZh8eQWQLmYMNcyKZSTrLpNkbE0wIKuWrm01tUOCk3p XjtJ+HIwisWRqUqqDMoOeEn/I6RnPDuZHKO0aAIO+Bezid8yIgc6MMoaV9T0aOq/VwQ9 oGLESoD+LlEdKvi7uOyrR+HjXNhX38lt9AwIPqE+qyH0SCJcVs8gVu372Qd1VGmcOBw6 MSYmYeyYPxv6slW43U3jk/bTH1bR3nuG05bvLIuXNx+CE4HQ45xdQtP6uFLS0wUdnALq 5++USpbXgXLv3HHjJS2Bvf77tanGQOVXR6uH+F3sN7TCT5f6FmgsVXdsssykKxLc4EFY Yp+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" X-Forwarded-Encrypted: i=1; AJvYcCUhoTeDCArXG9swQZb2+/tWUvOK8yZMT2/XpWFar++e8z1B20NWtOTTswdAtdJmnjlWz8CEXXkN/J3wZXSnCutO9onaHg== Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id vz17-20020a05620a495100b00783f16eee24si1247625qkn.91.2024.02.05.18.11.51 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 18:11:51 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8CEC5385840C for <ouuuleilei@gmail.com>; Tue, 6 Feb 2024 02:11:51 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 1EA553858D35 for <gcc-patches@gcc.gnu.org>; Tue, 6 Feb 2024 02:10:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1EA553858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1EA553858D35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=114.242.206.163 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707185440; cv=none; b=M+sxKhEr9mQzOb0VXAK9BtF8CkixNvEIX5LDzA+AKbHH/NNh1OHywHXu4TyuPKPFPGMhbpB5vkLLeKHRb/J3KtunVDPZPw4VH0oJ4ERvLPAUURSeoV3wo+xTkW1cvs9MKMUA7ZOQb8j19ni8yvY1CD0FS8YA3Iad3i/I4xIIeiU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707185440; c=relaxed/simple; bh=OPihLJF+CPtMk5tuHM4j3SHDvnRPRAtYLlrQiwTvZXk=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=NyGGp1RlFdHwuAfmdhfliLBo+Z0AcvxEX/yD0+GjxgGeS2TN6Gwjx0i318Yg1x1AzcIBIOyOQpVz+CbEUUash68aTCl6RQzHbdCar/raDy8biqisHenc5ipOLHYCyKhcGUtW+RIe3WaiD5WoSPVrr0pwMetBGxzkPfEJf2DygB4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from loongson.cn (unknown [10.20.4.107]) by gateway (Coremail) with SMTP id _____8AxjusZlcFlxxELAA--.30760S3; Tue, 06 Feb 2024 10:10:33 +0800 (CST) Received: from loongson-pc.loongson.cn (unknown [10.20.4.107]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxrhMXlcFliZ8wAA--.61958S2; Tue, 06 Feb 2024 10:10:33 +0800 (CST) From: Lulu Cheng <chenglulu@loongson.cn> To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn Subject: [PATCH 1/2] LoongArch: Fix wrong return value type of __iocsrrd_h. Date: Tue, 6 Feb 2024 10:10:29 +0800 Message-Id: <20240206021030.7391-1-chenglulu@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8CxrhMXlcFliZ8wAA--.61958S2 X-CM-SenderInfo: xfkh0wpoxo3qxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBj9xXoWrKFWxXr18KF4xCryxWr4UAwc_yoW3ZFg_XF 17tasrWr4xXFn3uw1YgFWrta4DXFyrtF13uFyxXwsrua47X3ZxArWkGwsxZ34rKwsruFsx WFWkXrnxCr12gosvyTuYvTs0mTUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUb78YFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwA2z4x0Y4vEx4A2jsIE14v26r4j6F4UM28EF7xvwVC2z280aVCY1x0267AKxVW8 JVW8Jr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4 xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v2 6r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwI xGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480 Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7 IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k2 6cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxV AFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU1CPfJUUUUU== X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790113754866776964 X-GMAIL-MSGID: 1790113754866776964 |
Series |
[1/2] LoongArch: Fix wrong return value type of __iocsrrd_h.
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
chenglulu
Feb. 6, 2024, 2:10 a.m. UTC
gcc/ChangeLog: * config/loongarch/larchintrin.h (__iocsrrd_h): Modify the function return value type to unsigned short. --- gcc/config/loongarch/larchintrin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Pushed to r14-9053. 在 2024/2/6 上午10:10, Lulu Cheng 写道: > gcc/ChangeLog: > > * config/loongarch/larchintrin.h (__iocsrrd_h): Modify the > function return value type to unsigned short. > --- > 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 ff2c9f460ac..04672e71728 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) > {
diff --git a/gcc/config/loongarch/larchintrin.h b/gcc/config/loongarch/larchintrin.h index ff2c9f460ac..04672e71728 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) {