From patchwork Fri Sep 1 10:20:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Christoph_M=C3=BCllner?= X-Patchwork-Id: 137377 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c792:0:b0:3f2:4152:657d with SMTP id b18csp784643vqu; Fri, 1 Sep 2023 03:21:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE/YOO0gpdDgyq41cI1sVVs7N2c/Jsc5gxMN1Fkhz1i7U7Jru5E/vcbetRbjFs930go1kRY X-Received: by 2002:a50:ed03:0:b0:525:4471:6b5d with SMTP id j3-20020a50ed03000000b0052544716b5dmr1622070eds.19.1693563667575; Fri, 01 Sep 2023 03:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693563667; cv=none; d=google.com; s=arc-20160816; b=T3GCK26P/bEwVTURkrHZoV4LDcKikXdpmdldLIXiMIyjKWYyJS8BKxSQpTJzvy4cFw MWKeDgFCo4o+i6MQXwgPqGqhpaBLGR0tN/Ylasvf1Lt95RrUGWSPkYEnJRKEIgYUwyWA KLmhm2uuLfows5QZI/3TgnundJ/Isec4a1+mn0oOgIK2EVAIX5A5vMl+G5vPP8BbCpDx lJKtvHpVeZr+cIMTvHHj6Np3T4Zn3FxlsbS4P+WLizWC9Rn10yR4X70fhsB4LXwH/7/1 6Qng2WPancF3ST1sF0pX7ZYJXZkUdDcgr7BXjZNOHP4RNfWNMPC5KvKwXZ5CbvM2Wcyc Hvog== 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:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :dmarc-filter:delivered-to; bh=KScpCCvqDrbnXScWV+INseGIaCxyD3uzny59FxLrFcU=; fh=rhzHQJhq9WV4qpo88d7UFjCUBpstN9AhlgFhCyDisF8=; b=tkafmN11zVqJiBniB8o5iqHQr4EUy0ll76u08Hc+jMnZl15D9KL3O6AYSNmtjQ5kJc 4AMFOyOzZSF9AS1uvlxv+1QzSVEpZ/V0K4KaX2u82MWcKIet+x3yrDUMRUvF+MQq9z+y vktr9ySYOK40KH+lP45h0hFQRTmlBvnrl45YpJOI82GdkZ6KTVnXbTXspWGODqV3dGoI ETh3E29UO1xdH7oQIvISqD43d/sbOmMMXCAQN75kY+AisQyy9pkUb3FhjO31mHO9adXp yhvddzu1V5qLixHvqa1q5XoG+J0MHuDr4By3iIW5ncht5AD6zj9gHWO8uVe/GFAeu1Fc /dAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@vrull.eu header.s=google header.b=NYBtMsLr; 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 dy12-20020a05640231ec00b005256455bc64si2528742edb.511.2023.09.01.03.21.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Sep 2023 03:21:07 -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=fail header.i=@vrull.eu header.s=google header.b=NYBtMsLr; 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 8ABBC3855594 for ; Fri, 1 Sep 2023 10:20:41 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by sourceware.org (Postfix) with ESMTPS id 5D3B638582B7 for ; Fri, 1 Sep 2023 10:20:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5D3B638582B7 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=vrull.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=vrull.eu Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-9a5dff9d2d9so214728766b.3 for ; Fri, 01 Sep 2023 03:20:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; t=1693563609; x=1694168409; 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=KScpCCvqDrbnXScWV+INseGIaCxyD3uzny59FxLrFcU=; b=NYBtMsLrmXa59Tj1wYF88w7ZQpUZmiCf7Tiv7mGZCFCNr+ptUKGcu2w6WCRCWsfG5E Xcir/vA5swMJPG9+3onVSXpKz07GQPUYV5vJvWgeSH90D+IwuKQOqkD4Ifyry5nF/mY4 euhdqsc4WqJZOmcfwPIBf5feCpAZ+N7wtYqMdxZ6I4IJlfHhbSqcyokWc8FSVkD/SurD 7SfdPCj+h3cGnYL7Kp94fdkR2dq/SBj5yU8YE+mvc05+s2pv8xs3Gqjgu8hVVhuDab+2 O3jej3UZNsOoX+YnnAmA9fGtGLRaCjF0FsUkMHnBDtFnXDx4bk6kXFqHD2E1VXWlx8VQ TDCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693563609; x=1694168409; 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=KScpCCvqDrbnXScWV+INseGIaCxyD3uzny59FxLrFcU=; b=LLdshwh1JBq4jHq/DkvFpgWnC3odHg3BGAZpTnctrrDVi2bdtUnrQDaTaTJcaOBD22 zLXKfHVDd7eYOD5W2v7ctL6ybO9bBEkEJ8t3dpO7PBNG+/EPKhtp2ck4ZdXru057pE1G ouRVouqjHbKb3mNBSxhiSOCr3GuhuBV9AyUcuWPELACZdAiMZrL2HqKGtN36c+iVcZ8p /xAx7H74m+yVyIaOAjY7jA/Szw6wGaEj5P6+9cH7ynDFu46or4Oo3Y8d6YbKOBX/ULQy 8v2AMFoz+t4bPqhxpXVW4vOR//Cd3zPrgXQT7KSIMQbH61XCsJ6qkFGf+e7kIL4+Aq1Y XYiw== X-Gm-Message-State: AOJu0YyPbsliclJjr0uAGDekZ/DwnNjTlmZlP4dkjsSL/QQ6BirpDEMC tgV8hPYqkzBJZQ25Pm+assH3nUO5zZnX1qAtvYg= X-Received: by 2002:a17:906:3a46:b0:9a2:5bf:8b18 with SMTP id a6-20020a1709063a4600b009a205bf8b18mr1355703ejf.14.1693563609528; Fri, 01 Sep 2023 03:20:09 -0700 (PDT) Received: from beast.fritz.box (62-178-148-172.cable.dynamic.surfer.at. [62.178.148.172]) by smtp.gmail.com with ESMTPSA id x10-20020a1709064a8a00b0099b8234a9fesm1777731eju.1.2023.09.01.03.20.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Sep 2023 03:20:08 -0700 (PDT) From: Christoph Muellner To: gcc-patches@gcc.gnu.org, Kito Cheng , Jim Wilson , Palmer Dabbelt , Andrew Waterman , Philipp Tomsich , Jeff Law Subject: [PATCH] riscv: xtheadcondmov: Don't run tests with -Oz Date: Fri, 1 Sep 2023 12:20:06 +0200 Message-ID: <20230901102006.511665-1-christoph.muellner@vrull.eu> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_MANYTO, KAM_SHORT, LIKELY_SPAM_BODY, 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.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 Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1775830216383839696 X-GMAIL-MSGID: 1775830216383839696 From: Christoph Müllner Recently, these xtheadcondmov tests regressed with -Oz: * FAIL: gcc.target/riscv/xtheadcondmov-mveqz-imm-eqz.c * FAIL: gcc.target/riscv/xtheadcondmov-mveqz-imm-not.c * FAIL: gcc.target/riscv/xtheadcondmov-mvnez-imm-cond.c * FAIL: gcc.target/riscv/xtheadcondmov-mvnez-imm-nez.c As -Oz stands for "Optimize aggressively for size rather than speed.", we need to inspect the generated code, which looks like this: -Oz 0000000000000000 : 0: e199 bnez a1,6 <.L2> 2: 40100513 li a0,1025 0000000000000006 <.L2>: 6: 8082 ret -O2: 0000000000000000 : 0: 40100793 li a5,1025 4: 40b7950b th.mveqz a0,a5,a1 8: 8082 ret As the generated code with -Oz consumes less size, there is nothing wrong in the code generation. Instead, let's not run the xtheadcondmov tests with -Oz. Signed-off-by: Christoph Müllner gcc/testsuite/ChangeLog: * gcc.target/riscv/xtheadcondmov-mveqz-imm-eqz.c: Disable for -Oz. * gcc.target/riscv/xtheadcondmov-mveqz-imm-not.c: Likewise. * gcc.target/riscv/xtheadcondmov-mveqz-reg-eqz.c: Likewise. * gcc.target/riscv/xtheadcondmov-mveqz-reg-not.c: Likewise. * gcc.target/riscv/xtheadcondmov-mvnez-imm-cond.c: Likewise. * gcc.target/riscv/xtheadcondmov-mvnez-imm-nez.c: Likewise. * gcc.target/riscv/xtheadcondmov-mvnez-reg-cond.c: Likewise. * gcc.target/riscv/xtheadcondmov-mvnez-reg-nez.c: Likewise. --- gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-imm-eqz.c | 2 +- gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-imm-not.c | 2 +- gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-reg-eqz.c | 2 +- gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-reg-not.c | 2 +- gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-imm-cond.c | 2 +- gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-imm-nez.c | 2 +- gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-reg-cond.c | 2 +- gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-reg-nez.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-imm-eqz.c b/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-imm-eqz.c index 913ae43f21b..9cc9ec1d0c7 100644 --- a/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-imm-eqz.c +++ b/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-imm-eqz.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-march=rv32gc_xtheadcondmov" { target { rv32 } } } */ /* { dg-options "-march=rv64gc_xtheadcondmov" { target { rv64 } } } */ -/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" } } */ +/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" "-Oz" } } */ int not_int_int (int x, int cond) diff --git a/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-imm-not.c b/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-imm-not.c index 1bc8b838233..491343370b7 100644 --- a/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-imm-not.c +++ b/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-imm-not.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-march=rv32gc_xtheadcondmov" { target { rv32 } } } */ /* { dg-options "-march=rv64gc_xtheadcondmov" { target { rv64 } } } */ -/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" } } */ +/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" "-Oz" } } */ int not_int_int (int x, int cond) diff --git a/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-reg-eqz.c b/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-reg-eqz.c index 8ef5869a89b..d7227249e84 100644 --- a/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-reg-eqz.c +++ b/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-reg-eqz.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-march=rv32gc_xtheadcondmov" { target { rv32 } } } */ /* { dg-options "-march=rv64gc_xtheadcondmov" { target { rv64 } } } */ -/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" } } */ +/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" "-Oz" } } */ int not_int_int (int x, int cond, int v) diff --git a/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-reg-not.c b/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-reg-not.c index f9568bee27f..6cc98e36e71 100644 --- a/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-reg-not.c +++ b/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mveqz-reg-not.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-march=rv32gc_xtheadcondmov" { target { rv32 } } } */ /* { dg-options "-march=rv64gc_xtheadcondmov" { target { rv64 } } } */ -/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" } } */ +/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" "-Oz" } } */ int not_int_int (int x, int cond, int v) diff --git a/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-imm-cond.c b/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-imm-cond.c index 8feddbeb79d..7cce2c71d18 100644 --- a/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-imm-cond.c +++ b/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-imm-cond.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-march=rv32gc_xtheadcondmov" { target { rv32 } } } */ /* { dg-options "-march=rv64gc_xtheadcondmov" { target { rv64 } } } */ -/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" } } */ +/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" "-Oz" } } */ int not_int_int (int x, int cond) diff --git a/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-imm-nez.c b/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-imm-nez.c index 7c08e20c25d..51b90bbc9a9 100644 --- a/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-imm-nez.c +++ b/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-imm-nez.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-march=rv32gc_xtheadcondmov" { target { rv32 } } } */ /* { dg-options "-march=rv64gc_xtheadcondmov" { target { rv64 } } } */ -/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" } } */ +/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" "-Oz" } } */ int not_int_int (int x, int cond) diff --git a/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-reg-cond.c b/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-reg-cond.c index c1619509af9..d9bde61cd2b 100644 --- a/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-reg-cond.c +++ b/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-reg-cond.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-march=rv32gc_xtheadcondmov" { target { rv32 } } } */ /* { dg-options "-march=rv64gc_xtheadcondmov" { target { rv64 } } } */ -/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" } } */ +/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" "-Oz" } } */ int not_int_int (int x, int cond, int v) diff --git a/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-reg-nez.c b/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-reg-nez.c index ff95a57927a..c12501a752c 100644 --- a/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-reg-nez.c +++ b/gcc/testsuite/gcc.target/riscv/xtheadcondmov-mvnez-reg-nez.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-march=rv32gc_xtheadcondmov" { target { rv32 } } } */ /* { dg-options "-march=rv64gc_xtheadcondmov" { target { rv64 } } } */ -/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" } } */ +/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" "-Oz" } } */ int not_int_int (int x, int cond, int v)