From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by sourceware.org (Postfix) with ESMTPS id 0ECB43858407 for ; Tue, 8 Feb 2022 02:00:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0ECB43858407 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pj1-x1032.google.com with SMTP id t4-20020a17090a510400b001b8c4a6cd5dso1134547pjh.5 for ; Mon, 07 Feb 2022 18:00:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=f0BNnSNC7XQ7InPzbjnyPHsxJ7CVi3oS3IHeHk3ATlQ=; b=hFbNKQu1LOK1MU7OmnbLHHctS2e54MTSvFn1ohjeLhb+ki0u0lxhLUjfhsg687JnG0 4t6AwCQCVq6Al7rNF4DNLxcNF50MuuBiICFNgC0FDU9UwuThGwI8HA41LCzg3oBf0YIZ HPbRP+/vVR78ba7ziVf9MjyjnUVe70rO49r6HYhQ74UXW+Lf8D7LSLDimQSVABLTQdym RM7K9fq+TZQUOaZGDXzqGnvjnYKme502Xkmnx8WdRw/1Kl2u74MEuBgFrjiaZGjs7Ecs ipYbNx7uuxjdBaJGf6sq78P6+SGgn+BC9Dp+0aICArrhVsb1Cv1asRCBLoAmmaJrVccx bEjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=f0BNnSNC7XQ7InPzbjnyPHsxJ7CVi3oS3IHeHk3ATlQ=; b=wzxqz96IsYTBRUmHfJ+bg5WkwBPu6Chbqh6NElyF4u9yJ8m9wDsU/Dw3TeW12mGRgT QSmUMz5rVcvrfWOudbm6bRgV/+jRDOMoCDvU7A8RhPhs4WoiqyTtXoHrxhZOGEqEweVS nL9nja23P8Y0kL70tfQQtvQqnpBsNbufcQ2NtX8vxOBXbXV9B8BRGMg6OymJOVhqrlBr TSlUaNfep3VHxJQ6+CIPqFeiMGlkaiyzl45pqCTYP6AF6K+kARU+2OtjxQMN3+YSyKkM D7BLNY43bQ8PJ9fhBzPc/T1Mb/9PTliWPzotdEaORk/TDeVrF67kkG4FQV8xKUw1j1YQ VIZQ== X-Gm-Message-State: AOAM531m5BodT6wpbOWixt9dbIKSJleIlzKWKIHCFcDWbJ85HM/gmSv7 OnUwPqysau13GjVDnjSYwnEp7YoHcJ4nrQ== X-Google-Smtp-Source: ABdhPJxmO6oOuRwhUckimzQy3MavZBxNK3C+HRve5gfm+nWKBk9fwMKTSyYAYB4CRxmXyCx8h+iSrg== X-Received: by 2002:a17:90b:98:: with SMTP id bb24mr1839730pjb.175.1644285651713; Mon, 07 Feb 2022 18:00:51 -0800 (PST) Received: from localhost ([12.3.194.138]) by smtp.gmail.com with ESMTPSA id o21sm13903962pfu.100.2022.02.07.18.00.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 18:00:51 -0800 (PST) Date: Mon, 07 Feb 2022 18:00:51 -0800 (PST) X-Google-Original-Date: Mon, 07 Feb 2022 15:35:21 PST (-0800) Subject: Re: [PATCH 3/5] RISC-V: Use different registers for testing In-Reply-To: CC: research_trasio@irq.a4lg.com, binutils@sourceware.org From: Palmer Dabbelt To: binutils@sourceware.org Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2022 02:00:55 -0000 On Tue, 01 Feb 2022 05:49:04 PST (-0800), binutils@sourceware.org wrote: > This commit ensures that different registers are used when testing. > > gas/ChangeLog: > > * testsuite/gas/riscv/zfinx.s: Use different registers. > * testsuite/gas/riscv/zfinx.d: Likewise. > * testsuite/gas/riscv/zdinx.s: Use different registers. > * testsuite/gas/riscv/zdinx.d: Likewise. > * testsuite/gas/riscv/zqinx.s: Use different registers. > * testsuite/gas/riscv/zqinx.d: Likewise. > --- > gas/testsuite/gas/riscv/zdinx.d | 6 +++--- > gas/testsuite/gas/riscv/zdinx.s | 6 +++--- > gas/testsuite/gas/riscv/zfinx.d | 6 +++--- > gas/testsuite/gas/riscv/zfinx.s | 6 +++--- > gas/testsuite/gas/riscv/zqinx.d | 6 +++--- > gas/testsuite/gas/riscv/zqinx.s | 6 +++--- > 6 files changed, 18 insertions(+), 18 deletions(-) > > diff --git a/gas/testsuite/gas/riscv/zdinx.d b/gas/testsuite/gas/riscv/zdinx.d > index 3e4c1a73388..cb465bfbef4 100644 > --- a/gas/testsuite/gas/riscv/zdinx.d > +++ b/gas/testsuite/gas/riscv/zdinx.d > @@ -11,7 +11,7 @@ Disassembly of section .text: > [ ]+[0-9a-f]+:[ ]+0ac5f553[ ]+fsub.d[ ]+a0,a1,a2 > [ ]+[0-9a-f]+:[ ]+12c5f553[ ]+fmul.d[ ]+a0,a1,a2 > [ ]+[0-9a-f]+:[ ]+1ac5f553[ ]+fdiv.d[ ]+a0,a1,a2 > -[ ]+[0-9a-f]+:[ ]+5a057553[ ]+fsqrt.d[ ]+a0,a0 > +[ ]+[0-9a-f]+:[ ]+5a05f553[ ]+fsqrt.d[ ]+a0,a1 > [ ]+[0-9a-f]+:[ ]+2ac58553[ ]+fmin.d[ ]+a0,a1,a2 > [ ]+[0-9a-f]+:[ ]+2ac59553[ ]+fmax.d[ ]+a0,a1,a2 > [ ]+[0-9a-f]+:[ ]+6ac5f543[ ]+fmadd.d[ ]+a0,a1,a2,a3 > @@ -36,6 +36,6 @@ Disassembly of section .text: > [ ]+[0-9a-f]+:[ ]+a2c58553[ ]+fle.d[ ]+a0,a1,a2 > [ ]+[0-9a-f]+:[ ]+a2b61553[ ]+flt.d[ ]+a0,a2,a1 > [ ]+[0-9a-f]+:[ ]+a2b60553[ ]+fle.d[ ]+a0,a2,a1 > -[ ]+[0-9a-f]+:[ ]+22a51553[ ]+fneg.d[ ]+a0,a0 > -[ ]+[0-9a-f]+:[ ]+22a52553[ ]+fabs.d[ ]+a0,a0 > +[ ]+[0-9a-f]+:[ ]+22b59553[ ]+fneg.d[ ]+a0,a1 > +[ ]+[0-9a-f]+:[ ]+22b5a553[ ]+fabs.d[ ]+a0,a1 > [ ]+[0-9a-f]+:[ ]+e2059553[ ]+fclass.d[ ]+a0,a1 > diff --git a/gas/testsuite/gas/riscv/zdinx.s b/gas/testsuite/gas/riscv/zdinx.s > index d8d13c88046..f44358111de 100644 > --- a/gas/testsuite/gas/riscv/zdinx.s > +++ b/gas/testsuite/gas/riscv/zdinx.s > @@ -3,7 +3,7 @@ target: > fsub.d a0, a1, a2 > fmul.d a0, a1, a2 > fdiv.d a0, a1, a2 > - fsqrt.d a0, a0 > + fsqrt.d a0, a1 > fmin.d a0, a1, a2 > fmax.d a0, a1, a2 > fmadd.d a0, a1, a2, a3 > @@ -28,6 +28,6 @@ target: > fle.d a0, a1, a2 > fgt.d a0, a1, a2 > fge.d a0, a1, a2 > - fneg.d a0, a0 > - fabs.d a0, a0 > + fneg.d a0, a1 > + fabs.d a0, a1 > fclass.d a0, a1 > diff --git a/gas/testsuite/gas/riscv/zfinx.d b/gas/testsuite/gas/riscv/zfinx.d > index d5499aa9131..6465c08ea9a 100644 > --- a/gas/testsuite/gas/riscv/zfinx.d > +++ b/gas/testsuite/gas/riscv/zfinx.d > @@ -11,7 +11,7 @@ Disassembly of section .text: > [ ]+[0-9a-f]+:[ ]+08c5f553[ ]+fsub.s[ ]+a0,a1,a2 > [ ]+[0-9a-f]+:[ ]+10c5f553[ ]+fmul.s[ ]+a0,a1,a2 > [ ]+[0-9a-f]+:[ ]+18c5f553[ ]+fdiv.s[ ]+a0,a1,a2 > -[ ]+[0-9a-f]+:[ ]+58057553[ ]+fsqrt.s[ ]+a0,a0 > +[ ]+[0-9a-f]+:[ ]+5805f553[ ]+fsqrt.s[ ]+a0,a1 > [ ]+[0-9a-f]+:[ ]+28c58553[ ]+fmin.s[ ]+a0,a1,a2 > [ ]+[0-9a-f]+:[ ]+28c59553[ ]+fmax.s[ ]+a0,a1,a2 > [ ]+[0-9a-f]+:[ ]+68c5f543[ ]+fmadd.s[ ]+a0,a1,a2,a3 > @@ -34,6 +34,6 @@ Disassembly of section .text: > [ ]+[0-9a-f]+:[ ]+a0c58553[ ]+fle.s[ ]+a0,a1,a2 > [ ]+[0-9a-f]+:[ ]+a0b61553[ ]+flt.s[ ]+a0,a2,a1 > [ ]+[0-9a-f]+:[ ]+a0b60553[ ]+fle.s[ ]+a0,a2,a1 > -[ ]+[0-9a-f]+:[ ]+20a51553[ ]+fneg.s[ ]+a0,a0 > -[ ]+[0-9a-f]+:[ ]+20a52553[ ]+fabs.s[ ]+a0,a0 > +[ ]+[0-9a-f]+:[ ]+20b59553[ ]+fneg.s[ ]+a0,a1 > +[ ]+[0-9a-f]+:[ ]+20b5a553[ ]+fabs.s[ ]+a0,a1 > [ ]+[0-9a-f]+:[ ]+e0059553[ ]+fclass.s[ ]+a0,a1 > diff --git a/gas/testsuite/gas/riscv/zfinx.s b/gas/testsuite/gas/riscv/zfinx.s > index 37a2aa75992..41ae0e38ad4 100644 > --- a/gas/testsuite/gas/riscv/zfinx.s > +++ b/gas/testsuite/gas/riscv/zfinx.s > @@ -3,7 +3,7 @@ target: > fsub.s a0, a1, a2 > fmul.s a0, a1, a2 > fdiv.s a0, a1, a2 > - fsqrt.s a0, a0 > + fsqrt.s a0, a1 > fmin.s a0, a1, a2 > fmax.s a0, a1, a2 > fmadd.s a0, a1, a2, a3 > @@ -26,6 +26,6 @@ target: > fle.s a0, a1, a2 > fgt.s a0, a1, a2 > fge.s a0, a1, a2 > - fneg.s a0, a0 > - fabs.s a0, a0 > + fneg.s a0, a1 > + fabs.s a0, a1 > fclass.s a0, a1 > diff --git a/gas/testsuite/gas/riscv/zqinx.d b/gas/testsuite/gas/riscv/zqinx.d > index 5c2202d21b6..e8d2b7ba4c5 100644 > --- a/gas/testsuite/gas/riscv/zqinx.d > +++ b/gas/testsuite/gas/riscv/zqinx.d > @@ -11,7 +11,7 @@ Disassembly of section .text: > [ ]+[0-9a-f]+:[ ]+0ec5f553[ ]+fsub.q[ ]+a0,a1,a2 > [ ]+[0-9a-f]+:[ ]+16c5f553[ ]+fmul.q[ ]+a0,a1,a2 > [ ]+[0-9a-f]+:[ ]+1ec5f553[ ]+fdiv.q[ ]+a0,a1,a2 > -[ ]+[0-9a-f]+:[ ]+5e057553[ ]+fsqrt.q[ ]+a0,a0 > +[ ]+[0-9a-f]+:[ ]+5e05f553[ ]+fsqrt.q[ ]+a0,a1 > [ ]+[0-9a-f]+:[ ]+2ec58553[ ]+fmin.q[ ]+a0,a1,a2 > [ ]+[0-9a-f]+:[ ]+2ec59553[ ]+fmax.q[ ]+a0,a1,a2 > [ ]+[0-9a-f]+:[ ]+6ec5f543[ ]+fmadd.q[ ]+a0,a1,a2,a3 > @@ -38,6 +38,6 @@ Disassembly of section .text: > [ ]+[0-9a-f]+:[ ]+a6c58553[ ]+fle.q[ ]+a0,a1,a2 > [ ]+[0-9a-f]+:[ ]+a6b61553[ ]+flt.q[ ]+a0,a2,a1 > [ ]+[0-9a-f]+:[ ]+a6b60553[ ]+fle.q[ ]+a0,a2,a1 > -[ ]+[0-9a-f]+:[ ]+26a51553[ ]+fneg.q[ ]+a0,a0 > -[ ]+[0-9a-f]+:[ ]+26a52553[ ]+fabs.q[ ]+a0,a0 > +[ ]+[0-9a-f]+:[ ]+26b59553[ ]+fneg.q[ ]+a0,a1 > +[ ]+[0-9a-f]+:[ ]+26b5a553[ ]+fabs.q[ ]+a0,a1 > [ ]+[0-9a-f]+:[ ]+e6059553[ ]+fclass.q[ ]+a0,a1 > diff --git a/gas/testsuite/gas/riscv/zqinx.s b/gas/testsuite/gas/riscv/zqinx.s > index 4b83552aced..ecfa509b98c 100644 > --- a/gas/testsuite/gas/riscv/zqinx.s > +++ b/gas/testsuite/gas/riscv/zqinx.s > @@ -3,7 +3,7 @@ target: > fsub.q a0, a1, a2 > fmul.q a0, a1, a2 > fdiv.q a0, a1, a2 > - fsqrt.q a0, a0 > + fsqrt.q a0, a1 > fmin.q a0, a1, a2 > fmax.q a0, a1, a2 > fmadd.q a0, a1, a2, a3 > @@ -30,6 +30,6 @@ target: > fle.q a0, a1, a2 > fgt.q a0, a1, a2 > fge.q a0, a1, a2 > - fneg.q a0, a0 > - fabs.q a0, a0 > + fneg.q a0, a1 > + fabs.q a0, a1 > fclass.q a0, a1 Reviewed-by: Palmer Dabbelt