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: 188571 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:42cf:b0:101:a8e8:374 with SMTP id q15csp399506dye; Tue, 16 Jan 2024 09:15:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhJ+NjnRpfmyVjuKRKdnijf/+Xs4RxHMOMn1LAi1r8sk6b9xf8FyqMrpcTmXo7itYHmmmb X-Received: by 2002:ac8:7d85:0:b0:429:f53d:a18a with SMTP id c5-20020ac87d85000000b00429f53da18amr4310499qtd.74.1705425314072; Tue, 16 Jan 2024 09:15:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705425314; cv=pass; d=google.com; s=arc-20160816; b=YekKCQWHPIByKui7zpqt6iDCNMM+dTZ9WqzbXPOCCOfujkv8irwvRxGzT0Mgc0udWE JovMLybtDNWQiui9hklS51TUdgCTAUBkjMK4hQw093DOuSgC1ojPWmZWrs4ac5/euC7n 1jviPr8cuvFgpc7QNWprCH9SdWIpiyo7SIy04kZtKCU9L2mzmQ+HxQQCpAsYNHIRjFFS wF52gsFqpqyXQGG/u+zBakaCBEWm3iJNKvtxDEDIw37zILn5Qm72wN1lZ9WJkm86Clw/ p/DEYZJHXuVP1kC7PJeyRyTaqCxHda03Mps8KkyikN0/glkigzXuU2KaQvLS3+unJ4f0 HUKg== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=773gMaM1s0lp33eSAKsmXZ6OzjjXu7XKUyjwqjFRCDM=; fh=qiT4HZV9olO2fGAIgbF8w4l7HXh8ja5CJNGeguP7WSc=; b=CdImuAPWYGfCTzCxrEFC+ooxZUAnsraCH6tPzA1QXjfs4q9B9okmZvOCK+eJS3rl7j Iw06HUHHP2V2oBL7tP49S4u2WZtYNDLdoDq/ujf9hFWGt1u1mbb03P32PbLYiMKB48ID pL3qR9OCIXcMpauxS3O+vrC5IIdbGTjUifiNKBIpAWHO/T5mvXsJCvEnOYAdBp5AnnlG 9XpSuzc5V4Dr0eHwDzPYSrtyVWy4Wsd55aCAoG7WyvWadruv4GHL5ogl2ufSfOl+XQjC yARqeED74qz2iUCeo1aZczceTT+CUpO5M2xDaExS69Ic96wFeJ1z46eCy7tPiikHNGg8 r4Zg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=Az6htOB7; 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id r22-20020ac85c96000000b0042a0956595fsi783613qta.572.2024.01.16.09.15.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 09:15:14 -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; dkim=pass header.i=@embecosm.com header.s=google header.b=Az6htOB7; 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 B2A613858418 for ; Tue, 16 Jan 2024 17:15:13 +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-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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788265625292413751 X-GMAIL-MSGID: 1788268054178026361 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; }