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
c1f1978f
Commit
c1f1978f
authored
May 13, 2003
by
Nick Clifton
Committed by
Nick Clifton
May 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(jump): Use emit_jump_insn.
From-SVN: r66772
parent
7641be90
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
15 deletions
+21
-15
gcc/ChangeLog
+4
-0
gcc/config/mcore/mcore.md
+17
-15
No files found.
gcc/ChangeLog
View file @
c1f1978f
2003-05-13 Nick Clifton <nickc@redhat.com>
* config/mcore/mcore.md (jump): Use emit_jump_insn.
2003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
...
...
gcc/config/mcore/mcore.md
View file @
c1f1978f
...
...
@@ -1896,7 +1896,7 @@
""
"
{
emit_insn (gen_jump_real (operand0));
emit_
jump_
insn (gen_jump_real (operand0));
DONE;
}
")
...
...
@@ -3462,7 +3462,7 @@
/
* for small constant growth, we unroll the code *
/
if (GET_CODE (operands
[
1
]
) == CONST_INT
&& INTVAL (operands
[
1
]
) < 8
*
STACK_UNITS_MAXSTEP)
&& INTVAL (operands
[
1
]
) < 8
*
STACK_UNITS_MAXSTEP)
{
int left = INTVAL(operands
[
1
]
);
...
...
@@ -3470,18 +3470,20 @@
if (left >= STACK_UNITS_MAXSTEP)
{
rtx tmp = gen_reg_rtx (Pmode);
emit_insn (gen_movsi (tmp, GEN_INT(STACK_UNITS_MAXSTEP)));
emit_insn (gen_movsi (tmp, GEN_INT
(STACK_UNITS_MAXSTEP)));
do
{
rtx memref = gen_rtx (MEM, SImode, stack_pointer_rtx);
MEM_VOLATILE_P (memref) = 1;
emit_insn(gen_subsi3 (stack_pointer_rtx, stack_pointer_rtx, tmp));
emit_insn(gen_movsi (memref, stack_pointer_rtx));
left -= STACK_UNITS_MAXSTEP;
} while (left > STACK_UNITS_MAXSTEP);
rtx memref = gen_rtx (MEM, SImode, stack_pointer_rtx);
MEM_VOLATILE_P (memref) = 1;
emit_insn (gen_subsi3 (stack_pointer_rtx, stack_pointer_rtx, tmp));
emit_insn (gen_movsi (memref, stack_pointer_rtx));
left -= STACK_UNITS_MAXSTEP;
}
while (left > STACK_UNITS_MAXSTEP);
}
/* performs the final adjustment */
emit_insn
(gen_addsi3
(stack_pointer_rtx,stack_pointer_rtx,GEN_INT(-left)));
emit_insn
(gen_addsi3
(stack_pointer_rtx,stack_pointer_rtx,GEN_INT(-left)));
;; emit_move_insn (operands
[
0
]
, virtual_stack_dynamic_rtx);
DONE;
}
...
...
@@ -3494,8 +3496,8 @@
rtx memref;
#if 1
emit_insn
(gen_movsi
(tmp, operands
[
1
]
));
emit_insn
(gen_movsi
(step, GEN_INT(STACK_UNITS_MAXSTEP)));
emit_insn
(gen_movsi
(tmp, operands
[
1
]
));
emit_insn
(gen_movsi
(step, GEN_INT(STACK_UNITS_MAXSTEP)));
if (GET_CODE (operands[1]) != CONST_INT)
{
...
...
@@ -3522,14 +3524,14 @@
emit_label (out_label);
/* bump the residual */
emit_insn
(gen_subsi3
(stack_pointer_rtx, stack_pointer_rtx, tmp));
emit_insn
(gen_subsi3
(stack_pointer_rtx, stack_pointer_rtx, tmp));
;; emit_move_insn (operands
[
0
]
, virtual_stack_dynamic_rtx);
DONE;
#else
/
*
simple one-shot -- ensure register and do a subtract.
*
this does NOT comply with the ABI.
*
/
emit_insn
(gen_movsi
(tmp, operands
[
1
]
));
emit_insn
(gen_subsi3
(stack_pointer_rtx, stack_pointer_rtx, tmp));
emit_insn
(gen_movsi
(tmp, operands
[
1
]
));
emit_insn
(gen_subsi3
(stack_pointer_rtx, stack_pointer_rtx, tmp));
;; emit_move_insn (operands
[
0
]
, virtual_stack_dynamic_rtx);
DONE;
#endif
...
...
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