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: 203825 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp689372dyc; Tue, 20 Feb 2024 14:04:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUi5UKFLcWRqgl5eaze9sWZ55NPv/+iE52QACE6JG2VZGnNvguJrnHEelrroLtNGSzxC0pY/6If6BjH64nAxSTC86+I7Q== X-Google-Smtp-Source: AGHT+IEZp1mi9Axg3BFM5CSM3sc1zWyWSmaBY6Gws1cx/tCP0nau6+255LzrLE1sh+mAd6Xm47sj X-Received: by 2002:ac8:5f53:0:b0:42d:a99a:dd32 with SMTP id y19-20020ac85f53000000b0042da99add32mr22500610qta.23.1708466647491; Tue, 20 Feb 2024 14:04:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708466647; cv=pass; d=google.com; s=arc-20160816; b=hOt8ch34iGB/WZANYtUaOoPn0V3AiFz+nuzXHlv57MkYocfL0r+kUICa++ylqpBiQv uDILC9S5IW1JLPIxNLzMY/FQAhz0szc47cTeM1oZe4XrJ5jS+DkwJUbJMmVbw8qa8DN+ SsbbvA/Xh5L9+ws6Iw3TrOgTYMGrfuuVzCwnbA4G+GbtICrJAbfBQ0yxyQxUtgct6k9B m2EwgxxDq3IafWguU22J4pcbqp1lbluwoKHVPAuuRfDauodchY0+hn8IMQ9wl9vFw4Er FzC1sxA58p2kbmxAE1lzhfBchuOq3b9LRbJCE2hCDQZjX9g8KY9+ZlfIVHnjdzibTM4D yobw== 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=R2E9kTCigQXHMFleFzmV1fj1IcdvFepP+Kv8FAJnRVM=; fh=kwBcWl+U0pe2Of4iHv28t6CDlkVuGM8rhVmjvLxyW+8=; b=apB43ylLiCjDzXOgREmg6Slhl352IUTUP6LSS5uLFtkWKDSTcDEg73itc9QGIvx0kJ 8JDpwQT0mT5XQqmeg1JBXUkh7vwx4mDNuQOr29FA/tKrS8d7dofrJQ9s90MZbR2qgDuO kJIJvw+xG80E5Ti8dlEie6h2XA689pX3LUndWuQDVi6adqqoFoMXC9ucBeKTyujlEpET PRUREnVOYfv/DQ4I43pdW+CH7B9xb/2MIj731qu89NyEdwnKzhZgORTZQN3l4N4xm6GB zm9gARj5H4oYUcmovfzAqPx6dfiBSAzfO4d4ocbNazBYdQUDvzr9EL4YteMTQG6hcJfu dlwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=nfH18o4D; 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 j15-20020ac85c4f000000b0042e12acf76asi5747524qtj.88.2024.02.20.14.04.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 14:04:07 -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=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=nfH18o4D; 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 369383858C66 for ; Tue, 20 Feb 2024 22:04:07 +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-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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791457123045822483 X-GMAIL-MSGID: 1791457123045822483 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) {}