From patchwork Tue Jan 16 16:35:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mary Bennett X-Patchwork-Id: 1887126 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=embecosm.com header.i=@embecosm.com header.a=rsa-sha256 header.s=google header.b=bhxd7uQg; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TDvlh3GZmz1yPJ for ; Wed, 17 Jan 2024 03:36:16 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 649623857C67 for ; Tue, 16 Jan 2024 16:36:14 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by sourceware.org (Postfix) with ESMTPS id 29CFF3857733 for ; Tue, 16 Jan 2024 16:35:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 29CFF3857733 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 29CFF3857733 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::32c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705422950; cv=none; b=a6WK03Mhfvuc+kI8Y/QQ8kH8rZaZp0gYM2kpCgKONFGlRjvy9rUF+0oA35u1kTSrFJAhNKs0vjcjJg+o8k/UWsdqGlq5ypgvMKXblyV0d3ufHwq8pEGKsUK23GUI4EuNPRmCGqYGBRGBDZPsbGmoCd3I9nq/CTz5jjcS3Nyc5Cs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705422950; c=relaxed/simple; bh=P3WzfDK8p0M5w1wqZlATMgwqbFtu9PlIiE8xsBgZ594=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=ZXEw55OrsKUtBpU83Y2bp2eEHKCpMSdNeTRddLTDRv4Y0HQjZiDBnyBNNGmP2hp0YcYXV6k5DEbEa1TNUGR+JuhCR2wLi1sOKRY2knu+bTVaftzPXEOKXGT4F31k2UyaWBXrpM3SDIkfU0cBr9XaxaYRd3+tQusf12l2s3nNRkk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40e8801221cso90245e9.1 for ; Tue, 16 Jan 2024 08:35:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1705422946; x=1706027746; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=773gMaM1s0lp33eSAKsmXZ6OzjjXu7XKUyjwqjFRCDM=; b=bhxd7uQgo3KJR0TEAY3de0KcmC6awcL+QeOiw/o3PsQBKYHs3FfmMRbYj410PAqzn9 7hBsUap5kAUrbmGNWjk3uvWR0xvTC0HMuhhAPag6hgh3YtMt97FOZtfJFs7g34AQ9in8 sb5rhEBh6willuOaAxmDIfZ+pEqMM/tK4CkaK+FZkdJJ3v3rB44JaEjYyhxV7fqvM3fY UW6KxsGZY6vV//onJhalfTJtDFSt7ZKflxLbskcgnBlToOqnHsJ1nQXYpMXwNYCYttcz SBOXBSVY8CqdjiYed8wqr1TP6VmRjYhZ6vKCsW7E2v+7DDCKEdenZqcG+521EXWCd4IB Ktpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705422946; x=1706027746; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=773gMaM1s0lp33eSAKsmXZ6OzjjXu7XKUyjwqjFRCDM=; b=AgQ57L+I6ge0OWk859Zc5kP5V7OaoPVmMagcTU6zdrKoVRHrPKXvzbapQS08cNoCVU efd1yw00uF1MWi6uKQUfaKieMO1QIunm6LOdoqFRB2Ph/trLFx/w6D99TGGyoLkvMPQR RGrVrDVIRm4DUk7vDQwuT3siBd+Z3F6QjTEQljQIstzHw3l57ocUb5E/6YM0SVs10q+j Q+6SRQck9xBY43mR6BTLpp6cPDrFYQq95pwW8cH0DSQZDBNQN1Bl/FJCx0SGIr04Z7aP edij4+Xwvh8CEaqDuPUNgEnxsxYQ5uMmzfZFO1+jzWHkWUCCLzBcp3FTI+01F5h3Ztr3 TVcg== X-Gm-Message-State: AOJu0YxS1nGyQjsFjZNyTx2MoPSRJeGSpEmaeLDwTVNYPKCBjvSrq8Ce 5z8hlZ6qvy2lnd8lOhvtQbF2/WzYaLF1j5AHBwb0N0/Au+8= X-Google-Smtp-Source: AGHT+IFck2LtOv20TEToqaM8CLO4bywq+dZapOKLX3WrIu+Lp4HcH6E3sfKsci1kkXyZy8+ILGaP0w== X-Received: by 2002:a05:600c:3d92:b0:40e:8255:2cfe with SMTP id bi18-20020a05600c3d9200b0040e82552cfemr924747wmb.9.1705422946652; Tue, 16 Jan 2024 08:35:46 -0800 (PST) Received: from troughton.lym.embecosm-corp.com ([212.69.42.53]) by smtp.gmail.com with ESMTPSA id j7-20020a05600c190700b0040e52cac976sm23442096wmq.29.2024.01.16.08.35.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 08:35:46 -0800 (PST) From: Mary Bennett To: gcc-patches@gcc.gnu.org Cc: mary.bennett@embecosm.com Subject: [PATCH v2 2/2] RISC-V: Fix XCValu test Date: Tue, 16 Jan 2024 16:35:29 +0000 Message-Id: <20240116163529.623568-3-mary.bennett@embecosm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240116163529.623568-1-mary.bennett@embecosm.com> References: <20231109115736.541131-1-mary.bennett@embecosm.com> <20240116163529.623568-1-mary.bennett@embecosm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.6 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+incoming=patchwork.ozlabs.org@gcc.gnu.org gcc/testsuite/ChangeLog: * gcc.target/riscv/cv-alu-fail-compile.c: Change warning to error. --- .../gcc.target/riscv/cv-alu-fail-compile.c | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/gcc/testsuite/gcc.target/riscv/cv-alu-fail-compile.c b/gcc/testsuite/gcc.target/riscv/cv-alu-fail-compile.c index bbdb2d58c3f..89c7f6f2f5a 100644 --- a/gcc/testsuite/gcc.target/riscv/cv-alu-fail-compile.c +++ b/gcc/testsuite/gcc.target/riscv/cv-alu-fail-compile.c @@ -7,26 +7,26 @@ extern int d; int foo(int a, int b, int c) { - d += __builtin_riscv_cv_alu_slet (a, b); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_sletu (a, b); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_addN (a, b, 31); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_addRN (a, b, 31); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_adduN (a, b, 31); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_adduRN (a, b, 31); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_clip (a, 31); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_clipu (a, 35); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_extbs (a); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_extbz (a); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_exths (a); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_exthz (a); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_min (a, b); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_minu (a, b); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_max (a, b); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_maxu (a, b); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_subN (a, b, 31); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_subRN (a, b, 31); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_subuN (a, b, 31); /* { dg-warning "implicit declaration of function" } */ - d += __builtin_riscv_cv_alu_subuRN (a, b, 31); /* { dg-warning "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_slet (a, b); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_sletu (a, b); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_addN (a, b, 31); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_addRN (a, b, 31); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_adduN (a, b, 31); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_adduRN (a, b, 31); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_clip (a, 31); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_clipu (a, 35); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_extbs (a); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_extbz (a); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_exths (a); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_exthz (a); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_min (a, b); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_minu (a, b); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_max (a, b); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_maxu (a, b); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_subN (a, b, 31); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_subRN (a, b, 31); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_subuN (a, b, 31); /* { dg-error "implicit declaration of function" } */ + d += __builtin_riscv_cv_alu_subuRN (a, b, 31); /* { dg-error "implicit declaration of function" } */ return d; }