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
99f762bf
Commit
99f762bf
authored
Apr 26, 1995
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(truncdiqi2+[456]): Add patterns to simplify ZERO_EXTEND
of a TRUNCATE. From-SVN: r9478
parent
6ac34277
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
gcc/config/mips/mips.md
+32
-0
No files found.
gcc/config/mips/mips.md
View file @
99f762bf
...
...
@@ -2114,6 +2114,38 @@ move\\t%0,%z4\\n\\
(set_attr "mode" "SI")
(set_attr "length" "2")])
;; Combiner patterns to optimize truncate/zero_extend combinations.
(define_insn ""
[
(set (match_operand:SI 0 "register_operand" "=d")
(zero_extend:SI (truncate:HI
(match_operand:DI 1 "register_operand" "d"))))]
"TARGET_64BIT"
"andi
\\
t%0,%1,0xffff"
[
(set_attr "type" "darith")
(set_attr "mode" "SI")
(set_attr "length" "1")])
(define_insn ""
[
(set (match_operand:SI 0 "register_operand" "=d")
(zero_extend:SI (truncate:QI
(match_operand:DI 1 "register_operand" "d"))))]
"TARGET_64BIT"
"andi
\\
t%0,%1,0xff"
[
(set_attr "type" "darith")
(set_attr "mode" "SI")
(set_attr "length" "1")])
(define_insn ""
[
(set (match_operand:HI 0 "register_operand" "=d")
(zero_extend:HI (truncate:QI
(match_operand:DI 1 "register_operand" "d"))))]
"TARGET_64BIT"
"andi
\\
t%0,%1,0xff"
[
(set_attr "type" "darith")
(set_attr "mode" "HI")
(set_attr "length" "1")])
;;
;; ....................
;;
...
...
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