From patchwork Tue Feb 20 22:03:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edwin Lu X-Patchwork-Id: 1901691 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=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=nfH18o4D; 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 4TfYMV23B2z23cl for ; Wed, 21 Feb 2024 09:03:48 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 735853858C50 for ; Tue, 20 Feb 2024 22:03:46 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by sourceware.org (Postfix) with ESMTPS id 4A4E63858D28 for ; Tue, 20 Feb 2024 22:03:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4A4E63858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4A4E63858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::630 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708466609; cv=none; b=GqjKFnnY2zThu0XaXFgVfGf67xbaHnM+0K0XIqFfz74XXn2RAjkF5lS2oAYK16/UMBwhiW0PnHNilhM+3Te+v/pEa5ifzrEQehP5CMt3uu3N0Oz8AUmCXmW8B4xCLvrvk8soXM6BWyPDTMVRqQuqWham+g+fch3nE3nbs2+kJx8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708466609; c=relaxed/simple; bh=WkMRB7m7BM2E0nYb7w7d5q3rLZ0lTyNW+6XUikAmAG4=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=QZzmemYync75HYC9UC4v7CoownCcuD33Ca/8AiVezTfAOlk5qq8PS1iHDQfKFdSNAApCZvl5j1bZLvfBqnHGmxsXNjb7WtgjoBwq9RzmDCNrq71zpmpATLQGYXVjljitrCg+jQAzkOUhCmChv7QsSBeVdFNVT7VTjnwcrjYbNTk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1d911c2103aso33951385ad.0 for ; Tue, 20 Feb 2024 14:03:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1708466598; x=1709071398; 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=R2E9kTCigQXHMFleFzmV1fj1IcdvFepP+Kv8FAJnRVM=; b=nfH18o4DPyxo0GHRbRoPiIER+md77wdBWYyXsOUjgAw/gWTdoPNcZq+USPBLvtdXYr L9FYQAwZkxS/nnKQQ7mJS4zeCFPQqGw1z64JykvM+oJE+IqW7Zz+GghQZDjhp7SNkK7e 3LDhUkZH7GkHQ+S7u3mvWMP/wWU+CQEx+SseuUaL25SF37TZXdz1kq+yCxsTQlg4yi2C UTgaHqSTPIbqa9sWWYdVhGiPXVRjLelzQY1CpimEkf6Hw90hzEiivyOIQQPAth89KWKD AGLUFa1CRGJwvHsEwBGdT8BBPBzE9WwZRL+pLBGNY1tvXXAo7PMJVT+k0bbYpZQ6xHgM iMcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708466598; x=1709071398; 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=R2E9kTCigQXHMFleFzmV1fj1IcdvFepP+Kv8FAJnRVM=; b=tBsBi15K6r8vu4yVI/gEBA1kWH0hx/9eMVO+C+QBsBCpkSMCHQhGCHJzd8NgMVzC/s I0xx+WdBMJ1qntdonDV40HQ4MJWB/VQLkybA1Igx/qDoyjT0E1vva06ETOZJu+4aOxzK 5qtZikVJdlX7qE9ZVAKeQIvQLoaf5aBUe7ggjj99JHBzfKH/lzPUAQTKdnpF6KF4kq15 gt7e0aro69oIR/sywsmF232meZfowncDoq0BM3KiBjhhe24lm8o8g5RjQYmV8iCAWYLZ Y3F+mOaGY1CPX2JOf4eGYgc5Us6E0IwwroHVhH7VQjp59LclVbNY9oLRjmlXK2RUsiyn yxOw== X-Gm-Message-State: AOJu0YykPk0Qh4qNG+Su17wT37+uL4j57tmz/EETEgOEIBAA6QU2Ae4p ddfEJlWsXS1ruehxB0y2CHN2T2GxiFq+gNNkdH2+I7emCd5F8rs4GiDrSJlzZ1JdvBGgSNFECv1 F X-Google-Smtp-Source: AGHT+IHJIq2tij/qvprKAbru1iyryO/MuXmBZWq92KijI0WYKCdv75ttaPrha5qnr0UiDT2V5j/jvg== X-Received: by 2002:a17:902:bf0c:b0:1d9:6de3:9980 with SMTP id bi12-20020a170902bf0c00b001d96de39980mr13123911plb.48.1708466597849; Tue, 20 Feb 2024 14:03:17 -0800 (PST) Received: from ewlu.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id bd5-20020a170902830500b001dc0cb0413fsm2675038plb.155.2024.02.20.14.03.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 14:03:17 -0800 (PST) From: Edwin Lu To: gcc-patches@gcc.gnu.org Cc: gnu-toolchain@rivosinc.com, rdapp.gcc@gmail.com, monk.chiang@sifive.com, Edwin Lu Subject: [PATCH V2] RISC-V: Specify mtune and march for PR113742 Date: Tue, 20 Feb 2024 14:03:13 -0800 Message-Id: <20240220220313.1211441-1-ewlu@rivosinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_NUMSUBJECT, 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 The testcase pr113742.c is failing for 32 bit targets due to the following cc1 error: cc1: error: ABI requries '-march=rv64' Specify '-march=rv64gc' with '-mtune=sifive-p600-series' V1: https://gcc.gnu.org/pipermail/gcc-patches/2024-February/645609.html PR target/113742 gcc/testsuite/ChangeLog: * gcc.target/riscv/pr113742.c: change mcpu to mtune and add march Signed-off-by: Edwin Lu --- V1: use require-effective-target V2: switch to specifying march and mtune --- gcc/testsuite/gcc.target/riscv/pr113742.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/riscv/pr113742.c b/gcc/testsuite/gcc.target/riscv/pr113742.c index ab8934c2a8a..573afd6f0ad 100644 --- a/gcc/testsuite/gcc.target/riscv/pr113742.c +++ b/gcc/testsuite/gcc.target/riscv/pr113742.c @@ -1,4 +1,4 @@ -//* { dg-do compile } */ -/* { dg-options "-O2 -finstrument-functions -mabi=lp64d -mcpu=sifive-p670" } */ +/* { dg-do compile } */ +/* { dg-options "-O2 -finstrument-functions -march=rv64gc -mabi=lp64d -mtune=sifive-p600-series" } */ void foo(void) {}