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
5e922d66
Commit
5e922d66
authored
Jan 26, 2006
by
Adam Nemet
Committed by
Adam Nemet
Jan 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/mips/mips.md (*clear_upper32): New combiner pattern.
From-SVN: r110250
parent
0a484e3e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
gcc/ChangeLog
+4
-0
gcc/config/mips/mips.md
+25
-0
No files found.
gcc/ChangeLog
View file @
5e922d66
2006-01-26 Adam Nemet <anemet@caviumnetworks.com>
* config/mips/mips.md (*clear_upper32): New combiner pattern.
2006-01-26 Richard Earnshaw <richard.earnshaw@arm.com>
* arm.md (smaxsi3, sminsi3): Convert to define_expand.
...
...
gcc/config/mips/mips.md
View file @
5e922d66
...
...
@@ -2332,6 +2332,31 @@
(set_attr "mode" "DI")
(set_attr "length" "8,
*
")])
;; Combine is not allowed to convert this insn into a zero_extendsidi2
;; because of TRULY_NOOP_TRUNCATION.
(define_insn_and_split "
*
clear_upper32"
[
(set (match_operand:DI 0 "register_operand" "=d,d")
(and:DI (match_operand:DI 1 "nonimmediate_operand" "d,o")
(const_int 4294967295)))]
"TARGET_64BIT"
{
if (which_alternative == 0)
return "#";
operands
[
1
]
= gen_lowpart (SImode, operands
[
1
]
);
return "lwu
\t
%0,%1";
}
"&& reload_completed && REG_P (operands
[
1
]
)"
[
(set (match_dup 0)
(ashift:DI (match_dup 1) (const_int 32)))
(set (match_dup 0)
(lshiftrt:DI (match_dup 0) (const_int 32)))]
""
[
(set_attr "type" "multi,load")
(set_attr "mode" "DI")
(set_attr "length" "8,
*
")])
(define_expand "zero_extend
<SHORT:mode><GPR:mode>
2"
[
(set (match_operand:GPR 0 "register_operand")
(zero_extend:GPR (match_operand:SHORT 1 "nonimmediate_operand")))]
...
...
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