pr54760-1.c
553 Bytes
-
re PR target/54760 ([SH] Add __builtin_thread_pointer, __builtin_set_thread_pointer) · 7d11d296
PR target/54760 * config/sh/sh.md (define_constants): Add UNSPECV_GBR. (get_thread_pointer, set_thread_pointer): New expanders. (load_gbr): Rename to store_gbr. Remove GBR_REG use. (store_gbr): New insn. * config/sh/sh.c (prepare_move_operands): Use gen_store_gbr instead of gen_load_gbr in TLS_MODEL_LOCAL_EXEC case. (sh1_builtin_p): New function. (signature_args): Add SH_BLTIN_VP. (bdesc): Add __builtin_thread_pointer and __builtin_set_thread_pointer. PR target/54760 * gcc.target/sh/pr54760-1.c: New. From-SVN: r192155
Oleg Endo committed