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
3f07e47a
Commit
3f07e47a
authored
Feb 26, 1992
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r359
parent
1eb9bc80
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
gcc/config/sparc/sparc.md
+10
-3
gcc/unroll.c
+10
-1
No files found.
gcc/config/sparc/sparc.md
View file @
3f07e47a
...
...
@@ -790,11 +790,11 @@
else if (GET_CODE (op1) == CONST_DOUBLE)
{
operands
[
0
]
= operand_subword (op0, 1, 0, DImode);
operands
[
1
]
= gen_rtx (CONST_INT, VOIDmode, CONST_DOUBLE_
HIGH
(op1));
operands
[
1
]
= gen_rtx (CONST_INT, VOIDmode, CONST_DOUBLE_
LOW
(op1));
output_asm_insn (
\"
sethi %%hi(%a1),%0
\"
, operands);
operands[0] = operand_subword (op0, 0, 0, DImode);
operands[1] = gen_rtx (CONST_INT, VOIDmode, CONST_DOUBLE_
LOW
(op1));
operands[1] = gen_rtx (CONST_INT, VOIDmode, CONST_DOUBLE_
HIGH
(op1));
output_asm_insn (singlemove_string (operands), operands);
}
else
...
...
@@ -824,7 +824,14 @@
(lo_sum:DI (match_operand:DI 1 "register_operand" "r")
(match_operand:DI 2 "immediate_operand" "in")))]
""
"or %R1,%%lo(%a2),%R0"
"
*
{
/
*
Don't output a 64 bit constant, since we can't trust the assembler to
handle it correctly.
*
/
if (GET_CODE (operands
[
2
]
) == CONST_DOUBLE)
operands
[
2
]
= gen_rtx (CONST_INT, VOIDmode, CONST_DOUBLE_LOW (operands
[
2
]
));
return
\"
or %R1,%%lo(%a2),%R0
\"
;
}"
;; Need to set length for this arith insn because operand2
;; is not an "arith_operand".
[
(set_attr "length" "1")
]
)
...
...
gcc/unroll.c
View file @
3f07e47a
...
...
@@ -1461,8 +1461,10 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration,
for
(
tv
=
bl
->
giv
;
tv
;
tv
=
tv
->
next_iv
)
if
(
tv
->
giv_type
==
DEST_ADDR
&&
tv
->
same
==
v
)
{
/* Increment the giv by the amount that was calculated in
find_splittable_givs, and saved in add_val. */
tv
->
dest_reg
=
plus_constant
(
tv
->
dest_reg
,
INTVAL
(
giv_inc
));
INTVAL
(
tv
->
add_val
));
*
tv
->
location
=
tv
->
dest_reg
;
if
(
last_iteration
&&
unroll_type
!=
UNROLL_COMPLETELY
)
...
...
@@ -2597,6 +2599,13 @@ find_splittable_givs (bl, unroll_type, loop_start, loop_end, increment,
}
}
/* Overwrite the old add_val, which is no longer needed, and
substitute the amount that the giv is incremented on each
iteration. We need to save this somewhere, so we know how
much to increment split DEST_ADDR giv's in copy_loop_body. */
v
->
add_val
=
giv_inc
;
if
(
loop_dump_stream
)
fprintf
(
loop_dump_stream
,
"DEST_ADDR giv being split.
\n
"
);
}
...
...
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