* gdb.base/float.exp: Add test for loongarch
Commit Message
The test results on loongarch platform are 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
>>>>> "Hui" == Hui Li <lihui@loongson.cn> writes:
Hui> The test results on loongarch platform are as follows:
Hui> Without this patch:
Looks good to me, thank you.
Reviewed-By: Tom Tromey <tom@tromey.com>
Tom
@@ -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)"
}