From patchwork Thu Sep 7 02:17:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsukasa OI X-Patchwork-Id: 137604 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp2691916vqo; Wed, 6 Sep 2023 19:19:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVdXobIltsYdVZL2SjJYcWGOvJ930wyobseeV0wcJuZL86l9NYsBALIP03z1sDWAzZ25DG X-Received: by 2002:a17:906:3158:b0:9a9:e53d:5d59 with SMTP id e24-20020a170906315800b009a9e53d5d59mr74230eje.25.1694053151357; Wed, 06 Sep 2023 19:19:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694053151; cv=none; d=google.com; s=arc-20160816; b=iYyrCiHQKoZrQNOnWtrKeBpe7r7MsHSpTQRgDk8W0561GH7VniZ/NYyfYcgkCEU/KB o944SuK2o+TiHX8/Im5+fcNRww0FNJxlXBaNFnYlHP9a4UhrNpirbovlckVlnC+If6Mt nViUE9nea0JzipEmOOjGSg63GGl7gdOzFfyQWxSxBcfCfs7FdzgL/U1UM5PyBK6pFpiY kqDmQ4mzrqJs5704GHk+BlmwNtXmPnVcxBdVzrn+oHEk3Yxc4K+ePFihsO8ipWsUHw6p DCoq44X5zB2OquZlGumNJi/8P2DcWHxp3hWppErf9ytbhTiSw+yPSc412mvJXDWaB+F8 14ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=JA/sPYxP+qMFvRYpZtP8igL0BSfhT22I5OtdCmVFDIM=; fh=HKgiOHUFLyfVG2npWMLYE8/3Ecp4EiEdadhQOzpm3aI=; b=c8PK1xufJKYmpPZWApXFF0p7Iqhi0EDacUPDqs16ypLn5jwX1JZC61fEUtRkpqYMkb 76w4VJbYcVIZ2Lokg+m7YQBz+Oc+LDSr93UbGArjg2IFzl7ro0WCWXRmf9VAH7osH48F zx9XAClX5tC4HLJOZkIrxENoazhhXZbNTGm5O2tU6JGXSTD/pG72EK2jpjZh05kOYVGE aShIKogdcJauvyhfxM6Rs3OoAn39Vl0bsgmXwJkMapGNEI31V/QtNEyNNVnOv0KPJ/2z WmdTLsknr/bhAlMKr/gN6ShsYyVbtdOZ/dNZFGsKRi1lGA3K8PQydx9BHMoAcT/4fOvv SZLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="Tnb8bQ/M"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id lo26-20020a170906fa1a00b0099d97da6b19si10272771ejb.790.2023.09.06.19.19.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 19:19:11 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="Tnb8bQ/M"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D11CA3856254 for ; Thu, 7 Sep 2023 02:18:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D11CA3856254 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694053101; bh=JA/sPYxP+qMFvRYpZtP8igL0BSfhT22I5OtdCmVFDIM=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=Tnb8bQ/MjGh6Pm7+FbeHx+5TXzor+T9lK8QVse+tT4Vy15EHrJORlbi2fd+N8bNo9 5hSMxLXNxpwm0WKbyvbUDG0nFAIku+nqtl0BCusO1j2siI6otfEc90E2TRqMyq/4pz 3YTyINvoRnmQ2iEpHa69ngs4U2Tgy1fdKH+H4aio= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-sender-0.a4lg.com (mail-sender.a4lg.com [153.120.152.154]) by sourceware.org (Postfix) with ESMTPS id 940463858426 for ; Thu, 7 Sep 2023 02:17:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 940463858426 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id CB55E300089; Thu, 7 Sep 2023 02:17:31 +0000 (UTC) To: Tsukasa OI , Kito Cheng , Palmer Dabbelt , Andrew Waterman , Jim Wilson , Jeff Law Cc: gcc-patches@gcc.gnu.org Subject: [RFC PATCH 2/2] RISC-V: Update testsuite for type-changed builtins Date: Thu, 7 Sep 2023 02:17:02 +0000 Message-ID: In-Reply-To: References: Mime-Version: 1.0 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, KAM_MANYTO, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, TXREP 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tsukasa OI via Gcc-patches From: Tsukasa OI Reply-To: Tsukasa OI Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776343477364642932 X-GMAIL-MSGID: 1776343477364642932 From: Tsukasa OI This commit replaces the type of the builtin used in the testsuite. Even without this commit, it won't cause any test failures but changed so that no confusion occurs. gcc/testsuite/ChangeLog: * gcc.target/riscv/zbc32.c: Make signed type to unsigned. * gcc.target/riscv/zbc64.c: Ditto. * gcc.target/riscv/zbkb32.c: Ditto. * gcc.target/riscv/zbkb64.c: Ditto. * gcc.target/riscv/zbkc32.c: Ditto. * gcc.target/riscv/zbkc64.c: Ditto. * gcc.target/riscv/zbkx32.c: Ditto. * gcc.target/riscv/zbkx64.c: Ditto. * gcc.target/riscv/zknd32.c: Ditto. * gcc.target/riscv/zknd64.c: Ditto. * gcc.target/riscv/zkne32.c: Ditto. * gcc.target/riscv/zkne64.c: Ditto. * gcc.target/riscv/zknh-sha256.c: Ditto. * gcc.target/riscv/zknh-sha512-32.c: Ditto. * gcc.target/riscv/zknh-sha512-64.c: Ditto. * gcc.target/riscv/zksed32.c: Ditto. * gcc.target/riscv/zksed64.c: Ditto. * gcc.target/riscv/zksh32.c: Ditto. * gcc.target/riscv/zksh64.c: Ditto. --- gcc/testsuite/gcc.target/riscv/zbc32.c | 6 +++--- gcc/testsuite/gcc.target/riscv/zbc64.c | 6 +++--- gcc/testsuite/gcc.target/riscv/zbkb32.c | 10 +++++----- gcc/testsuite/gcc.target/riscv/zbkb64.c | 8 ++++---- gcc/testsuite/gcc.target/riscv/zbkc32.c | 4 ++-- gcc/testsuite/gcc.target/riscv/zbkc64.c | 4 ++-- gcc/testsuite/gcc.target/riscv/zbkx32.c | 4 ++-- gcc/testsuite/gcc.target/riscv/zbkx64.c | 4 ++-- gcc/testsuite/gcc.target/riscv/zknd32.c | 4 ++-- gcc/testsuite/gcc.target/riscv/zknd64.c | 10 +++++----- gcc/testsuite/gcc.target/riscv/zkne32.c | 4 ++-- gcc/testsuite/gcc.target/riscv/zkne64.c | 8 ++++---- gcc/testsuite/gcc.target/riscv/zknh-sha256.c | 8 ++++---- gcc/testsuite/gcc.target/riscv/zknh-sha512-32.c | 12 ++++++------ gcc/testsuite/gcc.target/riscv/zknh-sha512-64.c | 8 ++++---- gcc/testsuite/gcc.target/riscv/zksed32.c | 4 ++-- gcc/testsuite/gcc.target/riscv/zksed64.c | 4 ++-- gcc/testsuite/gcc.target/riscv/zksh32.c | 4 ++-- gcc/testsuite/gcc.target/riscv/zksh64.c | 4 ++-- 19 files changed, 58 insertions(+), 58 deletions(-) diff --git a/gcc/testsuite/gcc.target/riscv/zbc32.c b/gcc/testsuite/gcc.target/riscv/zbc32.c index 08705c4a687e..f3fb2238f7f4 100644 --- a/gcc/testsuite/gcc.target/riscv/zbc32.c +++ b/gcc/testsuite/gcc.target/riscv/zbc32.c @@ -3,17 +3,17 @@ /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */ #include -int32_t foo1(int32_t rs1, int32_t rs2) +uint32_t foo1(uint32_t rs1, uint32_t rs2) { return __builtin_riscv_clmul(rs1, rs2); } -int32_t foo2(int32_t rs1, int32_t rs2) +uint32_t foo2(uint32_t rs1, uint32_t rs2) { return __builtin_riscv_clmulh(rs1, rs2); } -int32_t foo3(int32_t rs1, int32_t rs2) +uint32_t foo3(uint32_t rs1, uint32_t rs2) { return __builtin_riscv_clmulr(rs1, rs2); } diff --git a/gcc/testsuite/gcc.target/riscv/zbc64.c b/gcc/testsuite/gcc.target/riscv/zbc64.c index a19f42b2883f..841a0aa7847d 100644 --- a/gcc/testsuite/gcc.target/riscv/zbc64.c +++ b/gcc/testsuite/gcc.target/riscv/zbc64.c @@ -3,17 +3,17 @@ /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */ #include -int64_t foo1(int64_t rs1, int64_t rs2) +uint64_t foo1(uint64_t rs1, uint64_t rs2) { return __builtin_riscv_clmul(rs1, rs2); } -int64_t foo2(int64_t rs1, int64_t rs2) +uint64_t foo2(uint64_t rs1, uint64_t rs2) { return __builtin_riscv_clmulh(rs1, rs2); } -int64_t foo3(int64_t rs1, int64_t rs2) +uint64_t foo3(uint64_t rs1, uint64_t rs2) { return __builtin_riscv_clmulr(rs1, rs2); } diff --git a/gcc/testsuite/gcc.target/riscv/zbkb32.c b/gcc/testsuite/gcc.target/riscv/zbkb32.c index dd45b8b9dc72..b2e442dc49d8 100644 --- a/gcc/testsuite/gcc.target/riscv/zbkb32.c +++ b/gcc/testsuite/gcc.target/riscv/zbkb32.c @@ -4,27 +4,27 @@ #include -int32_t foo1(int16_t rs1, int16_t rs2) +uint32_t foo1(uint16_t rs1, uint16_t rs2) { return __builtin_riscv_pack(rs1, rs2); } -int32_t foo2(int8_t rs1, int8_t rs2) +uint32_t foo2(uint8_t rs1, uint8_t rs2) { return __builtin_riscv_packh(rs1, rs2); } -int32_t foo3(int32_t rs1) +uint32_t foo3(uint32_t rs1) { return __builtin_riscv_brev8(rs1); } -int32_t foo4(int32_t rs1) +uint32_t foo4(uint32_t rs1) { return __builtin_riscv_zip(rs1); } -int32_t foo5(int32_t rs1) +uint32_t foo5(uint32_t rs1) { return __builtin_riscv_unzip(rs1); } diff --git a/gcc/testsuite/gcc.target/riscv/zbkb64.c b/gcc/testsuite/gcc.target/riscv/zbkb64.c index 960a2ae30ed6..08ac9c2a9f00 100644 --- a/gcc/testsuite/gcc.target/riscv/zbkb64.c +++ b/gcc/testsuite/gcc.target/riscv/zbkb64.c @@ -3,22 +3,22 @@ /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */ #include -int64_t foo1(int32_t rs1, int32_t rs2) +uint64_t foo1(uint32_t rs1, uint32_t rs2) { return __builtin_riscv_pack(rs1, rs2); } -int64_t foo2(int8_t rs1, int8_t rs2) +uint64_t foo2(uint8_t rs1, uint8_t rs2) { return __builtin_riscv_packh(rs1, rs2); } -int64_t foo3(int16_t rs1, int16_t rs2) +uint64_t foo3(uint16_t rs1, uint16_t rs2) { return __builtin_riscv_packw(rs1, rs2); } -int64_t foo4(int64_t rs1, int64_t rs2) +uint64_t foo4(uint64_t rs1, uint64_t rs2) { return __builtin_riscv_brev8(rs1); } diff --git a/gcc/testsuite/gcc.target/riscv/zbkc32.c b/gcc/testsuite/gcc.target/riscv/zbkc32.c index a8e29200250b..29f0d624a7d7 100644 --- a/gcc/testsuite/gcc.target/riscv/zbkc32.c +++ b/gcc/testsuite/gcc.target/riscv/zbkc32.c @@ -3,12 +3,12 @@ /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */ #include -int32_t foo1(int32_t rs1, int32_t rs2) +uint32_t foo1(uint32_t rs1, uint32_t rs2) { return __builtin_riscv_clmul(rs1, rs2); } -int32_t foo2(int32_t rs1, int32_t rs2) +uint32_t foo2(uint32_t rs1, uint32_t rs2) { return __builtin_riscv_clmulh(rs1, rs2); } diff --git a/gcc/testsuite/gcc.target/riscv/zbkc64.c b/gcc/testsuite/gcc.target/riscv/zbkc64.c index 728f8baf099d..53e6ac215ed3 100644 --- a/gcc/testsuite/gcc.target/riscv/zbkc64.c +++ b/gcc/testsuite/gcc.target/riscv/zbkc64.c @@ -3,12 +3,12 @@ /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */ #include -int64_t foo1(int64_t rs1, int64_t rs2) +uint64_t foo1(uint64_t rs1, uint64_t rs2) { return __builtin_riscv_clmul(rs1, rs2); } -int64_t foo2(int64_t rs1, int64_t rs2) +uint64_t foo2(uint64_t rs1, uint64_t rs2) { return __builtin_riscv_clmulh(rs1, rs2); } diff --git a/gcc/testsuite/gcc.target/riscv/zbkx32.c b/gcc/testsuite/gcc.target/riscv/zbkx32.c index bd95524f548b..b8b822a7c499 100644 --- a/gcc/testsuite/gcc.target/riscv/zbkx32.c +++ b/gcc/testsuite/gcc.target/riscv/zbkx32.c @@ -4,12 +4,12 @@ #include -int32_t foo3(int32_t rs1, int32_t rs2) +uint32_t foo3(uint32_t rs1, uint32_t rs2) { return __builtin_riscv_xperm8(rs1, rs2); } -int32_t foo4(int32_t rs1, int32_t rs2) +uint32_t foo4(uint32_t rs1, uint32_t rs2) { return __builtin_riscv_xperm4(rs1, rs2); } diff --git a/gcc/testsuite/gcc.target/riscv/zbkx64.c b/gcc/testsuite/gcc.target/riscv/zbkx64.c index 2a04a94b86c4..732436701b33 100644 --- a/gcc/testsuite/gcc.target/riscv/zbkx64.c +++ b/gcc/testsuite/gcc.target/riscv/zbkx64.c @@ -4,12 +4,12 @@ #include -int64_t foo1(int64_t rs1, int64_t rs2) +uint64_t foo1(uint64_t rs1, uint64_t rs2) { return __builtin_riscv_xperm8(rs1, rs2); } -int64_t foo2(int64_t rs1, int64_t rs2) +uint64_t foo2(uint64_t rs1, uint64_t rs2) { return __builtin_riscv_xperm4(rs1, rs2); } diff --git a/gcc/testsuite/gcc.target/riscv/zknd32.c b/gcc/testsuite/gcc.target/riscv/zknd32.c index 5fcc66da9015..e60c027e0911 100644 --- a/gcc/testsuite/gcc.target/riscv/zknd32.c +++ b/gcc/testsuite/gcc.target/riscv/zknd32.c @@ -4,12 +4,12 @@ #include -int32_t foo1(int32_t rs1, int32_t rs2, int bs) +uint32_t foo1(uint32_t rs1, uint32_t rs2, int bs) { return __builtin_riscv_aes32dsi(rs1,rs2,bs); } -int32_t foo2(int32_t rs1, int32_t rs2, int bs) +uint32_t foo2(uint32_t rs1, uint32_t rs2, int bs) { return __builtin_riscv_aes32dsmi(rs1,rs2,bs); } diff --git a/gcc/testsuite/gcc.target/riscv/zknd64.c b/gcc/testsuite/gcc.target/riscv/zknd64.c index b1dff98f7e21..910b91c6ed88 100644 --- a/gcc/testsuite/gcc.target/riscv/zknd64.c +++ b/gcc/testsuite/gcc.target/riscv/zknd64.c @@ -4,27 +4,27 @@ #include -int64_t foo1(int64_t rs1, int64_t rs2) +uint64_t foo1(uint64_t rs1, uint64_t rs2) { return __builtin_riscv_aes64ds(rs1,rs2); } -int64_t foo2(int64_t rs1, int64_t rs2) +uint64_t foo2(uint64_t rs1, uint64_t rs2) { return __builtin_riscv_aes64dsm(rs1,rs2); } -int64_t foo3(int64_t rs1, int rnum) +uint64_t foo3(uint64_t rs1, unsigned rnum) { return __builtin_riscv_aes64ks1i(rs1,rnum); } -int64_t foo4(int64_t rs1, int64_t rs2) +uint64_t foo4(uint64_t rs1, uint64_t rs2) { return __builtin_riscv_aes64ks2(rs1,rs2); } -int64_t foo5(int64_t rs1) +uint64_t foo5(uint64_t rs1) { return __builtin_riscv_aes64im(rs1); } diff --git a/gcc/testsuite/gcc.target/riscv/zkne32.c b/gcc/testsuite/gcc.target/riscv/zkne32.c index c131c9a6bbb1..252e9ffa43b3 100644 --- a/gcc/testsuite/gcc.target/riscv/zkne32.c +++ b/gcc/testsuite/gcc.target/riscv/zkne32.c @@ -4,12 +4,12 @@ #include -int32_t foo1(int32_t rs1, int32_t rs2, int bs) +uint32_t foo1(uint32_t rs1, uint32_t rs2, unsigned bs) { return __builtin_riscv_aes32esi(rs1, rs2, bs); } -int32_t foo2(int32_t rs1, int32_t rs2, int bs) +uint32_t foo2(uint32_t rs1, uint32_t rs2, unsigned bs) { return __builtin_riscv_aes32esmi(rs1, rs2, bs); } diff --git a/gcc/testsuite/gcc.target/riscv/zkne64.c b/gcc/testsuite/gcc.target/riscv/zkne64.c index 7d82b5a5d411..b25f6b5c29ac 100644 --- a/gcc/testsuite/gcc.target/riscv/zkne64.c +++ b/gcc/testsuite/gcc.target/riscv/zkne64.c @@ -4,22 +4,22 @@ #include -int64_t foo1(int64_t rs1, int64_t rs2) +uint64_t foo1(uint64_t rs1, uint64_t rs2) { return __builtin_riscv_aes64es(rs1,rs2); } -int64_t foo2(int64_t rs1, int64_t rs2) +uint64_t foo2(uint64_t rs1, uint64_t rs2) { return __builtin_riscv_aes64esm(rs1,rs2); } -int64_t foo3(int64_t rs1, int rnum) +uint64_t foo3(uint64_t rs1, unsigned rnum) { return __builtin_riscv_aes64ks1i(rs1,rnum); } -int64_t foo4(int64_t rs1, int64_t rs2) +uint64_t foo4(uint64_t rs1, uint64_t rs2) { return __builtin_riscv_aes64ks2(rs1,rs2); } diff --git a/gcc/testsuite/gcc.target/riscv/zknh-sha256.c b/gcc/testsuite/gcc.target/riscv/zknh-sha256.c index 54329aa6af2e..952d611cd0b9 100644 --- a/gcc/testsuite/gcc.target/riscv/zknh-sha256.c +++ b/gcc/testsuite/gcc.target/riscv/zknh-sha256.c @@ -2,22 +2,22 @@ /* { dg-options "-O2 -march=rv64gc_zknh -mabi=lp64" } */ /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */ -long foo1(long rs1) +unsigned long foo1(unsigned long rs1) { return __builtin_riscv_sha256sig0(rs1); } -long foo2(long rs1) +unsigned long foo2(unsigned long rs1) { return __builtin_riscv_sha256sig1(rs1); } -long foo3(long rs1) +unsigned long foo3(unsigned long rs1) { return __builtin_riscv_sha256sum0(rs1); } -long foo4(long rs1) +unsigned long foo4(unsigned long rs1) { return __builtin_riscv_sha256sum1(rs1); } diff --git a/gcc/testsuite/gcc.target/riscv/zknh-sha512-32.c b/gcc/testsuite/gcc.target/riscv/zknh-sha512-32.c index 4ebc470f8ab7..f2bcae36a1f2 100644 --- a/gcc/testsuite/gcc.target/riscv/zknh-sha512-32.c +++ b/gcc/testsuite/gcc.target/riscv/zknh-sha512-32.c @@ -4,32 +4,32 @@ #include -int32_t foo1(int32_t rs1, int32_t rs2) +uint32_t foo1(uint32_t rs1, uint32_t rs2) { return __builtin_riscv_sha512sig0h(rs1,rs2); } -int32_t foo2(int32_t rs1, int32_t rs2) +uint32_t foo2(uint32_t rs1, uint32_t rs2) { return __builtin_riscv_sha512sig0l(rs1,rs2); } -int32_t foo3(int32_t rs1, int32_t rs2) +uint32_t foo3(uint32_t rs1, uint32_t rs2) { return __builtin_riscv_sha512sig1h(rs1,rs2); } -int32_t foo4(int32_t rs1, int32_t rs2) +uint32_t foo4(uint32_t rs1, uint32_t rs2) { return __builtin_riscv_sha512sig1l(rs1,rs2); } -int32_t foo5(int32_t rs1, int32_t rs2) +uint32_t foo5(uint32_t rs1, uint32_t rs2) { return __builtin_riscv_sha512sum0r(rs1,rs2); } -int32_t foo6(int32_t rs1, int32_t rs2) +uint32_t foo6(uint32_t rs1, uint32_t rs2) { return __builtin_riscv_sha512sum1r(rs1,rs2); } diff --git a/gcc/testsuite/gcc.target/riscv/zknh-sha512-64.c b/gcc/testsuite/gcc.target/riscv/zknh-sha512-64.c index 0fb5c75b9ce6..4f248575e66e 100644 --- a/gcc/testsuite/gcc.target/riscv/zknh-sha512-64.c +++ b/gcc/testsuite/gcc.target/riscv/zknh-sha512-64.c @@ -4,22 +4,22 @@ #include -int64_t foo1(int64_t rs1) +uint64_t foo1(uint64_t rs1) { return __builtin_riscv_sha512sig0(rs1); } -int64_t foo2(int64_t rs1) +uint64_t foo2(uint64_t rs1) { return __builtin_riscv_sha512sig1(rs1); } -int64_t foo3(int64_t rs1) +uint64_t foo3(uint64_t rs1) { return __builtin_riscv_sha512sum0(rs1); } -int64_t foo4(int64_t rs1) +uint64_t foo4(uint64_t rs1) { return __builtin_riscv_sha512sum1(rs1); } diff --git a/gcc/testsuite/gcc.target/riscv/zksed32.c b/gcc/testsuite/gcc.target/riscv/zksed32.c index 9548d007cb22..7df04147e05c 100644 --- a/gcc/testsuite/gcc.target/riscv/zksed32.c +++ b/gcc/testsuite/gcc.target/riscv/zksed32.c @@ -4,12 +4,12 @@ #include -int32_t foo1(int32_t rs1, int32_t rs2, int bs) +uint32_t foo1(uint32_t rs1, uint32_t rs2, unsigned bs) { return __builtin_riscv_sm4ks(rs1,rs2,bs); } -int32_t foo2(int32_t rs1, int32_t rs2, int bs) +uint32_t foo2(uint32_t rs1, uint32_t rs2, unsigned bs) { return __builtin_riscv_sm4ed(rs1,rs2,bs); } diff --git a/gcc/testsuite/gcc.target/riscv/zksed64.c b/gcc/testsuite/gcc.target/riscv/zksed64.c index 190a654151db..3485adf9cd88 100644 --- a/gcc/testsuite/gcc.target/riscv/zksed64.c +++ b/gcc/testsuite/gcc.target/riscv/zksed64.c @@ -4,12 +4,12 @@ #include -int64_t foo1(int64_t rs1, int64_t rs2, int bs) +uint64_t foo1(uint64_t rs1, uint64_t rs2, unsigned bs) { return __builtin_riscv_sm4ks(rs1,rs2,bs); } -int64_t foo2(int64_t rs1, int64_t rs2, int bs) +uint64_t foo2(uint64_t rs1, uint64_t rs2, unsigned bs) { return __builtin_riscv_sm4ed(rs1,rs2,bs); } diff --git a/gcc/testsuite/gcc.target/riscv/zksh32.c b/gcc/testsuite/gcc.target/riscv/zksh32.c index 50370b58b7a9..20513f986f88 100644 --- a/gcc/testsuite/gcc.target/riscv/zksh32.c +++ b/gcc/testsuite/gcc.target/riscv/zksh32.c @@ -4,12 +4,12 @@ #include -int32_t foo1(int32_t rs1) +uint32_t foo1(uint32_t rs1) { return __builtin_riscv_sm3p0(rs1); } -int32_t foo2(int32_t rs1) +uint32_t foo2(uint32_t rs1) { return __builtin_riscv_sm3p1(rs1); } diff --git a/gcc/testsuite/gcc.target/riscv/zksh64.c b/gcc/testsuite/gcc.target/riscv/zksh64.c index 69847f3df359..bdd137872785 100644 --- a/gcc/testsuite/gcc.target/riscv/zksh64.c +++ b/gcc/testsuite/gcc.target/riscv/zksh64.c @@ -4,12 +4,12 @@ #include -int64_t foo1(int64_t rs1) +uint64_t foo1(uint64_t rs1) { return __builtin_riscv_sm3p0(rs1); } -int64_t foo2(int64_t rs1) +uint64_t foo2(uint64_t rs1) { return __builtin_riscv_sm3p1(rs1); }