Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
ad2c71b7
Commit
ad2c71b7
authored
Jun 29, 1998
by
Jeffrey A Law
Committed by
Jeff Law
Jun 29, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pa.c, pa.h, pa.md: Convert to gen_rtx_FOO.
From-SVN: r20806
parent
2880d0aa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
44 deletions
+46
-44
gcc/ChangeLog
+4
-0
gcc/config/pa/pa.c
+0
-0
gcc/config/pa/pa.h
+16
-16
gcc/config/pa/pa.md
+26
-28
No files found.
gcc/ChangeLog
View file @
ad2c71b7
Mon Jun 29 22:12:06 1998 Jeffrey A Law (law@cygnus.com)
* pa.c, pa.h, pa.md: Convert to gen_rtx_FOO.
Mon Jun 29 20:12:41 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (fix-header): Don't needlessly depend on cpperror.o.
...
...
gcc/config/pa/pa.c
View file @
ad2c71b7
This diff is collapsed.
Click to expand it.
gcc/config/pa/pa.h
View file @
ad2c71b7
...
...
@@ -803,7 +803,7 @@ int zdepi_cint_p ();
/* Return the stack location to use for secondary memory needed reloads. */
#define SECONDARY_MEMORY_NEEDED_RTX(MODE) \
gen_rtx
(MEM, MODE, gen_rtx (PLUS,
Pmode, stack_pointer_rtx, GEN_INT (-16)))
gen_rtx
_MEM (MODE, gen_rtx_PLUS (
Pmode, stack_pointer_rtx, GEN_INT (-16)))
/* Return the maximum number of consecutive registers
needed to represent mode MODE in a register of class CLASS. */
...
...
@@ -909,18 +909,18 @@ int zdepi_cint_p ();
#define FUNCTION_VALUE(VALTYPE, FUNC) \
gen_rtx
(REG,
TYPE_MODE (VALTYPE), ((! TARGET_SOFT_FLOAT \
&& (TYPE_MODE (VALTYPE) == SFmode || \
TYPE_MODE (VALTYPE) == DFmode)) ? \
32 : 28))
gen_rtx
_REG (
TYPE_MODE (VALTYPE), ((! TARGET_SOFT_FLOAT \
&& (TYPE_MODE (VALTYPE) == SFmode || \
TYPE_MODE (VALTYPE) == DFmode)) ? \
32 : 28))
/* Define how to find the value returned by a library function
assuming the value has mode MODE. */
#define LIBCALL_VALUE(MODE) \
gen_rtx
(REG,
MODE, \
(! TARGET_SOFT_FLOAT
\
&& ((MODE) == SFmode || (MODE) == DFmode) ? 32 : 28))
gen_rtx
_REG (
MODE, \
(! TARGET_SOFT_FLOAT
\
&& ((MODE) == SFmode || (MODE) == DFmode) ? 32 : 28))
/* 1 if N is a possible register number for a function value
as seen by the caller. */
...
...
@@ -1044,7 +1044,7 @@ struct hppa_args {int words, nargs_prototype, indirect; };
? (!TARGET_PORTABLE_RUNTIME || (TYPE) == 0 \
|| !FLOAT_MODE_P (MODE) || TARGET_SOFT_FLOAT \
|| (CUM).nargs_prototype > 0) \
? gen_rtx
(REG,
(MODE), \
? gen_rtx
_REG (
(MODE), \
(FUNCTION_ARG_SIZE ((MODE), (TYPE)) > 1 \
? (((!(CUM).indirect \
|| TARGET_PORTABLE_RUNTIME) \
...
...
@@ -1061,17 +1061,17 @@ struct hppa_args {int words, nargs_prototype, indirect; };
(TYPE))))))\
/* We are calling a non-prototyped function with floating point \
arguments using the portable conventions. */
\
: gen_rtx
(PARALLEL,
(MODE), \
: gen_rtx
_PARALLEL (
(MODE), \
gen_rtvec \
(2, \
gen_rtx
(EXPR_LIST,
VOIDmode, \
gen_rtx
(REG,
(MODE), \
gen_rtx
_EXPR_LIST (
VOIDmode, \
gen_rtx
_REG (
(MODE), \
(FUNCTION_ARG_SIZE ((MODE), (TYPE)) > 1 \
? ((CUM).words ? 38 : 34) \
: (32 + 2 * (CUM).words))), \
const0_rtx), \
gen_rtx
(EXPR_LIST,
VOIDmode, \
gen_rtx
(REG,
(MODE), \
gen_rtx
_EXPR_LIST (
VOIDmode, \
gen_rtx
_REG (
(MODE), \
(FUNCTION_ARG_SIZE ((MODE), (TYPE)) > 1 \
? ((CUM).words ? 23 : 25) \
: (27 - (CUM).words - \
...
...
@@ -1343,9 +1343,9 @@ extern union tree_node *current_function_decl;
rtx start_addr, end_addr; \
\
start_addr = memory_address (Pmode, plus_constant ((TRAMP), 36)); \
emit_move_insn (gen_rtx
(MEM,
Pmode, start_addr), (FNADDR)); \
emit_move_insn (gen_rtx
_MEM (
Pmode, start_addr), (FNADDR)); \
start_addr = memory_address (Pmode, plus_constant ((TRAMP), 40)); \
emit_move_insn (gen_rtx
(MEM,
Pmode, start_addr), (CXT)); \
emit_move_insn (gen_rtx
_MEM (
Pmode, start_addr), (CXT)); \
/* fdc and fic only use registers for the address to flush, \
they do not accept integer displacements. */
\
start_addr = force_reg (SImode, (TRAMP)); \
...
...
gcc/config/pa/pa.md
View file @
ad2c71b7
...
...
@@ -808,7 +808,7 @@
/
*
operands
[
1
]
is currently the result of compare_from_rtx. We want to
emit a compare of the original operands.
*
/
operands
[
1
]
= gen_rtx (code, SImode, hppa_compare_op0, hppa_compare_op1);
operands
[
1
]
= gen_rtx
_fmt_ee
(code, SImode, hppa_compare_op0, hppa_compare_op1);
operands
[
4
]
= hppa_compare_op0;
operands
[
5
]
= hppa_compare_op1;
}")
...
...
@@ -1316,7 +1316,7 @@
DONE;
/
* We don't want the clobber emitted, so handle this ourselves. *
/
emit_insn (gen_rtx
(SET,
VOIDmode, operands
[
0
]
, operands
[
1
]
));
emit_insn (gen_rtx
_SET (
VOIDmode, operands
[
0
]
, operands
[
1
]
));
DONE;
}")
...
...
@@ -1331,7 +1331,7 @@
DONE;
/
* We don't want the clobber emitted, so handle this ourselves. *
/
emit_insn (gen_rtx
(SET,
VOIDmode, operands
[
0
]
, operands
[
1
]
));
emit_insn (gen_rtx
_SET (
VOIDmode, operands
[
0
]
, operands
[
1
]
));
DONE;
}")
...
...
@@ -2190,7 +2190,7 @@
DONE;
/
* We don't want the clobber emitted, so handle this ourselves. *
/
emit_insn (gen_rtx
(SET,
VOIDmode, operands
[
0
]
, operands
[
1
]
));
emit_insn (gen_rtx
_SET (
VOIDmode, operands
[
0
]
, operands
[
1
]
));
DONE;
}")
...
...
@@ -2205,7 +2205,7 @@
DONE;
/
* We don't want the clobber emitted, so handle this ourselves. *
/
emit_insn (gen_rtx
(SET,
VOIDmode, operands
[
0
]
, operands
[
1
]
));
emit_insn (gen_rtx
_SET (
VOIDmode, operands
[
0
]
, operands
[
1
]
));
DONE;
}")
...
...
@@ -2341,7 +2341,7 @@
DONE;
/
* We don't want the clobber emitted, so handle this ourselves. *
/
emit_insn (gen_rtx
(SET,
VOIDmode, operands
[
0
]
, operands
[
1
]
));
emit_insn (gen_rtx
_SET (
VOIDmode, operands
[
0
]
, operands
[
1
]
));
DONE;
}")
...
...
@@ -2356,7 +2356,7 @@
DONE;
/
* We don't want the clobber emitted, so handle this ourselves. *
/
emit_insn (gen_rtx
(SET,
VOIDmode, operands
[
0
]
, operands
[
1
]
));
emit_insn (gen_rtx
_SET (
VOIDmode, operands
[
0
]
, operands
[
1
]
));
DONE;
}")
...
...
@@ -2495,7 +2495,7 @@
DONE;
/
* We don't want the clobber emitted, so handle this ourselves. *
/
emit_insn (gen_rtx
(SET,
VOIDmode, operands
[
0
]
, operands
[
1
]
));
emit_insn (gen_rtx
_SET (
VOIDmode, operands
[
0
]
, operands
[
1
]
));
DONE;
}")
...
...
@@ -2510,7 +2510,7 @@
DONE;
/
* We don't want the clobber emitted, so handle this ourselves. *
/
emit_insn (gen_rtx
(SET,
VOIDmode, operands
[
0
]
, operands
[
1
]
));
emit_insn (gen_rtx
_SET (
VOIDmode, operands
[
0
]
, operands
[
1
]
));
DONE;
}")
...
...
@@ -2937,7 +2937,7 @@
}
else if (cint_ok_for_move (-intval))
{
emit_insn (gen_rtx
(SET,
VOIDmode, operands
[
4
]
, GEN_INT (-intval)));
emit_insn (gen_rtx
_SET (
VOIDmode, operands
[
4
]
, GEN_INT (-intval)));
emit_insn (gen_subsi3 (operands
[
0
]
, operands
[
1
]
, operands
[
4
]
));
DONE;
}
...
...
@@ -3019,9 +3019,9 @@
operands
[
1
]
= force_reg (SImode, operands
[
1
]
);
operands
[
2
]
= force_reg (SImode, operands
[
2
]
);
emit_insn (gen_umulsidi3 (scratch, operands
[
1
]
, operands
[
2
]
));
emit_insn (gen_rtx
(SET,
VOIDmode,
operands
[
0
]
,
gen_rtx (SUBREG,
SImode, scratch, 1)));
emit_insn (gen_rtx
_SET (
VOIDmode,
operands
[
0
]
,
gen_rtx_SUBREG (
SImode, scratch, 1)));
DONE;
}
operands
[
3
]
= gen_reg_rtx (SImode);
...
...
@@ -4029,7 +4029,7 @@
if (TARGET_BIG_SWITCH)
{
rtx temp = gen_reg_rtx (SImode);
emit_move_insn (temp, gen_rtx
(PLUS,
SImode, operands
[
0
]
, operands
[
0
]
));
emit_move_insn (temp, gen_rtx
_PLUS (
SImode, operands
[
0
]
, operands
[
0
]
));
operands
[
0
]
= temp;
}
emit_jump_insn (gen_casesi0 (operands
[
0
]
, operands
[
3
]
));
...
...
@@ -4074,7 +4074,7 @@
call_insn = emit_call_insn (gen_call_internal_symref (op, operands
[
1
]
));
else
{
rtx tmpreg = gen_rtx
(REG,
SImode, 22);
rtx tmpreg = gen_rtx
_REG (
SImode, 22);
emit_move_insn (tmpreg, force_reg (SImode, op));
call_insn = emit_call_insn (gen_call_internal_reg (operands
[
1
]
));
}
...
...
@@ -4089,8 +4089,8 @@
This will set regs_ever_live for the callee saved register we
stored the PIC register in. */
emit_move_insn (pic_offset_table_rtx,
gen_rtx
(REG,
SImode, PIC_OFFSET_TABLE_REGNUM_SAVED));
emit_insn (gen_rtx
(USE,
VOIDmode, pic_offset_table_rtx));
gen_rtx
_REG (
SImode, PIC_OFFSET_TABLE_REGNUM_SAVED));
emit_insn (gen_rtx
_USE (
VOIDmode, pic_offset_table_rtx));
/* Gross. We have to keep the scheduler from moving the restore
of the PIC register away from the call. SCHED_GROUP_P is
...
...
@@ -4114,7 +4114,7 @@
"
*
{
output_arg_descriptor (insn);
return output_call (insn, operands
[
0
]
, gen_rtx
(REG,
SImode, 2));
return output_call (insn, operands
[
0
]
, gen_rtx
_REG (
SImode, 2));
}"
[
(set_attr "type" "call")
(set (attr "length")
...
...
@@ -4231,7 +4231,7 @@
operands
[
2
]
));
else
{
rtx tmpreg = gen_rtx
(REG,
SImode, 22);
rtx tmpreg = gen_rtx
_REG (
SImode, 22);
emit_move_insn (tmpreg, force_reg (SImode, op));
call_insn = emit_call_insn (gen_call_value_internal_reg (operands
[
0
]
,
operands
[
2
]
));
...
...
@@ -4246,8 +4246,8 @@
This will set regs_ever_live for the callee saved register we
stored the PIC register in. */
emit_move_insn (pic_offset_table_rtx,
gen_rtx
(REG,
SImode, PIC_OFFSET_TABLE_REGNUM_SAVED));
emit_insn (gen_rtx
(USE,
VOIDmode, pic_offset_table_rtx));
gen_rtx
_REG (
SImode, PIC_OFFSET_TABLE_REGNUM_SAVED));
emit_insn (gen_rtx
_USE (
VOIDmode, pic_offset_table_rtx));
/* Gross. We have to keep the scheduler from moving the restore
of the PIC register away from the call. SCHED_GROUP_P is
...
...
@@ -4273,7 +4273,7 @@
"
*
{
output_arg_descriptor (insn);
return output_call (insn, operands
[
1
]
, gen_rtx
(REG,
SImode, 2));
return output_call (insn, operands
[
1
]
, gen_rtx
_REG (
SImode, 2));
}"
[
(set_attr "type" "call")
(set (attr "length")
...
...
@@ -4508,7 +4508,7 @@
;; This insn is used for some loop tests, typically loops reversed when
;; strength reduction is used. It is actually created when the instruction
;; combination phase combines the special loop test. Since this insn
;; is both a jump insn and has an output, it must deal with it
'
s own
;; is both a jump insn and has an output, it must deal with its own
;; reloads, hence the
`m' constraints. The `
!' constraints direct reload
;; to not choose the register alternatives in the event a reload is needed.
(define_insn "decrement_and_branch_until_zero"
...
...
@@ -5112,8 +5112,7 @@
/
* Else call $$sh_func_adrs to extract the function's real add24. *
/
return output_millicode_call (insn,
gen_rtx (SYMBOL_REF, SImode,
\"
$$sh_func_adrs
\"
));
gen_rtx_SYMBOL_REF (SImode,
\"
$$sh_func_adrs
\"
));
}"
[
(set_attr "type" "multi")
(set (attr "length")
...
...
@@ -5159,9 +5158,8 @@
/
*
Load the PIC register from the stack slot (in our caller's
frame).
*
/
emit_move_insn (pic_offset_table_rtx,
gen_rtx (MEM, SImode,
plus_constant (stack_pointer_rtx, -32)));
emit_insn (gen_rtx (USE, VOIDmode, pic_offset_table_rtx));
gen_rtx_MEM (SImode, plus_constant (stack_pointer_rtx, -32)));
emit_insn (gen_rtx_USE (VOIDmode, pic_offset_table_rtx));
emit_insn (gen_blockage ());
DONE;
}")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment