r235590 - in /trunk/gcc: ChangeLog config/arc/a...
amylaar@gcc.gnu.org
amylaar@gcc.gnu.org
Thu Apr 28 18:21:00 GMT 2016
Author: amylaar
Date: Thu Apr 28 18:21:42 2016
New Revision: 235590
URL: https://gcc.gnu.org/viewcvs?rev=235590&root=gcc&view=rev
Log:
2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
Andrew Burgess <andrew.burgess@embecosm.com>
gcc:
* config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
(TARGET_NPS_CMEM_DEFAULT): Provide default definition.
* config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
(arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
* config/arc/arc.opt (mcmem): New option.
* config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
supply length for r/m alternative.
(*extendqisi2_ac): Likewise.
(*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
r/Uex alternative.
(movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
(movhi_insn): Likewise.
(movsi_insn): Add r/Ucm,Ucm/w alternatives.
(*zero_extendqihi2_i): Add r/Ucm alternative.
(*zero_extendqisi2_ac): Likewise.
(*zero_extendhisi2_i): Likewise.
* config/arc/constraints.md (Uex): New memory constraint.
(Ucm): New define_constraint.
* config/arc/predicates.md (long_immediate_loadstore_operand):
Return 0 for MEM with cmem_address address.
(cmem_address_0): New predicates.
(cmem_address_1): Likewise.
(cmem_address_2): Likewise.
(cmem_address): Likewise.
gcc/testsuite:
* gcc.target/arc/cmem-1.c: New file.
* gcc.target/arc/cmem-2.c: New file.
* gcc.target/arc/cmem-3.c: New file.
* gcc.target/arc/cmem-4.c: New file.
* gcc.target/arc/cmem-5.c: New file.
* gcc.target/arc/cmem-6.c: New file.
* gcc.target/arc/cmem-7.c: New file.
* gcc.target/arc/cmem-ld.inc: New file.
* gcc.target/arc/cmem-st.inc: New file.
Added:
trunk/gcc/testsuite/gcc.target/arc/cmem-1.c
trunk/gcc/testsuite/gcc.target/arc/cmem-2.c
trunk/gcc/testsuite/gcc.target/arc/cmem-3.c
trunk/gcc/testsuite/gcc.target/arc/cmem-4.c
trunk/gcc/testsuite/gcc.target/arc/cmem-5.c
trunk/gcc/testsuite/gcc.target/arc/cmem-6.c
trunk/gcc/testsuite/gcc.target/arc/cmem-7.c
trunk/gcc/testsuite/gcc.target/arc/cmem-ld.inc
trunk/gcc/testsuite/gcc.target/arc/cmem-st.inc
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/arc/arc.c
trunk/gcc/config/arc/arc.h
trunk/gcc/config/arc/arc.md
trunk/gcc/config/arc/arc.opt
trunk/gcc/config/arc/constraints.md
trunk/gcc/config/arc/predicates.md
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list