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
79c6bb5f
Commit
79c6bb5f
authored
Dec 04, 2014
by
Ganesh Gopalasubramanian
Committed by
Ganesh Gopalasubramanian
Dec 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add prefetch support for aarch64
From-SVN: r218349
parent
8495b8f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
gcc/ChangeLog
+4
-0
gcc/config/aarch64/aarch64.md
+27
-0
No files found.
gcc/ChangeLog
View file @
79c6bb5f
2014
-
12
-
04
Ganesh
Gopalasubramanian
<
Ganesh
.
Gopalasubramanian
@
amd
.
com
>
*
config
/
aarch64
/
aarch64
.
md
(
define_insn
"prefetch"
):
New
.
2014
-
12
-
04
Francois
-
Xavier
Coudert
<
fxcoudert
@
gcc
.
gnu
.
org
>
*
doc
/
install
.
texi
:
Remove
mentions
of
cloog
and
ppl
.
gcc/config/aarch64/aarch64.md
View file @
79c6bb5f
...
...
@@ -375,6 +375,33 @@
[
(set_attr "type" "no_insn")
]
)
(define_insn "prefetch"
[
(prefetch (match_operand:DI 0 "address_operand" "r")
(match_operand:QI 1 "const_int_operand" "")
(match_operand:QI 2 "const_int_operand" ""))]
""
{
const char
*
pftype
[
2
][
4
]
=
{
{"prfm
\\
tPLDL1STRM, %a0",
"prfm
\\
tPLDL3KEEP, %a0",
"prfm
\\
tPLDL2KEEP, %a0",
"prfm
\\
tPLDL1KEEP, %a0"},
{"prfm
\\
tPSTL1STRM, %a0",
"prfm
\\
tPSTL3KEEP, %a0",
"prfm
\\
tPSTL2KEEP, %a0",
"prfm
\\
tPSTL1KEEP, %a0"},
};
int locality = INTVAL (operands[2]);
gcc_assert (IN_RANGE (locality, 0, 3));
return pftype[INTVAL(operands[1])][locality];
}
[
(set_attr "type" "load1")
]
)
(define_insn "trap"
[
(trap_if (const_int 1) (const_int 8))
]
""
...
...
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