* read.c (convert_to_bignum): New function, split out from...
authorRichard Sandiford <rdsandiford@googlemail.com>
Wed, 19 Jan 2005 11:53:53 +0000 (11:53 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Wed, 19 Jan 2005 11:53:53 +0000 (11:53 +0000)
commite5604d797e394c370128dc06e702a14f11f3e8a5
tree3f18f33ccb5004f3dbbec974231bfb224be1e79a
parente22430578c7bc54a36eb0a8cc0a083f5b4826998
* read.c (convert_to_bignum): New function, split out from...
(emit_expr): ...here.  Handle the case where X_add_number is
positive and the input value is negative.
(output_big_sleb128): Fix setting of continuation bit.  Check whether
the final byte needs to be sign-extended.  Fix size-shrinking loop.
(emit_leb128_expr): When generating a signed leb128, see whether the
sign of an O_constant's X_add_number matches the sign of the input
value.  Use a bignum if not.
gas/ChangeLog
gas/read.c
gas/testsuite/ChangeLog
gas/testsuite/gas/all/gas.exp
gas/testsuite/gas/all/quad.d [new file with mode: 0644]
gas/testsuite/gas/all/quad.s [new file with mode: 0644]
gas/testsuite/gas/all/sleb128.d [new file with mode: 0644]
gas/testsuite/gas/all/sleb128.s [new file with mode: 0644]