diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2017-11-13 00:42:43 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2017-11-27 15:14:48 -0800 |
commit | 76a493ab99d9276180db6e791f95d1d6d86d2954 (patch) | |
tree | 87a026ec0dfcf483c671287b36abaa842ba4b6af /gas/testsuite | |
parent | fe6c2f1b6409867a03dd32214679dd825f74ec48 (diff) | |
download | gdb-76a493ab99d9276180db6e791f95d1d6d86d2954.zip gdb-76a493ab99d9276180db6e791f95d1d6d86d2954.tar.gz gdb-76a493ab99d9276180db6e791f95d1d6d86d2954.tar.bz2 |
gas: xtensa: reuse trampoline placement code
There's almost exact copy of the trampoline placement code in the
search_trampolines function that is used for jumps generated for relaxed
branch instructions. Get rid of the duplication and reuse
xg_find_best_trampoline function for that.
gas/
2017-11-27 Max Filippov <jcmvbkbc@gmail.com>
* config/tc-xtensa.c (search_trampolines, get_best_trampoline):
Remove definitions.
(xg_find_best_trampoline_for_tinsn): New function.
(relax_frag_immed): Replace call to get_best_trampoline with a
call to xg_find_best_trampoline_for_tinsn.
* testsuite/gas/xtensa/trampoline.d: Adjust absolute addresses
as the placement of trampolines for relaxed branches has been
changed.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/xtensa/trampoline.d | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/testsuite/gas/xtensa/trampoline.d b/gas/testsuite/gas/xtensa/trampoline.d index c0bac6d..f9aa5d9 100644 --- a/gas/testsuite/gas/xtensa/trampoline.d +++ b/gas/testsuite/gas/xtensa/trampoline.d @@ -23,11 +23,11 @@ #... .*49404:.*j.0x49404 .*49407:.*beqz.n.a2,.0x4940c -.*49409:.*j.0x693ce +.*49409:.*j.0x61aa2 #... -.*693ce:.*j.0x7ddd1 +.*61aa2:.*j.0x7a13b #... -.*7ddd1:.*j.0x927f5 +.*7a13b:.*j.0x927f5 #... .*927f5:.*j.0x927f5 #... |