+2011-03-22 Richard Henderson <rth@redhat.com>
+
+ * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
+ of !TARGET_ABI_OPEN_VMS.
+ (alpha_trampoline_init, alpha_start_function): Likewise.
+ (alpha_expand_epilogue, alpha_file_start): Likewise.
+ * config/alpha/alpha.md (divsi3, modsi3): Likewise.
+ (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
+ (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
+ (*divmodsi_internal, *divmoddi_internal_er): Likewise.
+ (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
+
2011-03-22 Joseph Myers <joseph@codesourcery.com>
* config/s390/s390-opts.h: New.
int
direct_return (void)
{
- return (!TARGET_ABI_OPEN_VMS
+ return (TARGET_ABI_OSF
&& reload_completed
&& alpha_sa_size () == 0
&& get_frame_size () == 0
mem = adjust_address (m_tramp, Pmode, 24);
emit_move_insn (mem, chain_value);
- if (!TARGET_ABI_OPEN_VMS)
+ if (TARGET_ABI_OSF)
{
emit_insn (gen_imb ());
#ifdef ENABLE_EXECUTE_STACK
if (TARGET_ABI_OPEN_VMS)
fprintf (file, "\t.base $%d\n", vms_base_regno);
- if (!TARGET_ABI_OPEN_VMS && TARGET_IEEE_CONFORMANT
+ if (TARGET_ABI_OSF
+ && TARGET_IEEE_CONFORMANT
&& !flag_inhibit_size_directive)
{
/* Set flags in procedure descriptor to request IEEE-conformant
alpha_sa_mask (&imask, &fmask);
fp_is_frame_pointer
- = ((TARGET_ABI_OPEN_VMS && alpha_procedure_type == PT_STACK)
- || (!TARGET_ABI_OPEN_VMS && frame_pointer_needed));
+ = (TARGET_ABI_OPEN_VMS
+ ? alpha_procedure_type == PT_STACK
+ : frame_pointer_needed);
fp_offset = 0;
sa_reg = stack_pointer_rtx;
if (sa_size)
{
/* If we have a frame pointer, restore SP from it. */
- if ((TARGET_ABI_OPEN_VMS
- && vms_unwind_regno == HARD_FRAME_POINTER_REGNUM)
- || (!TARGET_ABI_OPEN_VMS && frame_pointer_needed))
+ if (TARGET_ABI_OPEN_VMS
+ ? vms_unwind_regno == HARD_FRAME_POINTER_REGNUM
+ : frame_pointer_needed)
emit_move_insn (stack_pointer_rtx, hard_frame_pointer_rtx);
/* Cope with very large offsets to the register save area. */
fputs ("\t.set noreorder\n", asm_out_file);
fputs ("\t.set volatile\n", asm_out_file);
- if (!TARGET_ABI_OPEN_VMS)
+ if (TARGET_ABI_OSF)
fputs ("\t.set noat\n", asm_out_file);
if (TARGET_EXPLICIT_RELOCS)
fputs ("\t.set nomacro\n", asm_out_file);
(clobber (reg:DI 28))])
(set (match_operand:SI 0 "nonimmediate_operand" "")
(subreg:SI (match_dup 5) 0))]
- "!TARGET_ABI_OPEN_VMS"
+ "TARGET_ABI_OSF"
{
operands[3] = gen_reg_rtx (DImode);
operands[4] = gen_reg_rtx (DImode);
(clobber (reg:DI 28))])
(set (match_operand:SI 0 "nonimmediate_operand" "")
(subreg:SI (match_dup 5) 0))]
- "!TARGET_ABI_OPEN_VMS"
+ "TARGET_ABI_OSF"
{
operands[3] = gen_reg_rtx (DImode);
operands[4] = gen_reg_rtx (DImode);
(clobber (reg:DI 28))])
(set (match_operand:SI 0 "nonimmediate_operand" "")
(subreg:SI (match_dup 5) 0))]
- "!TARGET_ABI_OPEN_VMS"
+ "TARGET_ABI_OSF"
{
operands[3] = gen_reg_rtx (DImode);
operands[4] = gen_reg_rtx (DImode);
(clobber (reg:DI 28))])
(set (match_operand:SI 0 "nonimmediate_operand" "")
(subreg:SI (match_dup 5) 0))]
- "!TARGET_ABI_OPEN_VMS"
+ "TARGET_ABI_OSF"
{
operands[3] = gen_reg_rtx (DImode);
operands[4] = gen_reg_rtx (DImode);
(match_operand:DI 2 "register_operand" "")))
(clobber (reg:DI 23))
(clobber (reg:DI 28))])]
- "!TARGET_ABI_OPEN_VMS"
+ "TARGET_ABI_OSF"
"")
(define_expand "udivdi3"
(match_operand:DI 2 "register_operand" "")))
(clobber (reg:DI 23))
(clobber (reg:DI 28))])]
- "!TARGET_ABI_OPEN_VMS"
+ "TARGET_ABI_OSF"
"")
(define_expand "moddi3"
(match_operand:DI 2 "register_operand" "")))
(clobber (reg:DI 23))
(clobber (reg:DI 28))])]
- "!TARGET_ABI_OPEN_VMS"
+ "TARGET_ABI_OSF"
"")
(define_expand "umoddi3"
(match_operand:DI 2 "register_operand" "")))
(clobber (reg:DI 23))
(clobber (reg:DI 28))])]
- "!TARGET_ABI_OPEN_VMS"
+ "TARGET_ABI_OSF"
"")
;; Lengths of 8 for ldq $t12,__divq($gp); jsr $t9,($t12),__divq as
(match_operand:DI 2 "register_operand" "b")])))
(clobber (reg:DI 23))
(clobber (reg:DI 28))]
- "TARGET_EXPLICIT_RELOCS && ! TARGET_ABI_OPEN_VMS"
+ "TARGET_EXPLICIT_RELOCS && TARGET_ABI_OSF"
"#"
"&& reload_completed"
[(parallel [(set (match_dup 0)
(use (match_operand 5 "const_int_operand" ""))
(clobber (reg:DI 23))
(clobber (reg:DI 28))]
- "TARGET_EXPLICIT_RELOCS && !TARGET_ABI_OPEN_VMS"
+ "TARGET_EXPLICIT_RELOCS && TARGET_ABI_OSF"
"jsr $23,($27),__%E3%j5"
[(set_attr "type" "jsr")
(set_attr "length" "4")])
(match_operand:DI 2 "register_operand" "b")])))
(clobber (reg:DI 23))
(clobber (reg:DI 28))]
- "!TARGET_ABI_OPEN_VMS"
+ "TARGET_ABI_OSF"
"%E3 %1,%2,%0"
[(set_attr "type" "jsr")
(set_attr "length" "8")])
(match_operand:DI 2 "register_operand" "b")]))
(clobber (reg:DI 23))
(clobber (reg:DI 28))]
- "TARGET_EXPLICIT_RELOCS && ! TARGET_ABI_OPEN_VMS"
+ "TARGET_EXPLICIT_RELOCS && TARGET_ABI_OSF"
"#"
"&& reload_completed"
[(parallel [(set (match_dup 0) (match_dup 3))
(use (match_operand 5 "const_int_operand" ""))
(clobber (reg:DI 23))
(clobber (reg:DI 28))]
- "TARGET_EXPLICIT_RELOCS && !TARGET_ABI_OPEN_VMS"
+ "TARGET_EXPLICIT_RELOCS && TARGET_ABI_OSF"
"jsr $23,($27),__%E3%j5"
[(set_attr "type" "jsr")
(set_attr "length" "4")])
(match_operand:DI 2 "register_operand" "b")]))
(clobber (reg:DI 23))
(clobber (reg:DI 28))]
- "!TARGET_ABI_OPEN_VMS"
+ "TARGET_ABI_OSF"
"%E3 %1,%2,%0"
[(set_attr "type" "jsr")
(set_attr "length" "8")])