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
3c9b2130
Commit
3c9b2130
authored
Jun 28, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(andsi3+6): Replace bad clrbit pattern with two working ones.
From-SVN: r7585
parent
3bbbf89c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
gcc/config/i960/i960.md
+13
-2
No files found.
gcc/config/i960/i960.md
View file @
3c9b2130
...
@@ -1657,14 +1657,25 @@
...
@@ -1657,14 +1657,25 @@
return
\"
clrbit %2,%1,%0
\"
;
return
\"
clrbit %2,%1,%0
\"
;
}")
}")
;; (not (ashift 1 reg)) canonicalizes to (rotate -2 reg)
(define_insn ""
(define_insn ""
[
(set (match_operand:SI 0 "register_operand" "=d")
[
(set (match_operand:SI 0 "register_operand" "=d")
(and:SI (
ashift:SI (const_int 1
)
(and:SI (
rotate:SI (const_int -2
)
(match_operand:SI 1 "register_operand" "d"))
(match_operand:SI 1 "register_operand" "d"))
(match_operand:SI 2 "
arith_operand" "dI
")))]
(match_operand:SI 2 "
register_operand" "d
")))]
""
""
"clrbit %1,%2,%0")
"clrbit %1,%2,%0")
;; The above pattern canonicalizes to this when both the input and output
;; are the same pseudo-register.
(define_insn ""
[
(set (zero_extract:SI (match_operand:SI 0 "register_operand" "=d")
(const_int 1)
(match_operand:SI 1 "register_operand" "d"))
(const_int 0))]
""
"clrbit %1,%0,%0")
(define_insn ""
(define_insn ""
[
(set (match_operand:SI 0 "register_operand" "=d")
[
(set (match_operand:SI 0 "register_operand" "=d")
(xor:SI (match_operand:SI 1 "arith_operand" "dI")
(xor:SI (match_operand:SI 1 "arith_operand" "dI")
...
...
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