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
39b52ba2
Commit
39b52ba2
authored
Dec 11, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(modsi3): Correct error in last change.
From-SVN: r6212
parent
3eda169f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
gcc/config/rs6000/rs6000.md
+11
-5
No files found.
gcc/config/rs6000/rs6000.md
View file @
39b52ba2
...
...
@@ -765,15 +765,21 @@
[
(use (match_operand:SI 0 "gpc_reg_operand" ""))
(use (match_operand:SI 1 "gpc_reg_operand" ""))
(use (match_operand:SI 2 "const_int_operand" ""))]
"
exact_log2 (INTVAL (operands
[
2
]
)) >= 0
"
""
"
{
rtx temp1 = gen_reg_rtx (SImode);
rtx temp2 = gen_reg_rtx (SImode);
int i = exact_log2 (INTVAL (operands
[
2
]
));
rtx temp1;
rtx temp2;
if (i < 0)
FAIL;
temp1 = gen_reg_rtx (SImode);
temp2 = gen_reg_rtx (SImode);
emit_insn (gen_divsi3 (temp1, operands
[
1
]
, operands
[
2
]
));
emit_insn (gen_ashlsi3 (temp2, temp1,
GEN_INT (exact_log2 (INTVAL (operands
[
2
]
)))));
emit_insn (gen_ashlsi3 (temp2, temp1, GEN_INT (i)));
emit_insn (gen_subsi3 (operands
[
0
]
, operands
[
1
]
, temp2));
DONE;
...
...
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