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
477d303f
Commit
477d303f
authored
Aug 18, 2000
by
Ray Essick
Committed by
Nick Clifton
Aug 18, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only allow allow rotations by a constant amount.
Do not generate ROTL instruction. From-SVN: r35797
parent
7d2950e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
8 deletions
+23
-8
gcc/ChangeLog
+5
-0
gcc/config/mcore/mcore.md
+18
-8
No files found.
gcc/ChangeLog
View file @
477d303f
2000-08-18 Ray Essick <essick@ddna.labs.mot.com> & Nick Clifton <nickc@redhat.com>
* config/mcore/mcore.md (rotlsi3): Allow allow rotations by a
constant amount. Do not generate ROTL instruction.
Fri Aug 18 16:22:20 2000 Alexandre Oliva <aoliva@redhat.com>
* config/sh/elf.h: Do not include sh/sh.h.
...
...
gcc/config/mcore/mcore.md
View file @
477d303f
...
...
@@ -505,15 +505,25 @@
;; Shifts and rotates
;; -------------------------------------------------------------------------
;;; ??? The reg case may never match.
(define_insn "rotlsi3"
[
(set (match_operand:SI 0 "mcore_arith_reg_operand" "=r,r")
(rotate:SI (match_operand:SI 1 "mcore_arith_reg_operand" "0,0")
(match_operand:SI 2 "mcore_arith_K_operand_not_0" "r,K")))]
;; Only allow these if the shift count is a convenient constant.
(define_expand "rotlsi3"
[
(set (match_operand:SI 0 "mcore_arith_reg_operand" "")
(rotate:SI (match_operand:SI 1 "mcore_arith_reg_operand" "")
(match_operand:SI 2 "nonmemory_operand" "")))]
""
"if (! mcore_literal_K_operand (operands
[
2
]
, SImode))
FAIL;
")
;; We can only do constant rotates, which is what this pattern provides.
;; The combiner will put it together for us when we do:
;; (x
<
<
N
)
|
(
x
>
> (32 - N))
(define_insn ""
[
(set (match_operand:SI 0 "mcore_arith_reg_operand" "=r")
(rotate:SI (match_operand:SI 1 "mcore_arith_reg_operand" "0")
(match_operand:SI 2 "mcore_literal_K_operand" "K")))]
""
"@
rotl %0,%2
rotli %0,%2"
"rotli %0,%2"
[
(set_attr "type" "shift")
]
)
(define_insn "ashlsi3"
...
...
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