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
23cb454a
Commit
23cb454a
authored
Dec 16, 2000
by
Richard Kenner
Committed by
Richard Kenner
Dec 16, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* expmed.c (expand_mult): Write REG_EQUAL note with proper mode.
From-SVN: r38306
parent
3244472d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
gcc/ChangeLog
+4
-0
gcc/expmed.c
+12
-2
No files found.
gcc/ChangeLog
View file @
23cb454a
Sat Dec 16 10:41:11 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* expmed.c (expand_mult): Write REG_EQUAL note with proper mode.
2000-12-16 Neil Booth <neil@daikokuya.demon.co.uk>
* tradcpp.c: T_WARNING: New.
...
...
gcc/expmed.c
View file @
23cb454a
...
...
@@ -2401,6 +2401,7 @@ expand_mult (mode, op0, op1, target, unsignedp)
/* We found something cheaper than a multiply insn. */
int
opno
;
rtx
accum
,
tem
;
enum
machine_mode
nmode
;
op0
=
protect_from_queue
(
op0
,
0
);
...
...
@@ -2505,12 +2506,21 @@ expand_mult (mode, op0, op1, target, unsignedp)
}
/* Write a REG_EQUAL note on the last insn so that we can cse
multiplication sequences. */
multiplication sequences. Note that if ACCUM is a SUBREG,
we've set the inner register and must properly indicate
that. */
tem
=
op0
,
nmode
=
mode
;
if
(
GET_CODE
(
accum
)
==
SUBREG
)
{
nmode
=
GET_MODE
(
SUBREG_REG
(
accum
));
tem
=
gen_lowpart
(
nmode
,
op0
);
}
insn
=
get_last_insn
();
set_unique_reg_note
(
insn
,
REG_EQUAL
,
gen_rtx_MULT
(
mode
,
op0
,
gen_rtx_MULT
(
nmode
,
tem
,
GEN_INT
(
val_so_far
)));
}
...
...
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