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
b30686ec
Commit
b30686ec
authored
Jan 21, 2003
by
Kazu Hirata
Committed by
Kazu Hirata
Jan 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/h8300/h8300.c (get_shift_alg): Remove redundant code.
From-SVN: r61529
parent
87608693
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
29 deletions
+8
-29
gcc/ChangeLog
+4
-0
gcc/config/h8300/h8300.c
+4
-29
No files found.
gcc/ChangeLog
View file @
b30686ec
2003
-
01
-
20
Kazu
Hirata
<
kazu
@cs
.
umass
.
edu
>
*
config
/
h8300
/
h8300
.
c
(
get_shift_alg
)
:
Remove
redundant
code
.
2003
-
01
-
20
Kaveh
R
.
Ghazi
<
ghazi
@caip
.
rutgers
.
edu
>
2003
-
01
-
20
Kaveh
R
.
Ghazi
<
ghazi
@caip
.
rutgers
.
edu
>
*
system
.
h
(
__NO_STRING_INLINES
)
:
Define
.
*
system
.
h
(
__NO_STRING_INLINES
)
:
Define
.
...
...
gcc/config/h8300/h8300.c
View file @
b30686ec
...
@@ -2802,7 +2802,8 @@ get_shift_alg (shift_type, shift_mode, count, info)
...
@@ -2802,7 +2802,8 @@ get_shift_alg (shift_type, shift_mode, count, info)
goto
end
;
goto
end
;
}
}
}
}
else
if
(
8
<=
count
&&
count
<=
13
)
else
if
((
8
<=
count
&&
count
<=
13
)
||
(
TARGET_H8300S
&
count
==
14
))
{
{
info
->
remainder
=
count
-
8
;
info
->
remainder
=
count
-
8
;
...
@@ -2827,7 +2828,6 @@ get_shift_alg (shift_type, shift_mode, count, info)
...
@@ -2827,7 +2828,6 @@ get_shift_alg (shift_type, shift_mode, count, info)
{
{
info
->
special
=
"mov.b
\t
%t0,%s0
\n\t
bld
\t
#7,%s0
\n\t
subx
\t
%t0,%t0"
;
info
->
special
=
"mov.b
\t
%t0,%s0
\n\t
bld
\t
#7,%s0
\n\t
subx
\t
%t0,%t0"
;
info
->
shift1
=
"shar.b
\t
%s0"
;
info
->
shift1
=
"shar.b
\t
%s0"
;
info
->
shift2
=
"shar.b
\t
#2,%s0"
;
}
}
else
else
{
{
...
@@ -2854,7 +2854,7 @@ get_shift_alg (shift_type, shift_mode, count, info)
...
@@ -2854,7 +2854,7 @@ get_shift_alg (shift_type, shift_mode, count, info)
else
if
(
TARGET_H8300H
)
else
if
(
TARGET_H8300H
)
info
->
special
=
"shll.b
\t
%t0
\n\t
subx.b
\t
%s0,%s0
\n\t
shll.b
\t
%t0
\n\t
rotxl.b
\t
%s0
\n\t
exts.w
\t
%T0"
;
info
->
special
=
"shll.b
\t
%t0
\n\t
subx.b
\t
%s0,%s0
\n\t
shll.b
\t
%t0
\n\t
rotxl.b
\t
%s0
\n\t
exts.w
\t
%T0"
;
else
/* TARGET_H8300S */
else
/* TARGET_H8300S */
info
->
special
=
"mov.b
\t
%t0,%s0
\n\t
exts.w
\t
%T0
\n\t
shar.w
\t
#2,%T0
\n\t
shar.w
\t
#2,%T0
\n\t
shar.w
\t
#2,%T0"
;
abort
()
;
goto
end
;
goto
end
;
}
}
}
}
...
@@ -2948,14 +2948,7 @@ get_shift_alg (shift_type, shift_mode, count, info)
...
@@ -2948,14 +2948,7 @@ get_shift_alg (shift_type, shift_mode, count, info)
case
SHIFT_ASHIFT
:
case
SHIFT_ASHIFT
:
info
->
special
=
"mov.w
\t
%f0,%e0
\n\t
sub.w
\t
%f0,%f0"
;
info
->
special
=
"mov.w
\t
%f0,%e0
\n\t
sub.w
\t
%f0,%f0"
;
if
(
TARGET_H8300
)
if
(
TARGET_H8300
)
{
info
->
shift1
=
"add.w
\t
%e0,%e0"
;
info
->
shift1
=
"add.w
\t
%e0,%e0"
;
}
else
{
info
->
shift1
=
"shll.l
\t
%S0"
;
info
->
shift2
=
"shll.l
\t
#2,%S0"
;
}
goto
end
;
goto
end
;
case
SHIFT_LSHIFTRT
:
case
SHIFT_LSHIFTRT
:
if
(
TARGET_H8300
)
if
(
TARGET_H8300
)
...
@@ -3010,18 +3003,12 @@ get_shift_alg (shift_type, shift_mode, count, info)
...
@@ -3010,18 +3003,12 @@ get_shift_alg (shift_type, shift_mode, count, info)
{
{
case
SHIFT_ASHIFT
:
case
SHIFT_ASHIFT
:
info
->
special
=
"mov.b
\t
%s0,%t0
\n\t
sub.b
\t
%s0,%s0
\n\t
mov.w
\t
%f0,%e0
\n\t
sub.w
\t
%f0,%f0"
;
info
->
special
=
"mov.b
\t
%s0,%t0
\n\t
sub.b
\t
%s0,%s0
\n\t
mov.w
\t
%f0,%e0
\n\t
sub.w
\t
%f0,%f0"
;
info
->
shift1
=
"shll.l
\t
%S0"
;
info
->
shift2
=
"shll.l
\t
#2,%S0"
;
goto
end
;
goto
end
;
case
SHIFT_LSHIFTRT
:
case
SHIFT_LSHIFTRT
:
info
->
special
=
"mov.w
\t
%e0,%f0
\n\t
mov.b
\t
%t0,%s0
\n\t
extu.w
\t
%f0
\n\t
extu.l
\t
%S0"
;
info
->
special
=
"mov.w
\t
%e0,%f0
\n\t
mov.b
\t
%t0,%s0
\n\t
extu.w
\t
%f0
\n\t
extu.l
\t
%S0"
;
info
->
shift1
=
"shlr.l
\t
%S0"
;
info
->
shift2
=
"shlr.l
\t
#2,%S0"
;
goto
end
;
goto
end
;
case
SHIFT_ASHIFTRT
:
case
SHIFT_ASHIFTRT
:
info
->
special
=
"mov.w
\t
%e0,%f0
\n\t
mov.b
\t
%t0,%s0
\n\t
exts.w
\t
%f0
\n\t
exts.l
\t
%S0"
;
info
->
special
=
"mov.w
\t
%e0,%f0
\n\t
mov.b
\t
%t0,%s0
\n\t
exts.w
\t
%f0
\n\t
exts.l
\t
%S0"
;
info
->
shift1
=
"shar.l
\t
%S0"
;
info
->
shift2
=
"shar.l
\t
#2,%S0"
;
goto
end
;
goto
end
;
}
}
}
}
...
@@ -3034,16 +3021,12 @@ get_shift_alg (shift_type, shift_mode, count, info)
...
@@ -3034,16 +3021,12 @@ get_shift_alg (shift_type, shift_mode, count, info)
info
->
special
=
"sub.w
\t
%e0,%e0
\n\t
rotr.l
\t
%S0
\n\t
rotr.l
\t
%S0
\n\t
rotr.l
\t
%S0
\n\t
rotr.l
\t
%S0
\n\t
sub.w
\t
%f0,%f0"
;
info
->
special
=
"sub.w
\t
%e0,%e0
\n\t
rotr.l
\t
%S0
\n\t
rotr.l
\t
%S0
\n\t
rotr.l
\t
%S0
\n\t
rotr.l
\t
%S0
\n\t
sub.w
\t
%f0,%f0"
;
else
else
info
->
special
=
"sub.w
\t
%e0,%e0
\n\t
rotr.l
\t
#2,%S0
\n\t
rotr.l
\t
#2,%S0
\n\t
sub.w
\t
%f0,%f0"
;
info
->
special
=
"sub.w
\t
%e0,%e0
\n\t
rotr.l
\t
#2,%S0
\n\t
rotr.l
\t
#2,%S0
\n\t
sub.w
\t
%f0,%f0"
;
info
->
shift1
=
""
;
info
->
shift2
=
""
;
goto
end
;
goto
end
;
case
SHIFT_LSHIFTRT
:
case
SHIFT_LSHIFTRT
:
if
(
TARGET_H8300H
)
if
(
TARGET_H8300H
)
info
->
special
=
"sub.w
\t
%f0,%f0
\n\t
rotl.l
\t
%S0
\n\t
rotl.l
\t
%S0
\n\t
rotl.l
\t
%S0
\n\t
rotl.l
\t
%S0
\n\t
extu.l
\t
%S0"
;
info
->
special
=
"sub.w
\t
%f0,%f0
\n\t
rotl.l
\t
%S0
\n\t
rotl.l
\t
%S0
\n\t
rotl.l
\t
%S0
\n\t
rotl.l
\t
%S0
\n\t
extu.l
\t
%S0"
;
else
else
info
->
special
=
"sub.w
\t
%f0,%f0
\n\t
rotl.l
\t
#2,%S0
\n\t
rotl.l
\t
#2,%S0
\n\t
extu.l
\t
%S0"
;
info
->
special
=
"sub.w
\t
%f0,%f0
\n\t
rotl.l
\t
#2,%S0
\n\t
rotl.l
\t
#2,%S0
\n\t
extu.l
\t
%S0"
;
info
->
shift1
=
""
;
info
->
shift2
=
""
;
goto
end
;
goto
end
;
case
SHIFT_ASHIFTRT
:
case
SHIFT_ASHIFTRT
:
abort
();
abort
();
...
@@ -3058,16 +3041,12 @@ get_shift_alg (shift_type, shift_mode, count, info)
...
@@ -3058,16 +3041,12 @@ get_shift_alg (shift_type, shift_mode, count, info)
info
->
special
=
"sub.w
\t
%e0,%e0
\n\t
rotr.l
\t
%S0
\n\t
rotr.l
\t
%S0
\n\t
rotr.l
\t
%S0
\n\t
sub.w
\t
%f0,%f0"
;
info
->
special
=
"sub.w
\t
%e0,%e0
\n\t
rotr.l
\t
%S0
\n\t
rotr.l
\t
%S0
\n\t
rotr.l
\t
%S0
\n\t
sub.w
\t
%f0,%f0"
;
else
else
info
->
special
=
"sub.w
\t
%e0,%e0
\n\t
rotr.l
\t
#2,%S0
\n\t
rotr.l
\t
%S0
\n\t
sub.w
\t
%f0,%f0"
;
info
->
special
=
"sub.w
\t
%e0,%e0
\n\t
rotr.l
\t
#2,%S0
\n\t
rotr.l
\t
%S0
\n\t
sub.w
\t
%f0,%f0"
;
info
->
shift1
=
""
;
info
->
shift2
=
""
;
goto
end
;
goto
end
;
case
SHIFT_LSHIFTRT
:
case
SHIFT_LSHIFTRT
:
if
(
TARGET_H8300H
)
if
(
TARGET_H8300H
)
info
->
special
=
"sub.w
\t
%f0,%f0
\n\t
rotl.l
\t
%S0
\n\t
rotl.l
\t
%S0
\n\t
rotl.l
\t
%S0
\n\t
extu.l
\t
%S0"
;
info
->
special
=
"sub.w
\t
%f0,%f0
\n\t
rotl.l
\t
%S0
\n\t
rotl.l
\t
%S0
\n\t
rotl.l
\t
%S0
\n\t
extu.l
\t
%S0"
;
else
else
info
->
special
=
"sub.w
\t
%f0,%f0
\n\t
rotl.l
\t
#2,%S0
\n\t
rotl.l
\t
%S0
\n\t
extu.l
\t
%S0"
;
info
->
special
=
"sub.w
\t
%f0,%f0
\n\t
rotl.l
\t
#2,%S0
\n\t
rotl.l
\t
%S0
\n\t
extu.l
\t
%S0"
;
info
->
shift1
=
""
;
info
->
shift2
=
""
;
goto
end
;
goto
end
;
case
SHIFT_ASHIFTRT
:
case
SHIFT_ASHIFTRT
:
abort
();
abort
();
...
@@ -3082,16 +3061,12 @@ get_shift_alg (shift_type, shift_mode, count, info)
...
@@ -3082,16 +3061,12 @@ get_shift_alg (shift_type, shift_mode, count, info)
info
->
special
=
"sub.w
\t
%e0,%e0
\n\t
rotr.l
\t
%S0
\n\t
rotr.l
\t
%S0
\n\t
sub.w
\t
%f0,%f0"
;
info
->
special
=
"sub.w
\t
%e0,%e0
\n\t
rotr.l
\t
%S0
\n\t
rotr.l
\t
%S0
\n\t
sub.w
\t
%f0,%f0"
;
else
else
info
->
special
=
"sub.w
\t
%e0,%e0
\n\t
rotr.l
\t
#2,%S0
\n\t
sub.w
\t
%f0,%f0"
;
info
->
special
=
"sub.w
\t
%e0,%e0
\n\t
rotr.l
\t
#2,%S0
\n\t
sub.w
\t
%f0,%f0"
;
info
->
shift1
=
""
;
info
->
shift2
=
""
;
goto
end
;
goto
end
;
case
SHIFT_LSHIFTRT
:
case
SHIFT_LSHIFTRT
:
if
(
TARGET_H8300H
)
if
(
TARGET_H8300H
)
info
->
special
=
"sub.w
\t
%f0,%f0
\n\t
rotl.l
\t
%S0
\n\t
rotl.l
\t
%S0
\n\t
extu.l
\t
%S0"
;
info
->
special
=
"sub.w
\t
%f0,%f0
\n\t
rotl.l
\t
%S0
\n\t
rotl.l
\t
%S0
\n\t
extu.l
\t
%S0"
;
else
else
info
->
special
=
"sub.w
\t
%f0,%f0
\n\t
rotl.l
\t
#2,%S0
\n\t
extu.l
\t
%S0"
;
info
->
special
=
"sub.w
\t
%f0,%f0
\n\t
rotl.l
\t
#2,%S0
\n\t
extu.l
\t
%S0"
;
info
->
shift1
=
""
;
info
->
shift2
=
""
;
goto
end
;
goto
end
;
case
SHIFT_ASHIFTRT
:
case
SHIFT_ASHIFTRT
:
abort
();
abort
();
...
...
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