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
0cebb05d
Commit
0cebb05d
authored
Apr 10, 1992
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r719
parent
371ffa39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
2 deletions
+36
-2
gcc/config/mips/mips.c
+36
-2
No files found.
gcc/config/mips/mips.c
View file @
0cebb05d
...
...
@@ -1951,6 +1951,7 @@ output_block_move (insn, operands, num_regs)
int
align
=
INTVAL
(
operands
[
3
]);
int
num
=
0
;
int
offset
=
0
;
int
use_lwl_lwr
=
FALSE
;
int
i
;
rtx
xoperands
[
10
];
...
...
@@ -2013,6 +2014,23 @@ output_block_move (insn, operands, num_regs)
bytes
-=
UNITS_PER_WORD
;
}
else
if
(
bytes
>=
UNITS_PER_WORD
&&
TARGET_GAS
)
{
#if BYTES_BIG_ENDIAN
load_store
[
num
].
load
=
"lwl
\t
%0,%1
\n\t
lwr
\t
%0,%2"
;
load_store
[
num
].
load_nop
=
"lwl
\t
%0,%1
\n\t
lwr
\t
%0,%2%#"
;
load_store
[
num
].
store
=
"swl
\t
%0,%1
\n\t
swr
\t
%0,%2"
;
#else
load_store
[
num
].
load
=
"lwl
\t
%0,%2
\n\t
lwr
\t
%0,%1"
;
load_store
[
num
].
load_nop
=
"lwl
\t
%0,%2
\n\t
lwr
\t
%0,%1%#"
;
load_store
[
num
].
store
=
"swl
\t
%0,%2
\n\t
swr
\t
%0,%1"
;
#endif
load_store
[
num
].
mode
=
SImode
;
offset
+=
UNITS_PER_WORD
;
bytes
-=
UNITS_PER_WORD
;
use_lwl_lwr
=
TRUE
;
}
else
if
(
bytes
>=
UNITS_PER_WORD
)
{
load_store
[
num
].
load
=
"ulw
\t
%0,%1"
;
...
...
@@ -2067,27 +2085,43 @@ output_block_move (insn, operands, num_regs)
for
(
i
=
0
;
i
<
num
;
i
++
)
{
int
offset
;
if
(
!
operands
[
i
+
4
])
abort
();
if
(
GET_MODE
(
operands
[
i
+
4
])
!=
load_store
[
i
].
mode
)
operands
[
i
+
4
]
=
gen_rtx
(
REG
,
load_store
[
i
].
mode
,
REGNO
(
operands
[
i
+
4
]));
offset
=
load_store
[
i
].
offset
;
xoperands
[
0
]
=
operands
[
i
+
4
];
xoperands
[
1
]
=
gen_rtx
(
MEM
,
load_store
[
i
].
mode
,
plus_constant
(
src_reg
,
load_store
[
i
].
offset
));
plus_constant
(
src_reg
,
offset
));
if
(
use_lwl_lwr
)
xoperands
[
2
]
=
gen_rtx
(
MEM
,
load_store
[
i
].
mode
,
plus_constant
(
src_reg
,
UNITS_PER_WORD
-
1
+
offset
));
output_asm_insn
(
load_store
[
i
].
load
,
xoperands
);
}
for
(
i
=
0
;
i
<
num
;
i
++
)
{
int
offset
=
load_store
[
i
].
offset
;
xoperands
[
0
]
=
operands
[
i
+
4
];
xoperands
[
1
]
=
gen_rtx
(
MEM
,
load_store
[
i
].
mode
,
plus_constant
(
dest_reg
,
load_store
[
i
].
offset
));
plus_constant
(
dest_reg
,
offset
));
if
(
use_lwl_lwr
)
xoperands
[
2
]
=
gen_rtx
(
MEM
,
load_store
[
i
].
mode
,
plus_constant
(
dest_reg
,
UNITS_PER_WORD
-
1
+
offset
));
output_asm_insn
(
load_store
[
i
].
store
,
xoperands
);
}
num
=
0
;
/* reset load_store */
use_lwl_lwr
=
FALSE
;
/* reset whether or not we used lwl/lwr */
}
}
...
...
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