Commit 8a896995 by Jozef Lawrynowicz Committed by Jozef Lawrynowicz

msp430.c (msp430_file_end): s/msp_/msp430_/

2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

	* config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
	(msp430_expand_epilogue): Likewise.
	* config/msp430/predicates.md: Likewise.
	* config/msp430/msp430.md: Likewise.
	Replace blocks of 8 spaces with tabs.

From-SVN: r276671
parent 53f45082
2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com> 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
* config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
(msp430_expand_epilogue): Likewise.
* config/msp430/predicates.md: Likewise.
* config/msp430/msp430.md: Likewise.
Replace blocks of 8 spaces with tabs.
2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
* config/msp430/msp430-protos.h (msp430_split_addsi): New prototype. * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
* config/msp430/msp430.c (msp430_split_addsi): New. * config/msp430/msp430.c (msp430_split_addsi): New.
* config/msp430/msp430.md: Call msp430_split_addsi () instead of using * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
......
...@@ -83,7 +83,7 @@ struct GTY(()) machine_function ...@@ -83,7 +83,7 @@ struct GTY(()) machine_function
}; };
/* This is our init_machine_status, as set in /* This is our init_machine_status, as set in
msp_option_override. */ msp430_option_override. */
static struct machine_function * static struct machine_function *
msp430_init_machine_status (void) msp430_init_machine_status (void)
{ {
...@@ -2119,18 +2119,20 @@ msp430_file_end (void) ...@@ -2119,18 +2119,20 @@ msp430_file_end (void)
construct a .MSP430.attributes section based on the options it is invoked construct a .MSP430.attributes section based on the options it is invoked
with. The values it reads from these directives are used for validating with. The values it reads from these directives are used for validating
those options. */ those options. */
const char *msp_attr = ".mspabi_attribute"; const char *msp430_attr = ".mspabi_attribute";
const char *gnu_attr = ".gnu_attribute"; const char *gnu_attr = ".gnu_attribute";
/* Emit .mspabi_attribute directive for OFBA_MSPABI_Tag_ISA. */ /* Emit .mspabi_attribute directive for OFBA_MSPABI_Tag_ISA. */
fprintf (asm_out_file, "\t%s %d, %d\n", msp_attr, OFBA_MSPABI_Tag_ISA, fprintf (asm_out_file, "\t%s %d, %d\n", msp430_attr, OFBA_MSPABI_Tag_ISA,
msp430x ? OFBA_MSPABI_Val_ISA_MSP430X : OFBA_MSPABI_Val_ISA_MSP430); msp430x ? OFBA_MSPABI_Val_ISA_MSP430X : OFBA_MSPABI_Val_ISA_MSP430);
/* Emit .mspabi_attribute directive for OFBA_MSPABI_Tag_Code_Model. */ /* Emit .mspabi_attribute directive for OFBA_MSPABI_Tag_Code_Model. */
fprintf (asm_out_file, "\t%s %d, %d\n", msp_attr, OFBA_MSPABI_Tag_Code_Model, fprintf (asm_out_file, "\t%s %d, %d\n", msp430_attr,
OFBA_MSPABI_Tag_Code_Model,
TARGET_LARGE ? OFBA_MSPABI_Val_Model_Large TARGET_LARGE ? OFBA_MSPABI_Val_Model_Large
: OFBA_MSPABI_Val_Model_Small); : OFBA_MSPABI_Val_Model_Small);
/* Emit .mspabi_attribute directive for OFBA_MSPABI_Tag_Data_Model. */ /* Emit .mspabi_attribute directive for OFBA_MSPABI_Tag_Data_Model. */
fprintf (asm_out_file, "\t%s %d, %d\n", msp_attr, OFBA_MSPABI_Tag_Data_Model, fprintf (asm_out_file, "\t%s %d, %d\n", msp430_attr,
OFBA_MSPABI_Tag_Data_Model,
TARGET_LARGE ? OFBA_MSPABI_Val_Model_Large TARGET_LARGE ? OFBA_MSPABI_Val_Model_Large
: OFBA_MSPABI_Val_Model_Small); : OFBA_MSPABI_Val_Model_Small);
#ifdef HAVE_AS_MSPABI_ATTRIBUTE #ifdef HAVE_AS_MSPABI_ATTRIBUTE
...@@ -2604,7 +2606,7 @@ msp430_expand_epilogue (int is_eh) ...@@ -2604,7 +2606,7 @@ msp430_expand_epilogue (int is_eh)
else if (is_reentrant_func ()) else if (is_reentrant_func ())
emit_insn (gen_enable_interrupts ()); emit_insn (gen_enable_interrupts ());
emit_jump_insn (gen_msp_return ()); emit_jump_insn (gen_msp430_return ());
} }
/* Implements EH_RETURN_STACKADJ_RTX. Saved and used later in /* Implements EH_RETURN_STACKADJ_RTX. Saved and used later in
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
;; along with GCC; see the file COPYING3. If not see ;; along with GCC; see the file COPYING3. If not see
;; <http://www.gnu.org/licenses/>. ;; <http://www.gnu.org/licenses/>.
(define_predicate "msp_volatile_memory_operand" (define_predicate "msp430_volatile_memory_operand"
(and (match_code "mem") (and (match_code "mem")
(match_test ("memory_address_addr_space_p (GET_MODE (op), XEXP (op, 0), MEM_ADDR_SPACE (op))"))) (match_test ("memory_address_addr_space_p (GET_MODE (op), XEXP (op, 0), MEM_ADDR_SPACE (op))")))
) )
...@@ -26,16 +26,16 @@ ...@@ -26,16 +26,16 @@
; TRUE for any valid general operand. We do this because ; TRUE for any valid general operand. We do this because
; general_operand refuses to match volatile memory refs. ; general_operand refuses to match volatile memory refs.
(define_predicate "msp_general_operand" (define_predicate "msp430_general_operand"
(ior (match_operand 0 "general_operand") (ior (match_operand 0 "general_operand")
(match_operand 0 "msp_volatile_memory_operand")) (match_operand 0 "msp430_volatile_memory_operand"))
) )
; Likewise for nonimmediate_operand. ; Likewise for nonimmediate_operand.
(define_predicate "msp_nonimmediate_operand" (define_predicate "msp430_nonimmediate_operand"
(ior (match_operand 0 "nonimmediate_operand") (ior (match_operand 0 "nonimmediate_operand")
(match_operand 0 "msp_volatile_memory_operand")) (match_operand 0 "msp430_volatile_memory_operand"))
) )
(define_predicate "ubyte_operand" (define_predicate "ubyte_operand"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment