From patchwork Fri Aug 25 22:30:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 136945 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a7d1:0:b0:3f2:4152:657d with SMTP id p17csp2089929vqm; Fri, 25 Aug 2023 15:30:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGwxQGPG05vg7ySTSVS978c7MTnShlBTtyFiEv6AWLufoz6La7lYLjKk5wqCl3GaI1sahn+ X-Received: by 2002:a05:6402:3586:b0:522:b9ae:db3c with SMTP id y6-20020a056402358600b00522b9aedb3cmr20524753edc.6.1693002641618; Fri, 25 Aug 2023 15:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693002641; cv=none; d=google.com; s=arc-20160816; b=WpLNeDrd6KopyuSxy2a1L3CD7Bc7jXcHfbzrXltyPGXjhgyE+yMD+psGSeAXDtDKb8 eOPNbRXjkxlQeE/2jVKp6WY2tff7gKzorXEiO/1oJQdsBLSVe5Ye2vlr+yRNQq1X+LQa P1kvXKTRWWCw3blqkXp7mI0lX+MOAVFSFTe5OpLeuTUCEhkYFgrfjQYlrKE4gV1iDmMF S/sU8WC7G+XGIVpFaKPBROj8KQ/lYv4K8dzNQIOw8XBy4WwvS0xv150OFmmWtjmnYC4c 48a+1Bo7pLR4zTjlbMzOXmg5fq2hdyj3TZt6o+FlADDkYQX5bsuhMiHua2qi5l1OnZYg gc7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:to:subject:from :content-language:user-agent:mime-version:date:message-id :dkim-signature:dmarc-filter:delivered-to; bh=UVX9phrhdgLnhX2xCRYNdJlEh7whmY1f/l263pD467k=; fh=XNn3asQvIblazGK92GBt13dVv+YmGV3pBS0JC29ZQco=; b=egA24XDVa7/pUJ0efOCQNoQvDdhOx/PmwBL+zT/RhZ4AKMRhk2WEv4E5v9bTHhiHof Bu61uLt78pdnfP/qP2QkmkiNJooEXDX6YoOvGUP1+JyPHcx6keb+Pp66/UzTYXGBpdk9 9iy1QGlrH6a+1UfZi+ECtIrxghqjTrSx+H7b2knnUDpg9leQWaDNdqp8lAKDi/yallhp KpupDjhppRiqlPP50mmY9ibrHNgMU0nKlJZEsxDQUSwz/9U1gTHYRh5mrhKBBfRPki7t QZrNEYLYCSHGFeYyqQdXuMLg8LyUToBLNtxSN+aQbySfSzkWs7U+3/4bisUIisDde/y1 p7VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=hhQjYWNX; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id w25-20020aa7cb59000000b00528c38610a6si1663797edt.247.2023.08.25.15.30.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Aug 2023 15:30:41 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=hhQjYWNX; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 088373857C41 for ; Fri, 25 Aug 2023 22:30:36 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id D4AFD3858D32 for ; Fri, 25 Aug 2023 22:30:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D4AFD3858D32 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1c0d5b16aacso9366165ad.1 for ; Fri, 25 Aug 2023 15:30:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1693002602; x=1693607402; h=to:subject:from:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=UVX9phrhdgLnhX2xCRYNdJlEh7whmY1f/l263pD467k=; b=hhQjYWNXWM/uS7SlgRyGwpg/8pF+44067ZKWVK7Qgt9mRVlmRYt/MIYqTDRc1TcPNw esdFyORvLxQdYYNf+mr2ZQUQyLvvkYk+STZudwIrH6/DZnqpmTUni7v8wnYOnss7UPCi dJ/nZn2qpHwnV84jUAyUiqXM80lY9ZMYoi097J9a5KK/NIotM60LsWERn4TjKfa9ICnO 0goXGZb/EHl6LYaOv/LesM8m2PygE+aNE85qGvtMSaliBFe/lVlpOawlUVjUhBkFXxwl sLhl6sT+Y3cKskgK0eQjf39pG9qmbRIb8f7abS9ux6reRaUqt+OxD0kbSrj06kP//cM3 dGQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693002602; x=1693607402; h=to:subject:from:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UVX9phrhdgLnhX2xCRYNdJlEh7whmY1f/l263pD467k=; b=VtzXyQQF/8n2AtONTGvs0Wov6xQto/U2QhZ9AWczAVdrhAQCwbR0w5kM4AsZdPOuaG t/pJoQyQPoFJqjKXtcPXHrY7Ruqeo1qSSSZARFvE0K8w3kFB7zu63qFrxIRVbVwP+zns lmBN1g6mIymr5sPnAjB8c3Lf9wB6uQayZWzCP3qXVlUA1Yz+IKATpQcfyFluhZoIxLxO n7tfaSI+IazBWydmLQj4M74/ARSUBpwhQO7STVfxz2QCJrlgUwgUqfP5l5QbcUHWUtoL Wbjp69nvwecVaC3Kfh8as2gU8875JHpDnynCA/rmp/pVZaBNHDU9vPsDyL5MNSy6WRrD SnHA== X-Gm-Message-State: AOJu0YwPKuTO6+FQ3wXNQwnio+u78FaVGPtbQW69yKL0YTTqRdtOUqSi 1SDVgOBVHb93RrzKbpyKWKpKuzBPUWVaXhAbfoCYVQ== X-Received: by 2002:a17:902:ec83:b0:1c0:d17a:bfe9 with SMTP id x3-20020a170902ec8300b001c0d17abfe9mr5738592plg.46.1693002602037; Fri, 25 Aug 2023 15:30:02 -0700 (PDT) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id v11-20020a170902d68b00b001bf11cf2e21sm2258615ply.210.2023.08.25.15.30.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Aug 2023 15:30:01 -0700 (PDT) Message-ID: Date: Fri, 25 Aug 2023 16:30:00 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US From: Jeff Law Subject: [committed] RISC-V: Fix minor testsuite problem with zicond To: "gcc-patches@gcc.gnu.org" X-Spam-Status: No, score=-11.0 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 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.29 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 Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1775241938194177634 X-GMAIL-MSGID: 1775241938194177634 I thought I had already fixed this, but clearly if I did, I didn't include it in any upstream commits. With -Og the optimizers are hindered in various ways and this prevents using zicond. So skip this test with -Og (it was already being skipped at -O0). Pushed to the trunk. Jeff commit 3cd2b73079bac374ce1c542b9c9e354e00a8713d Author: Jeff Law Date: Fri Aug 25 16:23:06 2023 -0600 [committed] RISC-V: Fix minor testsuite problem with zicond I thought I had already fixed this, but clearly if I did, I didn't include it in any upstream commits. With -Og the optimizers are hindered in various ways and this prevents using zicond. So skip this test with -Og (it was already being skipped at -O0). gcc/testsuite * gcc.target/riscv/zicond-primitiveSemantics.c: Disable for -Og. diff --git a/gcc/testsuite/gcc.target/riscv/zicond-primitiveSemantics.c b/gcc/testsuite/gcc.target/riscv/zicond-primitiveSemantics.c index 76c5019a992..47d4e4c5683 100644 --- a/gcc/testsuite/gcc.target/riscv/zicond-primitiveSemantics.c +++ b/gcc/testsuite/gcc.target/riscv/zicond-primitiveSemantics.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-march=rv64gc_zicond -mabi=lp64d" { target { rv64 } } } */ /* { dg-options "-march=rv32gc_zicond -mabi=ilp32f" { target { rv32 } } } */ -/* { dg-skip-if "" { *-*-* } {"-O0"} } */ +/* { dg-skip-if "" { *-*-* } {"-O0" "-Og"} } */ long primitiveSemantics_00(long a, long b) { return a == 0 ? 0 : b; }