From patchwork Mon Jan 8 06:11:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kito Cheng X-Patchwork-Id: 185813 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp852625dyq; Sun, 7 Jan 2024 22:12:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IHtVLcLTkd6XBxwY1JHdg34VuvybCLpYDJfk91vF9JE6Q6w3U2F9sgYMCng4oTQSn5L5VAY X-Received: by 2002:a05:6214:1c8c:b0:681:a05:cb6d with SMTP id ib12-20020a0562141c8c00b006810a05cb6dmr670399qvb.92.1704694335400; Sun, 07 Jan 2024 22:12:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704694335; cv=pass; d=google.com; s=arc-20160816; b=kBFMXzyftmuovkbKV/qkOgVOgfiThDecb9CE5wsBdEiEpUZvEpK8acVrCyUIbwYn+A BROdwQspdKAAqEtkeg9jgVuwp2DHZVE7OhyCFmAz69wLxjh1eyEeNE2vBA3stEhrblBU mWGz0AeY9hbcb1HmAkaAVInZJVMI5f1e9jhq2mrGQlsV5F10qE38iB/0NKfvtvE3CRr/ WKOVovNG/AxWpSbBq3DJfufMtZuRk7qHVQJVDoCz8jDEUF2leB2jXdObBjlVfpqsjxJM Swk6YH+ikZuOLKB473xKMyx8CyxVvAoeTTk4RLLJsimoSTuALpvc9ae1xMtmDqQIGXNv aGvA== 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:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=NTD5KEO6Kn4A6dbEPecQ1FQ+3tzVjoaaLrcr7haWiLc=; fh=3PEtMAzZ/QHK51eMWLHmFU83XGSjl3biDGL9/JiEFUQ=; b=eJCyXl4XRGBRNb4zYRcyXvUtz9TQa3fjRhZ2Z4Gtsg67Tb3I2q2xHUf0sNwUPj7Rd+ sP+aidi9lLDKSXZLLKVCKHmIzw3WXngqDW/iQLWWQ6un2l61XEfWdEMpbha9fSSVYzGF aEZXDToWKWlSaYZRVFyIGbNPfSJfjS63obz4wqnWSQETfbqK0KIPDp2oPL6DUyEiEJED z3DGwI64RVIoZDoUNuBm71kRHYDkzGStlrVmlDAdGxBBrkNkuIn9iML8a+qbANABMa48 LF7/H5iSSgVWe5GD5y+BKwe4V0xUohvUMUqKeHYQOgArJu6ebpS9AgZAoj78CyrEYecm KpCQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=Qh9n36+X; arc=pass (i=1); 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=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id t19-20020a0cde13000000b0068067042addsi6995290qvk.412.2024.01.07.22.12.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 22:12:15 -0800 (PST) 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=@sifive.com header.s=google header.b=Qh9n36+X; arc=pass (i=1); 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=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 20B2B385DC00 for ; Mon, 8 Jan 2024 06:12:15 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by sourceware.org (Postfix) with ESMTPS id 30C553858D35 for ; Mon, 8 Jan 2024 06:11:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 30C553858D35 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=sifive.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 30C553858D35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704694294; cv=none; b=PqgoFIjk0glfXd1AY/erRFNwqNrpTNofEk9E5rHXoFB/OP2S3DWVst/C2B5Sgklkth1n1taXWf8VKf/TdcWcz0sm8spJ9PJKJy8Wmp+6lBrJYjbEVUSzopT2u8HE9Mxp0wxbzRHVcH2Y9G99z0FdLyqUzfOVo/GRaA8445ZGya8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704694294; c=relaxed/simple; bh=h9XOMbUYhp0xOQR1LEMg++y4FTtZu+WYnP793SZkcmM=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=sJPqQDb5Rwd69t7KFo1bfbBiVq0KDYQuG20HoZrXrAOi6d/PSZqY3se0m/52DJ/QAPMB5IwEfhaOTImCglAA8ARWay9pgZ8I1AtTpzXeY7cRjmVcvtDPxrVidGSVPZw2HvuT8pkLhn458r0pU1ZGmaEZC8+fuFqAK0tQwDGVgvY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1d409bcb0e7so1859355ad.1 for ; Sun, 07 Jan 2024 22:11:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1704694289; x=1705299089; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=NTD5KEO6Kn4A6dbEPecQ1FQ+3tzVjoaaLrcr7haWiLc=; b=Qh9n36+XAAyZIJf0zZZ038KxKKicYCqJFRIXWPsPoVeUb+bAerPYvMg5KffdDGk96c ew3XFlWHsORbEYaUdua8TbuWWRbT76VILVHrXvDoYoMsh6LlM6kBQWdlB8xJtKjWXv6p 1m7ZPed9JfRhKwUqIaPlyiNLD2iY5+qSSu9EyB8xP7RdC387IUr9VIJqIw+DwN5ddAk4 cvc7LIgtocs47JLaWN/TQs0H0STV1XyG/O86RON5xSRk6F17HBMRvTUOhELD91gG9gJ9 Ld6IFZnBc37XgT1RIWCOFz56eQ+JYqEuDf4QMo904ct1ZWBpjuTALR1LcpTZgNHGdRwh zYmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704694289; x=1705299089; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NTD5KEO6Kn4A6dbEPecQ1FQ+3tzVjoaaLrcr7haWiLc=; b=IbiWxqVlLmkodftRDwityIAxZC8Re0we8w/bASqsypK6pdVV3SVT/3g1PgETxU5cKm azO03rnQIWLEIJdHwDDnZcQw0Yr3gY7k/yed06oV80xJZNcg46qu0+gQLmmwNFV35EaD Pd5HwdYyK/bP0Yn85odEoyVfiAmRj8V2Lidr09XnJJymozFjT7FAm4HDiJ1JvL44ySvK wVooY+n3M7g+NanQgdO5fHiFz9aRGr9VYd5MrYfUf5cCIM7F733Q7LWifqC8Dn6uQizw i3Ltuz9ap6MzQpCkbx3EjlElQ+gAZTRMixoJjRcWaskTnF5DbuTJJDcWiwOIXU0szgaw d+tw== X-Gm-Message-State: AOJu0YxuwJCKxKqFLR3vpqrZ6ScH0JrzZvsrFPTYTBEYsPrReYdEuaDg NNxNFL9753zv8Vq/W8612MJcxvdSgTtlTso7404JoIMiCem3Vg140A6pA3mv8M4r1FeEUh/dwph bRxZC9onN1bXhjDiwJUffn6um58sIfTWH3k0BAqlVxV9u2dcU3FboPWrMzx9vBncMRXSS/lPTkX xYoNar3f3h1YI= X-Received: by 2002:a17:902:b40a:b0:1d4:810:613c with SMTP id x10-20020a170902b40a00b001d40810613cmr967863plr.63.1704694289424; Sun, 07 Jan 2024 22:11:29 -0800 (PST) Received: from hsinchu18.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id h3-20020a170902704300b001d3e9937d92sm5357442plt.51.2024.01.07.22.11.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 22:11:29 -0800 (PST) From: Kito Cheng To: gcc-patches@gcc.gnu.org, kito.cheng@gmail.com, juzhe.zhong@rivai.ai Cc: Kito Cheng Subject: [committed] RISC-V: Fix testsuite Date: Mon, 8 Jan 2024 14:11:26 +0800 Message-Id: <20240108061126.792885-1-kito.cheng@sifive.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787501567412003251 X-GMAIL-MSGID: 1787501567412003251 Don't use assert, it not work well with multilib testing. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/partial/single_rgroup-3.h: Use check + abort rather than assert. --- .../riscv/rvv/autovec/partial/single_rgroup-3.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/partial/single_rgroup-3.h b/gcc/testsuite/gcc.target/riscv/rvv/autovec/partial/single_rgroup-3.h index 604e9048055..dfe48d6dae1 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/partial/single_rgroup-3.h +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/partial/single_rgroup-3.h @@ -105,7 +105,9 @@ int cond[N] = {0}; if (b_##TYPE[i] != a_##TYPE[i]) __builtin_abort(); \ } \ else \ - assert (b_##TYPE[i] == 0); \ + { \ + if (b_##TYPE[i] != 0) __builtin_abort(); \ + } \ } #define run_7(TYPE) \ @@ -151,7 +153,9 @@ int cond[N] = {0}; if (b_##TYPE[i] != a_##TYPE[i]) __builtin_abort(); \ } \ else \ - assert (b_##TYPE[i] == 0); \ + { \ + if (b_##TYPE[i] != 0) __builtin_abort(); \ + } \ } #define run_10(TYPE) \