gas/
authorJulian Brown <julian@codesourcery.com>
Thu, 11 Apr 2013 10:54:13 +0000 (10:54 +0000)
committerJulian Brown <julian@codesourcery.com>
Thu, 11 Apr 2013 10:54:13 +0000 (10:54 +0000)
commit956a6ba3fe11b9dc24212dc65a32b057077e227f
treea958b9407b1cf3d0a1259b3e7227a5af99094104
parentcf2cb5ec99be3cb5a30ff86ebf3859de0ffd5115
gas/
    * read.c (convert_to_bignum): Add sign parameter. Use it
    instead of X_unsigned to determine sign of resulting bignum.
    (emit_expr): Pass extra argument to convert_to_bignum.
    (emit_leb128_expr): Use X_extrabit instead of X_unsigned. Pass
    X_extrabit to convert_to_bignum.
    (parse_bitfield_cons): Set X_extrabit.
    * expr.c (make_expr_symbol, expr_build_uconstant, operand):
    Initialise X_extrabit field as appropriate.
    (add_to_result): New.
    (subtract_from_result): New.
    (expr): Use above.
    * expr.h (expressionS): Add X_extrabit field.

    gas/testsuite/
    * gas/all/sleb128-2.s: New test.
    * gas/all/sleb128-3.s: Likewise.
    * gas/all/sleb128-4.s: Likewise.
    * gas/all/sleb128-5.s: Likewise.
    * gas/all/sleb128-7.s: Likewise.
    * gas/all/sleb128-2.d: New.
    * gas/all/sleb128-3.d: New.
    * gas/all/sleb123-4.d: New.
    * gas/all/sleb123-5.d: New.
    * gas/all/sleb123-7.d: New.
    * gas/all/gas.exp (sleb128-2, sleb128-3, sleb128-4, sleb128-5)
    (sleb128-7): Run new tests.
16 files changed:
gas/ChangeLog
gas/expr.c
gas/expr.h
gas/read.c
gas/testsuite/ChangeLog
gas/testsuite/gas/all/gas.exp
gas/testsuite/gas/all/sleb128-2.d [new file with mode: 0644]
gas/testsuite/gas/all/sleb128-2.s [new file with mode: 0644]
gas/testsuite/gas/all/sleb128-3.d [new file with mode: 0644]
gas/testsuite/gas/all/sleb128-3.s [new file with mode: 0644]
gas/testsuite/gas/all/sleb128-4.d [new file with mode: 0644]
gas/testsuite/gas/all/sleb128-4.s [new file with mode: 0644]
gas/testsuite/gas/all/sleb128-5.d [new file with mode: 0644]
gas/testsuite/gas/all/sleb128-5.s [new file with mode: 0644]
gas/testsuite/gas/all/sleb128-7.d [new file with mode: 0644]
gas/testsuite/gas/all/sleb128-7.s [new file with mode: 0644]