diff options
author | Bob Wilson <bob.wilson@acm.org> | 2004-11-11 19:05:43 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2004-11-11 19:05:43 +0000 |
commit | a67517f48ea8dba9381df004e6aebf9b1d0d39c2 (patch) | |
tree | d5a8200b538fa5fcba4f12549733a6e6c14cb8d3 /gas/config | |
parent | d6f7abdf98f98f21d0c3724f6897ebecf55ec9aa (diff) | |
download | gdb-a67517f48ea8dba9381df004e6aebf9b1d0d39c2.zip gdb-a67517f48ea8dba9381df004e6aebf9b1d0d39c2.tar.gz gdb-a67517f48ea8dba9381df004e6aebf9b1d0d39c2.tar.bz2 |
gas/
* config/tc-xtensa.c (MAX_IMMED6): Change value to 65.
gas/testsuite/
* gas/xtensa/short_branch_offset.s: New.
* gas/xtensa/short_branch_offset.d: New.
* gas/xtensa/all.exp: Run new test.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-xtensa.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c index 11bd872..8f36230 100644 --- a/gas/config/tc-xtensa.c +++ b/gas/config/tc-xtensa.c @@ -7242,8 +7242,11 @@ xtensa_mark_narrow_branches (void) use for alignment narrow branches that definitely will not expand to a jump and a branch. These functions find and mark these cases. */ -/* the range in bytes of a bnez.n and beqz.n */ -#define MAX_IMMED6 68 +/* The range in bytes of BNEZ.N and BEQZ.N. The target operand is encoded + as PC + 4 + imm6, where imm6 is a 6-bit immediate ranging from 0 to 63. + We start counting beginning with the frag after the 2-byte branch, so the + maximum offset is (4 - 2) + 63 = 65. */ +#define MAX_IMMED6 65 static size_t unrelaxed_frag_max_size (fragS *); |