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
3cce8bc6
Commit
3cce8bc6
authored
Apr 30, 1997
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(paradoxical_extendhidi2, paradoxical_extendqidi2): New patterns.
From-SVN: r13995
parent
ad4ff310
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
gcc/config/mips/mips.md
+30
-0
No files found.
gcc/config/mips/mips.md
View file @
3cce8bc6
...
...
@@ -2497,6 +2497,36 @@ move\\t%0,%z4\\n\\
(set_attr "mode" "DI")
(set_attr "length" "1,1,2")])
;; These can be created when a paradoxical subreg operand with an implicit
;; sign_extend operator is reloaded. Because of the subreg, this is really
;; a zero extend.
;; ??? It might be possible to eliminate the need for these patterns by adding
;; more support to reload for implicit sign_extend operators.
(define_insn "
*
paradoxical_extendhidi2"
[
(set (match_operand:DI 0 "register_operand" "=d,d")
(sign_extend:DI
(subreg:SI (match_operand:HI 1 "memory_operand" "R,m") 0)))]
"TARGET_64BIT"
"
*
{
return mips_move_1word (operands, insn, TRUE);
}"
[
(set_attr "type" "load,load")
(set_attr "mode" "DI")
(set_attr "length" "1,2")])
(define_insn "
*
paradoxical_extendqidi2"
[
(set (match_operand:DI 0 "register_operand" "=d,d")
(sign_extend:DI
(subreg:SI (match_operand:QI 1 "memory_operand" "R,m") 0)))]
"TARGET_64BIT"
"
*
{
return mips_move_1word (operands, insn, TRUE);
}"
[
(set_attr "type" "load,load")
(set_attr "mode" "DI")
(set_attr "length" "1,2")])
;;
;; ....................
...
...
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