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
4c64a852
Commit
4c64a852
authored
May 31, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_block_move): Don't pass argument of # bytes to increment
pointers by to movstrsi expanders. From-SVN: r9856
parent
3c67b673
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
gcc/config/rs6000/rs6000.c
+11
-15
No files found.
gcc/config/rs6000/rs6000.c
View file @
4c64a852
...
...
@@ -720,8 +720,7 @@ expand_block_move (operands)
emit_insn
(
gen_movstrsi_8reg
(
dest_reg
,
src_reg
,
GEN_INT
((
move_bytes
==
32
)
?
0
:
move_bytes
),
align_rtx
,
GEN_INT
((
bytes
>
move_bytes
)
?
move_bytes
:
0
)));
align_rtx
));
}
else
if
(
bytes
>
16
/* move up to 24 bytes at a time */
&&
!
fixed_regs
[
7
]
...
...
@@ -735,8 +734,7 @@ expand_block_move (operands)
emit_insn
(
gen_movstrsi_6reg
(
dest_reg
,
src_reg
,
GEN_INT
(
move_bytes
),
align_rtx
,
GEN_INT
((
bytes
>
move_bytes
)
?
move_bytes
:
0
)));
align_rtx
));
}
else
if
(
bytes
>
8
/* move up to 16 bytes at a time */
&&
!
fixed_regs
[
9
]
...
...
@@ -748,8 +746,7 @@ expand_block_move (operands)
emit_insn
(
gen_movstrsi_4reg
(
dest_reg
,
src_reg
,
GEN_INT
(
move_bytes
),
align_rtx
,
GEN_INT
((
bytes
>
move_bytes
)
?
move_bytes
:
0
)));
align_rtx
));
}
else
if
(
bytes
>
4
&&
!
TARGET_64BIT
)
{
/* move up to 8 bytes at a time */
...
...
@@ -757,8 +754,7 @@ expand_block_move (operands)
emit_insn
(
gen_movstrsi_2reg
(
dest_reg
,
src_reg
,
GEN_INT
(
move_bytes
),
align_rtx
,
GEN_INT
((
bytes
>
move_bytes
)
?
move_bytes
:
0
)));
align_rtx
));
}
else
if
(
bytes
>=
4
&&
(
align
>=
4
||
!
STRICT_ALIGNMENT
))
{
/* move 4 bytes */
...
...
@@ -766,11 +762,6 @@ expand_block_move (operands)
tmp_reg
=
gen_reg_rtx
(
SImode
);
emit_move_insn
(
tmp_reg
,
gen_rtx
(
MEM
,
SImode
,
src_reg
));
emit_move_insn
(
gen_rtx
(
MEM
,
SImode
,
dest_reg
),
tmp_reg
);
if
(
bytes
>
move_bytes
)
{
emit_insn
(
gen_addsi3
(
src_reg
,
src_reg
,
GEN_INT
(
move_bytes
)));
emit_insn
(
gen_addsi3
(
dest_reg
,
dest_reg
,
GEN_INT
(
move_bytes
)));
}
}
else
if
(
bytes
==
2
&&
(
align
>=
2
||
!
STRICT_ALIGNMENT
))
{
/* move 2 bytes */
...
...
@@ -792,10 +783,15 @@ expand_block_move (operands)
emit_insn
(
gen_movstrsi_1reg
(
dest_reg
,
src_reg
,
GEN_INT
(
move_bytes
),
align_rtx
,
GEN_INT
((
bytes
>
move_bytes
)
?
move_bytes
:
0
)));
align_rtx
));
}
}
if
(
bytes
>
move_bytes
)
{
emit_insn
(
gen_addsi3
(
src_reg
,
src_reg
,
GEN_INT
(
move_bytes
)));
emit_insn
(
gen_addsi3
(
dest_reg
,
dest_reg
,
GEN_INT
(
move_bytes
)));
}
}
else
/* string instructions not available */
...
...
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