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
e6bcfef9
Commit
e6bcfef9
authored
Jun 10, 1998
by
Juha Sarlin
Committed by
Jeff Law
Jun 09, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* h8300.c (get_shift_alg): Add special cases for shifts of 8 and 24.
From-SVN: r20396
parent
9d932d43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
1 deletions
+41
-1
gcc/ChangeLog
+4
-0
gcc/config/h8300/h8300.c
+37
-1
No files found.
gcc/ChangeLog
View file @
e6bcfef9
Wed Jun 10 01:39:00 1998 Juha Sarlin <juha@c3l.tyreso.se>
* h8300.c (get_shift_alg): Add special cases for shifts of 8 and 24.
Tue Jun 9 22:05:34 1998 Richard Henderson <rth@cygnus.com>
* fold-const.c (fold): Even with otherwise constant trees, look for
...
...
gcc/config/h8300/h8300.c
View file @
e6bcfef9
/* Subroutines for insn-output.c for Hitachi H8/300.
Copyright (C) 1992, 93, 94, 95, 96,
1997
Free Software Foundation, Inc.
Copyright (C) 1992, 93, 94, 95, 96,
97, 1998
Free Software Foundation, Inc.
Contributed by Steve Chamberlain (sac@cygnus.com),
Jim Wilson (wilson@cygnus.com), and Doug Evans (dje@cygnus.com).
...
...
@@ -2378,6 +2378,24 @@ get_shift_alg (cpu, shift_type, mode, count, assembler_p,
return
SHIFT_SPECIAL
;
}
}
else
if
(
count
==
8
&&
!
TARGET_H8300
)
{
switch
(
shift_type
)
{
case
SHIFT_ASHIFT
:
*
assembler_p
=
"mov.w
\t
%e0,%f4
\n\t
mov.b
\t
%s4,%t4
\n\t
mov.b
\t
%t0,%s4
\n\t
mov.b
\t
%s0,%t0
\n\t
sub.b
\t
%s0,%s0
\n\t
mov.w
\t
%f4,%e0"
;
*
cc_valid_p
=
0
;
return
SHIFT_SPECIAL
;
case
SHIFT_LSHIFTRT
:
*
assembler_p
=
"mov.w
\t
%e0,%f4
\n\t
mov.b
\t
%t0,%s0
\n\t
mov.b
\t
%s4,%t0
\n\t
mov.b
\t
%t4,%s4
\n\t
extu.w
\t
%f4
\n\t
mov.w
\t
%f4,%e0"
;
*
cc_valid_p
=
0
;
return
SHIFT_SPECIAL
;
case
SHIFT_ASHIFTRT
:
*
assembler_p
=
"mov.w
\t
%e0,%f4
\n\t
mov.b
\t
%t0,%s0
\n\t
mov.b
\t
%s4,%t0
\n\t
mov.b
\t
%t4,%s4
\n\t
exts.w
\t
%f4
\n\t
mov.w
\t
%f4,%e0"
;
*
cc_valid_p
=
0
;
return
SHIFT_SPECIAL
;
}
}
else
if
(
count
==
16
)
{
switch
(
shift_type
)
...
...
@@ -2489,6 +2507,24 @@ get_shift_alg (cpu, shift_type, mode, count, assembler_p,
return
SHIFT_SPECIAL
;
}
}
else
if
(
count
==
24
&&
!
TARGET_H8300
)
{
switch
(
shift_type
)
{
case
SHIFT_ASHIFT
:
*
assembler_p
=
"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"
;
*
cc_valid_p
=
0
;
return
SHIFT_SPECIAL
;
case
SHIFT_LSHIFTRT
:
*
assembler_p
=
"mov.w
\t
%e0,%f0
\n\t
mov.b
\t
%t0,%s0
\n\t
extu.w
\t
%f0
\n\t
extu.l
\t
%S0"
;
*
cc_valid_p
=
0
;
return
SHIFT_SPECIAL
;
case
SHIFT_ASHIFTRT
:
*
assembler_p
=
"mov.w
\t
%e0,%f0
\n\t
mov.b
\t
%t0,%s0
\n\t
exts.w
\t
%f0
\n\t
exts.l
\t
%S0"
;
*
cc_valid_p
=
0
;
return
SHIFT_SPECIAL
;
}
}
else
if
(
count
>=
28
&&
count
<=
30
&&
!
TARGET_H8300
)
{
if
(
shift_type
==
SHIFT_ASHIFTRT
)
...
...
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