aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog10
-rw-r--r--gdb/testsuite/gdb.arch/i386-float.S4
-rw-r--r--gdb/testsuite/gdb.arch/i386-float.exp20
3 files changed, 30 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 8316d32..d959e7b 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,13 @@
+2015-12-09 Ruslan Kabatsayev <b7.10110111@gmail.com>
+ Pedro Alves <pedro@redhat.com>
+
+ PR gdb/18702
+ Add checking of floatformats setup on x86_64 hosts.
+ * gdb.arch/i386-float.S (main): Load bigval and smallval.
+ (smallval, bigval): New labels/constants.
+ * gdb.arch/i386-float.exp: Use with_test_prefix and test "info
+ float" after loading bigval and smallval.
+
2015-12-07 Pierre-Marie de Rodat <derodat@adacore.com>
* gdb.ada/fun_overload_menu.exp: New testcase.
diff --git a/gdb/testsuite/gdb.arch/i386-float.S b/gdb/testsuite/gdb.arch/i386-float.S
index 76126c4..f5de8c2 100644
--- a/gdb/testsuite/gdb.arch/i386-float.S
+++ b/gdb/testsuite/gdb.arch/i386-float.S
@@ -29,6 +29,10 @@
SYMBOL(main):
fninit
fldt val
+ fldt bigval
+ fldt smallval
ret
.data
val: .byte 0x00,0x00,0x45,0x07,0x11,0x19,0x22,0xe9,0xfe,0xbf
+ smallval: .byte 0xe9,0xd0,0xd7,0x65,0x81,0xb7,0x43,0xc6,0x5c,0x6a
+ bigval: .byte 0x6a,0x45,0x90,0xdc,0x03,0xc1,0xf8,0xc6,0xe5,0x03
diff --git a/gdb/testsuite/gdb.arch/i386-float.exp b/gdb/testsuite/gdb.arch/i386-float.exp
index e638ceb..e3ae3ba 100644
--- a/gdb/testsuite/gdb.arch/i386-float.exp
+++ b/gdb/testsuite/gdb.arch/i386-float.exp
@@ -37,7 +37,19 @@ if ![runto_main] then {
return 0
}
-gdb_test "stepi" ".*fldt.*" "first stepi"
-gdb_test "info float" ".*R7: Empty 0x00000000000000000000\r\n.*"
-gdb_test "stepi" ".*ret.*" "second stepi"
-gdb_test "info float" ".*=>R7: Valid 0xbffee922191107450000 .*"
+with_test_prefix "zero" {
+ gdb_test "stepi" ".*fldt.*"
+ gdb_test "info float" "R7: Empty 0x00000000000000000000\r\n.*"
+}
+with_test_prefix "val" {
+ gdb_test "stepi" ".*fldt.*"
+ gdb_test "info float" "=>R7: Valid 0xbffee922191107450000 .*"
+}
+with_test_prefix "smallval" {
+ gdb_test "stepi" ".*fldt.*"
+ gdb_test "info float" "=>R6: Valid 0x03e5c6f8c103dc90456a \\+3.500000000000000007e-4632\r\n.*"
+}
+with_test_prefix "bigval" {
+ gdb_test "stepi" ".*ret.*"
+ gdb_test "info float" "=>R5: Valid 0x6a5cc643b78165d7d0e9 \\+7.250000000000000005e\\+3264\r\n.*"
+}