summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.reverse
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-05-22 03:55:58 -0600
committerTom Tromey <tom@tromey.com>2017-06-12 15:04:56 -0600
commit30a254669b16b86166fed1f9a4c4f9cc55a07fdc (patch)
treeaea05de61cdb0d22c97c6ae0487f992802a1feb3 /gdb/testsuite/gdb.reverse
parentb3464d0316235899d9facf81896d7a427d5cd6d0 (diff)
downloadbinutils-gdb-30a254669b16b86166fed1f9a4c4f9cc55a07fdc.tar.gz
Don't always zero pad in print_*_chars
This changes print_octal_chars and print_decimal_chars to never zero pad, and changes print_binary_chars and print_hex_chars to only optionally zero-pad, based on a flag. ChangeLog 2017-06-12 Tom Tromey <tom@tromey.com> PR exp/16225: * valprint.h (print_binary_chars, print_hex_chars): Update. * valprint.c (val_print_type_code_int): Update. (print_binary_chars): Add "zero_pad" argument. (emit_octal_digit): New function. (print_octal_chars): Don't zero-pad. (print_decimal_chars): Likewise. (print_hex_chars): Add "zero_pad" argument. * sh64-tdep.c (sh64_do_fp_register): Update. * regcache.c (regcache::dump): Update. * printcmd.c (print_scalar_formatted): Update. * infcmd.c (default_print_one_register_info): Update. 2017-06-12 Tom Tromey <tom@tromey.com> PR exp/16225: * gdb.reverse/i386-sse-reverse.exp: Update tests. * gdb.arch/vsx-regs.exp: Update tests. * gdb.arch/s390-vregs.exp (hex128): New proc. Update test. * gdb.arch/altivec-regs.exp: Update tests.
Diffstat (limited to 'gdb/testsuite/gdb.reverse')
-rw-r--r--gdb/testsuite/gdb.reverse/i386-sse-reverse.exp94
1 files changed, 47 insertions, 47 deletions
diff --git a/gdb/testsuite/gdb.reverse/i386-sse-reverse.exp b/gdb/testsuite/gdb.reverse/i386-sse-reverse.exp
index 1d9cd195bcf..6f36476d0e8 100644
--- a/gdb/testsuite/gdb.reverse/i386-sse-reverse.exp
+++ b/gdb/testsuite/gdb.reverse/i386-sse-reverse.exp
@@ -200,7 +200,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "orpd.*" "reverse-step to orpd"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0000000000000000fff80000ffc00000.*" \
+ "xmm0 .*uint128 = 0xfff80000ffc00000.*" \
"verify xmm0 after reverse orps"
gdb_test "info register xmm1" \
@@ -214,7 +214,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "mulss.*" "reverse-step to mulss"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0000000000000000fff80000ffc00000.*" \
+ "xmm0 .*uint128 = 0xfff80000ffc00000.*" \
"verify xmm0 after reverse orpd"
gdb_test "info register xmm1" \
@@ -228,7 +228,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "mulsd.*" "reverse-step to mulsd"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0000000000000000fff80000ffc00000.*" \
+ "xmm0 .*uint128 = 0xfff80000ffc00000.*" \
"verify xmm0 after reverse mulss"
gdb_test "info register xmm1" \
@@ -242,7 +242,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "mulps.*" "reverse-step to mulps"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0000000000000000fff80000ffc00000.*" \
+ "xmm0 .*uint128 = 0xfff80000ffc00000.*" \
"verify xmm0 after reverse mulsd"
gdb_test "info register xmm1" \
@@ -256,7 +256,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "mulpd.*" "reverse-step to mulpd"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0000000000000000fff80000ffc00000.*" \
+ "xmm0 .*uint128 = 0xfff80000ffc00000.*" \
"verify xmm0 after reverse mulps"
gdb_test "info register xmm1" \
@@ -270,7 +270,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "divss.*" "reverse-step to divss"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0000000000000000fff80000ffc00000.*" \
+ "xmm0 .*uint128 = 0xfff80000ffc00000.*" \
"verify xmm0 after reverse mulpd"
gdb_test "info register xmm1" \
@@ -284,7 +284,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "divsd.*" "reverse-step to divsd"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x00000000000000008000000080000000.*" \
+ "xmm0 .*uint128 = 0x8000000080000000.*" \
"verify xmm0 after reverse divss"
gdb_test "info register xmm1" \
@@ -298,11 +298,11 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "divps.*" "reverse-step to divps"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x00000000000000008000000080000000.*" \
+ "xmm0 .*uint128 = 0x8000000080000000.*" \
"verify xmm0 after reverse divsd"
gdb_test "info register xmm1" \
- "xmm1 .*uint128 = 0x00000000000000000000000080000000.*" \
+ "xmm1 .*uint128 = 0x80000000.*" \
"verify xmm1 after reverse divsd"
gdb_test "info register xmm2" \
@@ -312,11 +312,11 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "divpd.*" "reverse-step to divpd"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x00000000000000008000000080000000.*" \
+ "xmm0 .*uint128 = 0x8000000080000000.*" \
"verify xmm0 after reverse divps"
gdb_test "info register xmm1" \
- "xmm1 .*uint128 = 0x00000000000000000000000080000000.*" \
+ "xmm1 .*uint128 = 0x80000000.*" \
"verify xmm1 after reverse divps"
gdb_test "info register xmm2" \
@@ -326,7 +326,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "cvtpd2ps.*" "reverse-step to cvtpd2ps"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x00000000000000008000000080000000.*" \
+ "xmm0 .*uint128 = 0x8000000080000000.*" \
"verify xmm0 after reverse divpd"
gdb_test "info register xmm1" \
@@ -340,7 +340,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "cvtpd2dq.*" "reverse-step to cvtpd2dq"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a090807060504ffffffff.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a090807060504ffffffff.*" \
"verify xmm0 after reverse cvtpd2ps"
gdb_test "info register xmm1" \
@@ -354,11 +354,11 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "cvtdq2ps.*" "reverse-step to cvtdq2ps"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a090807060504ffffffff.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a090807060504ffffffff.*" \
"verify xmm0 after reverse cvtpd2dq"
gdb_test "info register xmm1" \
- "xmm1 .*uint128 = 0x0000000000000000ffffffffffffffff.*" \
+ "xmm1 .*uint128 = 0xffffffffffffffff.*" \
"verify xmm1 after reverse cvtpd2dq"
gdb_test "info register xmm2" \
@@ -368,11 +368,11 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "cvtdq2pd.*" "reverse-step to cvtdq2pd"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a090807060504ffffffff.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a090807060504ffffffff.*" \
"verify xmm0 after reverse cvtdq2ps"
gdb_test "info register xmm1" \
- "xmm1 .*uint128 = 0x0000000000000000ffffffffffffffff.*" \
+ "xmm1 .*uint128 = 0xffffffffffffffff.*" \
"verify xmm1 after reverse cvtdq2ps"
gdb_test "info register xmm2" \
@@ -382,11 +382,11 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "comiss.*" "reverse-step to comiss"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a090807060504ffffffff.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a090807060504ffffffff.*" \
"verify xmm0 after reverse cvtdq2pd"
gdb_test "info register xmm1" \
- "xmm1 .*uint128 = 0x0000000000000000ffffffffffffffff.*" \
+ "xmm1 .*uint128 = 0xffffffffffffffff.*" \
"verify xmm1 after reverse cvtdq2pd"
gdb_test "info register xmm2" \
@@ -396,11 +396,11 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "comisd.*" "reverse-step to comisd"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a090807060504ffffffff.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a090807060504ffffffff.*" \
"verify xmm0 after reverse comiss"
gdb_test "info register xmm1" \
- "xmm1 .*uint128 = 0x0000000000000000ffffffffffffffff.*" \
+ "xmm1 .*uint128 = 0xffffffffffffffff.*" \
"verify xmm1 after reverse comiss"
gdb_test "info register xmm2" \
@@ -410,11 +410,11 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "cmpss.*" "reverse-step to cmpss"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09080706050423222120.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09080706050423222120.*" \
"verify xmm0 after reverse comisd"
gdb_test "info register xmm1" \
- "xmm1 .*uint128 = 0x0000000000000000ffffffffffffffff.*" \
+ "xmm1 .*uint128 = 0xffffffffffffffff.*" \
"verify xmm1 after reverse comisd"
gdb_test "info register xmm2" \
@@ -424,11 +424,11 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "cmpsd.*" "reverse-step to cmpsd"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09080706050423222120.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09080706050423222120.*" \
"verify xmm0 after reverse cmpss"
gdb_test "info register xmm1" \
- "xmm1 .*uint128 = 0x00000000000000000000000000000000.*" \
+ "xmm1 .*uint128 = 0x.*" \
"verify xmm1 after reverse cmpss"
gdb_test "info register xmm2" \
@@ -438,35 +438,35 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "cmpps.*" "reverse-step to cmpps"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09080706050423222120.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09080706050423222120.*" \
"verify xmm0 after reverse cmpsd"
gdb_test "info register xmm1" \
- "xmm1 .*uint128 = 0x00000000000000000000000000000000.*" \
+ "xmm1 .*uint128 = 0x.*" \
"verify xmm1 after reverse cmpsd"
gdb_test "info register xmm2" \
- "xmm2 .*uint128 = 0x0f0e0d0c0b0a09082726252400000000.*" \
+ "xmm2 .*uint128 = 0xf0e0d0c0b0a09082726252400000000.*" \
"verify xmm2 after reverse cmpsd"
gdb_test "reverse-step" "cmppd.*" "reverse-step to cmppd"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09080706050423222120.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09080706050423222120.*" \
"verify xmm0 after reverse cmpps"
gdb_test "info register xmm1" \
- "xmm1 .*uint128 = 0x0f0e0d0c0b0a09082726252400000000.*" \
+ "xmm1 .*uint128 = 0xf0e0d0c0b0a09082726252400000000.*" \
"verify xmm1 after reverse cmpps"
gdb_test "info register xmm2" \
- "xmm2 .*uint128 = 0x0f0e0d0c0b0a09082726252400000000.*" \
+ "xmm2 .*uint128 = 0xf0e0d0c0b0a09082726252400000000.*" \
"verify xmm2 after reverse cmpps"
gdb_test "reverse-step" "andps.*" "reverse-step to andps"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09080706050423222120.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09080706050423222120.*" \
"verify xmm0 after reverse cmppd"
gdb_test "info register xmm1" \
@@ -474,13 +474,13 @@ gdb_test "info register xmm1" \
"verify xmm1 after reverse cmppd"
gdb_test "info register xmm2" \
- "xmm2 .*uint128 = 0x0f0e0d0c0b0a09082726252400000000.*" \
+ "xmm2 .*uint128 = 0xf0e0d0c0b0a09082726252400000000.*" \
"verify xmm2 after reverse cmppd"
gdb_test "reverse-step" "andpd.*" "reverse-step to andpd"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09080706050423222120.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09080706050423222120.*" \
"verify xmm0 after reverse andps"
gdb_test "info register xmm1" \
@@ -494,7 +494,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "addsubps.*" "reverse-step to addsubps"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09080706050423222120.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09080706050423222120.*" \
"verify xmm0 after reverse andpd"
gdb_test "info register xmm1" \
@@ -508,7 +508,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "addsubpd.*" "reverse-step to addsubpd"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09080706050423222120.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09080706050423222120.*" \
"verify xmm0 after reverse addsubps"
gdb_test "info register xmm1" \
@@ -522,7 +522,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "addss.*" "reverse-step to addss"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09080706050403020100.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09080706050403020100.*" \
"verify xmm0 after reverse addsubpd"
gdb_test "info register xmm1" \
@@ -536,7 +536,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "addsd.*" "reverse-step to addsd"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09080706050403020100.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09080706050403020100.*" \
"verify xmm0 after reverse addss"
gdb_test "info register xmm1" \
@@ -550,7 +550,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "addps.*" "reverse-step to addps"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09080706050403020100.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09080706050403020100.*" \
"verify xmm0 after reverse addsd"
gdb_test "info register xmm1" \
@@ -564,7 +564,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "addpd.*" "reverse-step to addpd"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09080706050403020100.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09080706050403020100.*" \
"verify xmm0 after reverse addps"
gdb_test "info register xmm1" \
@@ -612,7 +612,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "pabsd.*" "reverse-step to pabsd"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09080706050403020100.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09080706050403020100.*" \
"verify xmm0 after reverse pabsd"
gdb_test "info register xmm1" \
@@ -626,7 +626,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "pabsw.*" "reverse-step to pabsw"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09080706050403020100.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09080706050403020100.*" \
"verify xmm0 after reverse pabsw"
gdb_test "info register xmm1" \
@@ -640,7 +640,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "pabsb.*" "reverse-step to pabsb"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09080706050403020100.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09080706050403020100.*" \
"verify xmm0 after reverse pabsb"
gdb_test "info register xmm1" \
@@ -676,7 +676,7 @@ gdb_test_multiple "continue" $test {
gdb_test "reverse-step" "blendvps.*" "reverse-step to blendvps"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09082726252413121110.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09082726252413121110.*" \
"verify xmm0 at end of sse4_test"
gdb_test "info register xmm1" \
@@ -690,7 +690,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "blendvpd.*" "reverse-step to blendvpd"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09082726252413121110.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09082726252413121110.*" \
"verify xmm0 after reverse blendvps"
gdb_test "info register xmm1" \
@@ -704,7 +704,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "blendps.*" "reverse-step to blendps"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09081716151413121110.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09081716151413121110.*" \
"verify xmm0 after reverse blendvpd"
gdb_test "info register xmm1" \
@@ -718,7 +718,7 @@ gdb_test "info register xmm2" \
gdb_test "reverse-step" "blendpd.*" "reverse-step to blendpd"
gdb_test "info register xmm0" \
- "xmm0 .*uint128 = 0x0f0e0d0c0b0a09080706050403020100.*" \
+ "xmm0 .*uint128 = 0xf0e0d0c0b0a09080706050403020100.*" \
"verify xmm0 after reverse blendps"
gdb_test "info register xmm1" \