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
b6b12107
Commit
b6b12107
authored
Jun 15, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(divsi3): Fix divide by 2^N with compare RTL.
From-SVN: r7498
parent
f63184ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
gcc/config/rs6000/rs6000.md
+6
-4
No files found.
gcc/config/rs6000/rs6000.md
View file @
b6b12107
...
@@ -1254,8 +1254,9 @@
...
@@ -1254,8 +1254,9 @@
(define_insn ""
(define_insn ""
[
(set (match_operand:CC 0 "cc_reg_operand" "=x")
[
(set (match_operand:CC 0 "cc_reg_operand" "=x")
(div:SI (match_operand:SI 1 "gpc_reg_operand" "r")
(compare:CC (div:SI (match_operand:SI 1 "gpc_reg_operand" "r")
(match_operand:SI 2 "const_int_operand" "N")))
(match_operand:SI 2 "const_int_operand" "N"))
(const_int 0)))
(clobber (match_scratch:SI 3 "=r"))]
(clobber (match_scratch:SI 3 "=r"))]
"exact_log2 (INTVAL (operands
[
2
]
)) >= 0"
"exact_log2 (INTVAL (operands
[
2
]
)) >= 0"
"{srai|srawi} %3,%1,%p2
\;
{aze.|addze.} %3,%3"
"{srai|srawi} %3,%1,%p2
\;
{aze.|addze.} %3,%3"
...
@@ -1264,8 +1265,9 @@
...
@@ -1264,8 +1265,9 @@
(define_insn ""
(define_insn ""
[
(set (match_operand:CC 3 "cc_reg_operand" "=x")
[
(set (match_operand:CC 3 "cc_reg_operand" "=x")
(div:SI (match_operand:SI 1 "gpc_reg_operand" "r")
(compare:CC (div:SI (match_operand:SI 1 "gpc_reg_operand" "r")
(match_operand:SI 2 "const_int_operand" "N")))
(match_operand:SI 2 "const_int_operand" "N"))
(const_int 0)))
(set (match_operand:SI 0 "gpc_reg_operand" "=r")
(set (match_operand:SI 0 "gpc_reg_operand" "=r")
(div:SI (match_dup 1) (match_dup 2)))]
(div:SI (match_dup 1) (match_dup 2)))]
"exact_log2 (INTVAL (operands
[
2
]
)) >= 0"
"exact_log2 (INTVAL (operands
[
2
]
)) >= 0"
...
...
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