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
dc577ada
Commit
dc577ada
authored
Mar 12, 1993
by
James Van Artsdalen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(movM): If REG_WAS_0, make sure the reg hasn't changed since then.
From-SVN: r3712
parent
9516a9af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
gcc/config/tahoe/tahoe.md
+8
-4
gcc/config/vax/vax.md
+9
-3
No files found.
gcc/config/tahoe/tahoe.md
View file @
dc577ada
...
...
@@ -57,9 +57,11 @@
rtx link;
if (operands
[
1
]
== const1_rtx
&& (link = find_reg_note (insn, REG_WAS_0, 0))
&& !
XEXP (link, 0)->volatil
&& !
INSN_DELETED_P (XEXP (link, 0))
&& GET_CODE (XEXP (link, 0)) != NOTE
&& no_labels_between_p (XEXP (link, 0), insn))
&& no_labels_between_p (XEXP (link, 0), insn)
/
* Make sure the reg hasn't been clobbered. *
/
&& ! reg_set_between_p (operands
[
0
]
, XEXP (link, 0), insn))
return
\"
incl %0
\"
;
if (GET_CODE (operands
[
1
]
) == SYMBOL_REF || GET_CODE (operands
[
1
]
) == CONST)
{
...
...
@@ -86,9 +88,11 @@
rtx link;
if (operands
[
1
]
== const1_rtx
&& (link = find_reg_note (insn, REG_WAS_0, 0))
&& !
XEXP (link, 0)->volatil
&& !
INSN_DELETED_P (XEXP (link, 0))
&& GET_CODE (XEXP (link, 0)) != NOTE
&& no_labels_between_p (XEXP (link, 0), insn))
&& no_labels_between_p (XEXP (link, 0), insn)
/
* Make sure the reg hasn't been clobbered. *
/
&& ! reg_set_between_p (operands
[
0
]
, XEXP (link, 0), insn))
return
\"
incw %0
\"
;
if (operands
[
1
]
== const0_rtx)
return
\"
clrw %0
\"
;
...
...
gcc/config/vax/vax.md
View file @
dc577ada
...
...
@@ -207,7 +207,9 @@
&& ! INSN_DELETED_P (XEXP (link, 0))
&& GET_CODE (XEXP (link, 0)) != NOTE
/
* Make sure cross jumping didn't happen here. *
/
&& no_labels_between_p (XEXP (link, 0), insn))
&& no_labels_between_p (XEXP (link, 0), insn)
/
* Make sure the reg hasn't been clobbered. *
/
&& ! reg_set_between_p (operands
[
0
]
, XEXP (link, 0), insn))
return
\"
incl %0
\"
;
if (GET_CODE (operands
[
1
]
) == SYMBOL_REF || GET_CODE (operands
[
1
]
) == CONST)
{
...
...
@@ -250,7 +252,9 @@
&& ! INSN_DELETED_P (XEXP (link, 0))
&& GET_CODE (XEXP (link, 0)) != NOTE
/
* Make sure cross jumping didn't happen here. *
/
&& no_labels_between_p (XEXP (link, 0), insn))
&& no_labels_between_p (XEXP (link, 0), insn)
/
* Make sure the reg hasn't been clobbered. *
/
&& ! reg_set_between_p (operands
[
0
]
, XEXP (link, 0), insn))
return
\"
incw %0
\"
;
if (GET_CODE (operands
[
1
]
) == CONST_INT)
...
...
@@ -302,7 +306,9 @@
&& ! INSN_DELETED_P (XEXP (link, 0))
&& GET_CODE (XEXP (link, 0)) != NOTE
/
* Make sure cross jumping didn't happen here. *
/
&& no_labels_between_p (XEXP (link, 0), insn))
&& no_labels_between_p (XEXP (link, 0), insn)
/
* Make sure the reg hasn't been clobbered. *
/
&& ! reg_set_between_p (operands
[
0
]
, XEXP (link, 0), insn))
return
\"
incb %0
\"
;
if (GET_CODE (operands
[
1
]
) == CONST_INT)
...
...
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