diff options
author | Tristan Gingold <gingold@adacore.com> | 2017-01-09 15:50:32 +0100 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2017-01-10 10:23:23 +0100 |
commit | 74def31dcd248441a49755721da81ca73d99c4fb (patch) | |
tree | 8cacf56ca2cd374af1b699f9969f0325cc50ff0d /gas/testsuite | |
parent | f7fd19e2b83c06cf1590d2ac8d0e9fc1ea4739c2 (diff) | |
download | gdb-74def31dcd248441a49755721da81ca73d99c4fb.zip gdb-74def31dcd248441a49755721da81ca73d99c4fb.tar.gz gdb-74def31dcd248441a49755721da81ca73d99c4fb.tar.bz2 |
This patch ensure same output for sleb128 with large number.
gas/
* read.c (emit_leb128_expr): Extended unsigned big number for
sleb128.
* testsuite/gas/all/gas.exp (test_cond): Add sleb128-8 test.
* testsuite/gas/all/sleb128.d: New test.
* testsuite/gas/all/sleb128.s: New test source.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/all/gas.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/all/sleb128-8.d | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/all/sleb128-8.s | 2 |
3 files changed, 10 insertions, 0 deletions
diff --git a/gas/testsuite/gas/all/gas.exp b/gas/testsuite/gas/all/gas.exp index 8f97ed8..6b5aec0 100644 --- a/gas/testsuite/gas/all/gas.exp +++ b/gas/testsuite/gas/all/gas.exp @@ -393,6 +393,7 @@ run_dump_test sleb128-5 if { ![istarget "tic4x*-*-*"] && ![istarget "tic54x*-*-*"] } { run_dump_test sleb128-7 } +run_dump_test sleb128-8 # .byte is 32 bits on tic4x, and .p2align isn't supported on tic54x # .space is different on hppa*-hpux. diff --git a/gas/testsuite/gas/all/sleb128-8.d b/gas/testsuite/gas/all/sleb128-8.d new file mode 100644 index 0000000..793337c --- /dev/null +++ b/gas/testsuite/gas/all/sleb128-8.d @@ -0,0 +1,7 @@ +#objdump : -s -j .data -j "\$DATA\$" +#name : .sleb128 tests (8) + +.*: .* + +Contents of section (\.data|\$DATA\$): + 0000 ffffffff ffff3f .* diff --git a/gas/testsuite/gas/all/sleb128-8.s b/gas/testsuite/gas/all/sleb128-8.s new file mode 100644 index 0000000..ab3e785 --- /dev/null +++ b/gas/testsuite/gas/all/sleb128-8.s @@ -0,0 +1,2 @@ + .data + .sleb128 281474976710655 |