]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR target/54760 ([SH] Add __builtin_thread_pointer, __builtin_set_thread_pointer)
authorOleg Endo <olegendo@gcc.gnu.org>
Mon, 15 Oct 2012 22:04:37 +0000 (22:04 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Mon, 15 Oct 2012 22:04:37 +0000 (22:04 +0000)
commit14df3f361e5aaa4145ab242886e3a857d4ae078c
tree0e4d00759d8ddfb538c6aca0b82c0bfa1c6bbde8
parent845f4111764265237c4554fae4219691b976cb7a
re PR target/54760 ([SH] Add __builtin_thread_pointer, __builtin_set_thread_pointer)

PR target/54760
* config/sh/sh.c (sh_find_base_reg_disp): Stop searching insns when
hitting a call insn if GBR is marked as call used.
* config/sh/iterators.md (QIHISIDI): New mode iterator.
* config/sh/predicates.md (gbr_address_mem): New predicate.
* config/sh/sh.md (*movdi_gbr_load, *movdi_gbr_store): New
insn_and_split.
Use QIHISIDI instead of QIHISI in unnamed GBR addressing splits.

PR target/54760
* gcc.target/sh/pr54760-2.c: Add long long and unsigned long long test
functions.
* gcc.target/sh/pr54760-4.c: New.

From-SVN: r192480
gcc/ChangeLog
gcc/config/sh/iterators.md
gcc/config/sh/predicates.md
gcc/config/sh/sh.c
gcc/config/sh/sh.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/sh/pr54760-2.c
gcc/testsuite/gcc.target/sh/pr54760-4.c [new file with mode: 0644]