diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2012-11-08 18:21:25 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2012-11-08 18:21:25 +0000 |
commit | 5821951ca6721283d125491fa1c56322f086ea94 (patch) | |
tree | 180c2731b71d66cb7d327cf366c7a78e99304533 /gas/config | |
parent | 4574b35a66f832ce0cc2204431834fbe73ab5886 (diff) | |
download | gdb-5821951ca6721283d125491fa1c56322f086ea94.zip gdb-5821951ca6721283d125491fa1c56322f086ea94.tar.gz gdb-5821951ca6721283d125491fa1c56322f086ea94.tar.bz2 |
gas/
* config/tc-mips.c (mips_ip) <'u'>: Default to BFD_RELOC_LO16.
gas/testsuite/
* gas/mips/lui.d: New test.
* gas/mips/micromips@lui.d: New test.
* gas/mips/lui-1.l: New list test.
* gas/mips/lui-2.l: New list test.
* gas/mips/lui.s: New test source.
* gas/mips/lui-1.s: New test source.
* gas/mips/lui-2.s: New test source.
* gas/mips/mips.exp: Run the new tests.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-mips.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 024b864..0372b7a 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -12413,6 +12413,7 @@ mips_ip (char *str, struct mips_cl_insn *ip) continue; case 'u': /* Upper 16 bits. */ + *imm_reloc = BFD_RELOC_LO16; if (my_getSmallExpression (&imm_expr, imm_reloc, s) == 0 && imm_expr.X_op == O_constant && (imm_expr.X_add_number < 0 |