[binutils-gdb] gdb/testsuite: Add support for LoongArch in gdb.base/float.exp
Tiezhu Yang
yangtiezhu@sourceware.org
Thu Mar 16 15:00:37 GMT 2023
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=74975df62cf0c02cb8651b64ca5c36a131b307b3
commit 74975df62cf0c02cb8651b64ca5c36a131b307b3
Author: Hui Li <lihui@loongson.cn>
Date: Sat Mar 4 08:45:28 2023 +0800
gdb/testsuite: Add support for LoongArch in gdb.base/float.exp
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>
Reviewed-By: Tom Tromey <tom@tromey.com>
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Diff:
---
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)"
}
More information about the Gdb-cvs
mailing list