From patchwork Tue Jan 16 17:13:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mary Bennett X-Patchwork-Id: 84194 X-Patchwork-Delegate: jlaw@ventanamicro.com Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 89CBE3858283 for ; Tue, 16 Jan 2024 17:14:59 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id E46193858416 for ; Tue, 16 Jan 2024 17:14:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E46193858416 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 E46193858416 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::332 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705425255; cv=none; b=H4qCl1d4r1Z+bY/kWdKmyG3I+Y/WapTMrB3OAPcjE2A9rZoUoBTa/i9Jv4AqZhiIdA9wZB+MARa0S2m5bWEcwIh6hucbwMD8QTJtAwAuU9bWmgKAQIgVbPgQWjVlzL7VQyndjZFDlmCqS0rM4BPa5te7KI/X3Agv8ABJZoqvVhw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705425255; c=relaxed/simple; bh=P3WzfDK8p0M5w1wqZlATMgwqbFtu9PlIiE8xsBgZ594=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=V+jP9z2igPa9xJdlY9UqWL0bHksP/wR7fIC9V0gETjAT2+gLQmh1F2kRtlL+3ep9h5zf79G94BsSQHMRbg8+8uBaPA1xKlIJay+dk7ll4sZrqo8uNioo5L4TsSX7fU1MjP0FStRyXUYnBb+7D2THD2A+TAOxNQEq1nRWo4IJ6Ls= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40e60e137aaso52809565e9.0 for ; Tue, 16 Jan 2024 09:14:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1705425248; x=1706030048; 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=Az6htOB7+D5oYRwLPsMHwK4tjyZWZD82WkLnr55gIPO/acjsAPINnPpTL7Rx2ehmfc TZtHhNMeoMUxpc3zPC/PoO2iYLI7cmNR48KzW8zjE8gMCKNeUpb2oRdIUEpwIVdsh2OL VLO8ASKg3pnEclkElzbN3+ThUQsc9e3OmLioUo2zfbgNkWVJnTUKDIl1Bmm5MBmdkN6g Nus3on09fSu2kz9A/M2/THY8GdkeUNcayaK00BJLLhfDbo/GoHwIgay/ab9ZTs6L3K/6 J3riY6p3iVSJHZ1UeUSCotxedfuESD02LZOfgyh6g28+/2VUcvYwM6+xlAy4e+4A4hI/ VJDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705425248; x=1706030048; 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=sAtR8gFUwKMvlfORk27ArUrqWLtQypMUKkB4uUcnF5xxpxNOzsoiG8SP5nxforwAYX xF+E5SDBALp2+zHwBDsQIfdUGO4Ji1+3zkQg4QQWDXAT21FgDUe7BjemT8rMVwG80+lV X1fm7vKniSz9Y2SfpEkLJ8EkXmG7xICs2W77WIkKlKvSauqOnkBrGtfcjNx4KzTBa8z8 vP7TSXVlx+MYj/ky4O8R/bTeOTKZq7Ii6+jGywu+iDBzQQYDF2jo6xtLbuECkVyImoUt X85B6NXejG/HGfuOCaRVkk2GnXAsGm3qYxsUrr8DU+vzAAr0TVNMWAWUyUa6+YdMiJm+ mBcQ== X-Gm-Message-State: AOJu0YxxFSNSWB+aBY7Cu1SwZLpxnk0nZBiGlhXC0dxeqtf1DIejCQg9 tqCwUtS7pXH4/cEEa2WoAG7jfcujwcFZ1UnGfkdtsbpdwJk= X-Google-Smtp-Source: AGHT+IEafRUhsR9ODXmj47Yh+K5V9PjnUNoKrVSTzbgwAqsb0IDrFmF3yGQnkl/TcfS2j13NIMmwmQ== X-Received: by 2002:a05:600c:21c3:b0:40e:87e7:ecbe with SMTP id x3-20020a05600c21c300b0040e87e7ecbemr59732wmj.153.1705425247893; Tue, 16 Jan 2024 09:14:07 -0800 (PST) Received: from troughton.lym.embecosm-corp.com ([212.69.42.53]) by smtp.gmail.com with ESMTPSA id o21-20020a05600c4fd500b0040e34ca648bsm20045876wmq.0.2024.01.16.09.14.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 09:14:07 -0800 (PST) From: Mary Bennett To: gcc-patches@gcc.gnu.org Cc: mary.bennett@embecosm.com Subject: [PATCH v3 2/2] RISC-V: Fix XCValu test Date: Tue, 16 Jan 2024 17:13:51 +0000 Message-Id: <20240116171351.913881-3-mary.bennett@embecosm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240116171351.913881-1-mary.bennett@embecosm.com> References: <20240116163529.623568-1-mary.bennett@embecosm.com> <20240116171351.913881-1-mary.bennett@embecosm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.5 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+patchwork=sourceware.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; }