Message ID | 20230309125437.32662-1-lihui@loongson.cn |
---|---|
State | New |
Headers |
Return-Path: <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8C39C38582A1 for <patchwork@sourceware.org>; Thu, 9 Mar 2023 12:54:59 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id B0A443858D33 for <gdb-patches@sourceware.org>; Thu, 9 Mar 2023 12:54:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B0A443858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8CxidkT1wlkJWwKAA--.2252S3; Thu, 09 Mar 2023 20:54:44 +0800 (CST) Received: from localhost.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dx6r0S1wlkTKBQAA--.9210S2; Thu, 09 Mar 2023 20:54:42 +0800 (CST) From: Hui Li <lihui@loongson.cn> To: gdb-patches@sourceware.org Subject: [PATCH v2] gdb/testsuite: Add support for LoongArch in gdb.base/float.exp Date: Thu, 9 Mar 2023 20:54:37 +0800 Message-Id: <20230309125437.32662-1-lihui@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Dx6r0S1wlkTKBQAA--.9210S2 X-CM-SenderInfo: 5olk3xo6or00hjvr0hdfq/ X-Coremail-Antispam: 1Uk129KBjvdXoW7Wr4Utr4UCF4rKryDZFWDArb_yoWDJrb_CF 1DWFs7Jr4rAan7CFnFgw45Xw4kJa1xX34S9FZYgFyqk345uF1fKrW0ka17CF1jvasYkFWf KwsrXa43u3W5ZjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrn0 xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY j7kC6x804xWl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3w AFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK 6xIIjxv20xvE14v26r4j6ryUM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7 xvwVC2z280aVAFwI0_Cr1j6rxdM28EF7xvwVC2z280aVCY1x0267AKxVWxJr0_GcWle2I2 62IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4 CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvj eVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxV CFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r10 6r1rMI8E67AF67kF1VAFwI0_Jr0_JrylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxV WUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG 6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_Gr UvcSsGvfC2KfnxnUUI43ZEXa7IU1CPfJUUUUU== X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, 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: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
[v2] gdb/testsuite: Add support for LoongArch in gdb.base/float.exp
|
|
Commit Message
Hui Li
March 9, 2023, 12:54 p.m. UTC
The test results on LoongArch as follows:
Without this patch:
```
$ make check-gdb TESTS="gdb.base/float.exp"
=== gdb Summary ===
# of expected passes 2
# of unexpected failures 1
```
With this patch:
```
$ make check-gdb TESTS="gdb.base/float.exp"
=== gdb Summary ===
# of expected passes 3
```
Signed-off-by: Hui Li <lihui@loongson.cn>
---
gdb/testsuite/gdb.base/float.exp | 2 ++
1 file changed, 2 insertions(+)
Comments
On 3/9/23 07:54, Hui Li wrote: > The test results on LoongArch as follows: > > Without this patch: > > ``` > $ make check-gdb TESTS="gdb.base/float.exp" > === gdb Summary === > > # of expected passes 2 > # of unexpected failures 1 > > ``` > With this patch: > > ``` > $ make check-gdb TESTS="gdb.base/float.exp" > === gdb Summary === > > # of expected passes 3 > > ``` > > Signed-off-by: Hui Li <lihui@loongson.cn> > --- > gdb/testsuite/gdb.base/float.exp | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/gdb/testsuite/gdb.base/float.exp b/gdb/testsuite/gdb.base/float.exp > index 7f230cb6f61..5e9be538b73 100644 > --- a/gdb/testsuite/gdb.base/float.exp > +++ b/gdb/testsuite/gdb.base/float.exp > @@ -126,6 +126,8 @@ if {[is_aarch64_target]} { > pass "info float (without FPU)" > } > } > +} elseif {[istarget "loongarch*-*-*"]} { > + gdb_test "info float" "f.*fcc0.*fcsr.*" "info float" > } else { > gdb_test "info float" "No floating.point info available for this processor." "info float (unknown target)" > } This is ok: Approved-By: Simon Marchi <simon.marchi@efficios.com> Simon
On 3/9/23 20:54, Hui Li wrote: > The test results on LoongArch as follows: > > Without this patch: > > ``` > $ make check-gdb TESTS="gdb.base/float.exp" > === gdb Summary === > > # of expected passes 2 > # of unexpected failures 1 > > ``` > With this patch: > > ``` > $ make check-gdb TESTS="gdb.base/float.exp" > === gdb Summary === > > # of expected passes 3 > > ``` > > Signed-off-by: Hui Li <lihui@loongson.cn> > --- > gdb/testsuite/gdb.base/float.exp | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/gdb/testsuite/gdb.base/float.exp b/gdb/testsuite/gdb.base/float.exp > index 7f230cb6f61..5e9be538b73 100644 > --- a/gdb/testsuite/gdb.base/float.exp > +++ b/gdb/testsuite/gdb.base/float.exp > @@ -126,6 +126,8 @@ if {[is_aarch64_target]} { > pass "info float (without FPU)" > } > } > +} elseif {[istarget "loongarch*-*-*"]} { > + gdb_test "info float" "f.*fcc0.*fcsr.*" "info float" > } else { > gdb_test "info float" "No floating.point info available for this processor." "info float (unknown target)" > } Looks good to me, tested on LoongArch, pushed. Thanks, Tiezhu
diff --git a/gdb/testsuite/gdb.base/float.exp b/gdb/testsuite/gdb.base/float.exp index 7f230cb6f61..5e9be538b73 100644 --- a/gdb/testsuite/gdb.base/float.exp +++ b/gdb/testsuite/gdb.base/float.exp @@ -126,6 +126,8 @@ if {[is_aarch64_target]} { pass "info float (without FPU)" } } +} elseif {[istarget "loongarch*-*-*"]} { + gdb_test "info float" "f.*fcc0.*fcsr.*" "info float" } else { gdb_test "info float" "No floating.point info available for this processor." "info float (unknown target)" }