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
160a655e
Commit
160a655e
authored
Oct 13, 1998
by
Jeffrey A Law
Committed by
Jeff Law
Oct 13, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mn10200.md (addsi3, subsi3, negsi2): Only allow register operands.
From-SVN: r23055
parent
c84e2712
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
gcc/ChangeLog
+2
-0
gcc/config/mn10200/mn10200.md
+10
-10
No files found.
gcc/ChangeLog
View file @
160a655e
...
@@ -130,6 +130,8 @@ Tue Oct 13 11:37:45 1998 Nick Clifton <nickc@cygnus.com>
...
@@ -130,6 +130,8 @@ Tue Oct 13 11:37:45 1998 Nick Clifton <nickc@cygnus.com>
Tue
Oct
13
11
:
24
:
51
1998
Jeffrey
A
Law
(
law
@cygnus
.
com
)
Tue
Oct
13
11
:
24
:
51
1998
Jeffrey
A
Law
(
law
@cygnus
.
com
)
*
mn10200
.
md
(
addsi3
,
subsi3
,
negsi2
)
:
Only
allow
register
operands
.
*
collect2
.
c
(
main
)
:
Pass
-
EL
/-
EB
through
to
the
compiler
.
*
collect2
.
c
(
main
)
:
Pass
-
EL
/-
EB
through
to
the
compiler
.
1998
-
10
-
12
Herman
A
.
J
.
ten
Brugge
<
Haj
.
Ten
.
Brugge
@net
.
HCC
.
nl
>
1998
-
10
-
12
Herman
A
.
J
.
ten
Brugge
<
Haj
.
Ten
.
Brugge
@net
.
HCC
.
nl
>
...
...
gcc/config/mn10200/mn10200.md
View file @
160a655e
...
@@ -372,9 +372,9 @@
...
@@ -372,9 +372,9 @@
;; So we call out to a library routine to perform 32bit add or
;; So we call out to a library routine to perform 32bit add or
;; subtract operations.
;; subtract operations.
(define_expand "addsi3"
(define_expand "addsi3"
[
(set (match_operand:SI 0 "
general
_operand" "")
[
(set (match_operand:SI 0 "
register
_operand" "")
(plus:SI (match_operand:SI 1 "
general
_operand" "")
(plus:SI (match_operand:SI 1 "
register
_operand" "")
(match_operand:SI 2 "
general
_operand" "")))]
(match_operand:SI 2 "
register
_operand" "")))]
""
""
"
"
{
{
...
@@ -413,8 +413,8 @@
...
@@ -413,8 +413,8 @@
}")
}")
(define_insn "addsi3_const"
(define_insn "addsi3_const"
[
(set (match_operand:SI 0 "
general
_operand" "=d")
[
(set (match_operand:SI 0 "
register
_operand" "=d")
(plus:SI (match_operand:SI 1 "
general
_operand" "0")
(plus:SI (match_operand:SI 1 "
register
_operand" "0")
(match_operand:SI 2 "const_int_operand" "i")))
(match_operand:SI 2 "const_int_operand" "i")))
(clobber (match_scratch:SI 3 "=&d"))]
(clobber (match_scratch:SI 3 "=&d"))]
""
""
...
@@ -459,9 +459,9 @@
...
@@ -459,9 +459,9 @@
[
(set_attr "cc" "set_zn")
]
)
[
(set_attr "cc" "set_zn")
]
)
(define_expand "subsi3"
(define_expand "subsi3"
[
(set (match_operand:SI 0 "
general
_operand" "")
[
(set (match_operand:SI 0 "
register
_operand" "")
(minus:SI (match_operand:SI 1 "
general
_operand" "")
(minus:SI (match_operand:SI 1 "
register
_operand" "")
(match_operand:SI 2 "
general
_operand" "")))]
(match_operand:SI 2 "
register
_operand" "")))]
""
""
"
"
{
{
...
@@ -523,8 +523,8 @@
...
@@ -523,8 +523,8 @@
;; data register pair has proven to be the most efficient
;; data register pair has proven to be the most efficient
;; and most compact way to represent negsi2.
;; and most compact way to represent negsi2.
(define_insn "negsi2"
(define_insn "negsi2"
[
(set (match_operand:SI 0 "
general
_operand" "=d")
[
(set (match_operand:SI 0 "
register
_operand" "=d")
(neg:SI (match_operand:SI 1 "
general
_operand" "0")))]
(neg:SI (match_operand:SI 1 "
register
_operand" "0")))]
""
""
"jsr ___negsi2_%0"
"jsr ___negsi2_%0"
[
(set_attr "cc" "clobber")
]
)
[
(set_attr "cc" "clobber")
]
)
...
...
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