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
94993909
Commit
94993909
authored
Feb 08, 2003
by
David Edelsohn
Committed by
David Edelsohn
Feb 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Add ctz patterns.
From-SVN: r62572
parent
d865b122
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
gcc/ChangeLog
+2
-0
gcc/config/rs6000/rs6000.h
+4
-1
gcc/config/rs6000/rs6000.md
+0
-1
No files found.
gcc/ChangeLog
View file @
94993909
...
...
@@ -2,8 +2,10 @@
*
config
/
rs6000
/
rs6000
.
h
(
CLZ_DEFINED_VALUE_AT_ZERO
)
:
Define
.
*
config
/
rs6000
/
rs6000
.
md
(
clzsi2
)
:
Rename
from
cntlzw2
.
(
ctzsi2
)
:
New
pattern
.
(
ffssi2
)
:
Use
clz
instead
of
unspec
.
(
clzdi2
)
:
Rename
from
cntlzd2
.
(
ctzdi2
)
:
New
pattern
.
(
ffsdi2
)
:
Use
clz
instead
of
unspec
.
2003
-
02
-
07
Loren
James
Rittle
<
ljrittle
@acm
.
org
>
...
...
gcc/config/rs6000/rs6000.h
View file @
94993909
...
...
@@ -2270,10 +2270,13 @@ do { \
is done just by pretending it is already truncated. */
#define TRULY_NOOP_TRUNCATION(OUTPREC, INPREC) 1
/* The cntlzw and cntlzd instructions return 32 and 64 for zero. */
/* The cntlzw and cntlzd instructions return 32 and 64 for
input of
zero. */
#define CLZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) \
((VALUE) = ((MODE) == SImode ? 32 : 64))
/* The CTZ patterns return -1 for input of zero. */
#define CTZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) ((VALUE) = -1)
/* Specify the machine mode that pointers have.
After generation of rtl, the compiler makes no further distinction
between pointers and any other objects of this machine mode. */
...
...
gcc/config/rs6000/rs6000.md
View file @
94993909
...
...
@@ -36,7 +36,6 @@
;; 16 macho_correct_pic
;; 19 movesi_from_cr
;; 20 movesi_to_cr
;; 21 cntlz{w,d}2 count lead zero word/double word
;; Define an insn type attribute. This is used in function unit delay
;; computations.
...
...
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