diff options
author | Hui Li <lihui@loongson.cn> | 2023-03-04 08:45:28 +0800 |
---|---|---|
committer | Tiezhu Yang <yangtiezhu@loongson.cn> | 2023-03-16 22:59:34 +0800 |
commit | 74975df62cf0c02cb8651b64ca5c36a131b307b3 (patch) | |
tree | c1ad6edbaebc45e2fec96688303ff44d26ed78f0 /gdb | |
parent | b7571e1e6fed2ee52143797e17fcca487e894b92 (diff) | |
download | binutils-74975df62cf0c02cb8651b64ca5c36a131b307b3.zip binutils-74975df62cf0c02cb8651b64ca5c36a131b307b3.tar.gz binutils-74975df62cf0c02cb8651b64ca5c36a131b307b3.tar.bz2 |
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>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/gdb.base/float.exp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/float.exp b/gdb/testsuite/gdb.base/float.exp index 7f230cb..5e9be53 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)" } |