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
bd83ff2c
Commit
bd83ff2c
authored
Mar 19, 2013
by
Ian Bolton
Committed by
Ian Bolton
Mar 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AArch64 backend support for EXTR instruction.
From-SVN: r196795
parent
ba65123c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
0 deletions
+37
-0
gcc/ChangeLog
+5
-0
gcc/config/aarch64/aarch64.md
+28
-0
gcc/testsuite/ChangeLog
+4
-0
No files found.
gcc/ChangeLog
View file @
bd83ff2c
2013-03-19 Ian Bolton <ian.bolton@arm.com>
* config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
(*extrsi5_insn_uxtw): Likewise.
2013-03-19 Richard Biener <rguenther@suse.de>
PR tree-optimization/56273
...
...
gcc/config/aarch64/aarch64.md
View file @
bd83ff2c
...
...
@@ -2703,6 +2703,34 @@
(set_attr "mode" "
<MODE>
")]
)
(define_insn "
*
extr
<mode>
5_insn"
[
(set (match_operand:GPI 0 "register_operand" "=r")
(ior:GPI (ashift:GPI (match_operand:GPI 1 "register_operand" "r")
(match_operand 3 "const_int_operand" "n"))
(lshiftrt:GPI (match_operand:GPI 2 "register_operand" "r")
(match_operand 4 "const_int_operand" "n"))))]
"UINTVAL (operands
[
3
]
)
<
GET
_MODE_BITSIZE
(<
MODE
>
mode) &&
(UINTVAL (operands
[
3
]
) + UINTVAL (operands
[
4
]
) == GET_MODE_BITSIZE (
<MODE>
mode))"
"extr
\\
t%
<w>
0, %
<w>
1, %
<w>
2, %4"
[
(set_attr "v8type" "shift")
(set_attr "mode" "
<MODE>
")]
)
;; zero_extend version of the above
(define_insn "
*
extrsi5_insn_uxtw"
[
(set (match_operand:DI 0 "register_operand" "=r")
(zero_extend:DI
(ior:SI (ashift:SI (match_operand:SI 1 "register_operand" "r")
(match_operand 3 "const_int_operand" "n"))
(lshiftrt:SI (match_operand:SI 2 "register_operand" "r")
(match_operand 4 "const_int_operand" "n")))))]
"UINTVAL (operands
[
3
]
) < 32 &&
(UINTVAL (operands
[
3
]
) + UINTVAL (operands
[
4
]
) == 32)"
"extr
\\
t%w0, %w1, %w2, %4"
[
(set_attr "v8type" "shift")
(set_attr "mode" "SI")]
)
(define_insn "
*
<ANY
_EXTEND:optab
><GPI:mode>
_ashl
<SHORT:mode>
"
[
(set (match_operand:GPI 0 "register_operand" "=r")
(ANY_EXTEND:GPI
...
...
gcc/testsuite/ChangeLog
View file @
bd83ff2c
2013-03-19 Ian Bolton <ian.bolton@arm.com>
* gcc.target/aarch64/extr.c: New test.
2013-03-19 Richard Biener <rguenther@suse.de>
PR tree-optimization/56273
...
...
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