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
e8a8bc24
Commit
e8a8bc24
authored
Jun 22, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
entered into RCS
From-SVN: r1234
parent
5c96a037
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
gcc/config/rs6000/rs6000.h
+12
-8
No files found.
gcc/config/rs6000/rs6000.h
View file @
e8a8bc24
...
@@ -330,7 +330,7 @@ extern int target_flags;
...
@@ -330,7 +330,7 @@ extern int target_flags;
On the RS/6000, bump this up a bit. */
On the RS/6000, bump this up a bit. */
#define MEMORY_MOVE_COST(MODE)
4
#define MEMORY_MOVE_COST(MODE)
6
/* Specify the cost of a branch insn; roughly the number of extra insns that
/* Specify the cost of a branch insn; roughly the number of extra insns that
should be added to avoid a branch.
should be added to avoid a branch.
...
@@ -401,7 +401,8 @@ extern int target_flags;
...
@@ -401,7 +401,8 @@ extern int target_flags;
enum
reg_class
{
NO_REGS
,
BASE_REGS
,
GENERAL_REGS
,
FLOAT_REGS
,
enum
reg_class
{
NO_REGS
,
BASE_REGS
,
GENERAL_REGS
,
FLOAT_REGS
,
NON_SPECIAL_REGS
,
MQ_REGS
,
LINK_REGS
,
CTR_REGS
,
LINK_OR_CTR_REGS
,
NON_SPECIAL_REGS
,
MQ_REGS
,
LINK_REGS
,
CTR_REGS
,
LINK_OR_CTR_REGS
,
SPECIAL_REGS
,
CR0_REGS
,
CR_REGS
,
ALL_REGS
,
LIM_REG_CLASSES
};
SPECIAL_REGS
,
SPEC_OR_GEN_REGS
,
CR0_REGS
,
CR_REGS
,
NON_FLOAT_REGS
,
ALL_REGS
,
LIM_REG_CLASSES
};
#define N_REG_CLASSES (int) LIM_REG_CLASSES
#define N_REG_CLASSES (int) LIM_REG_CLASSES
...
@@ -410,7 +411,8 @@ enum reg_class { NO_REGS, BASE_REGS, GENERAL_REGS, FLOAT_REGS,
...
@@ -410,7 +411,8 @@ enum reg_class { NO_REGS, BASE_REGS, GENERAL_REGS, FLOAT_REGS,
#define REG_CLASS_NAMES \
#define REG_CLASS_NAMES \
{ "NO_REGS", "BASE_REGS", "GENERAL_REGS", "FLOAT_REGS", \
{ "NO_REGS", "BASE_REGS", "GENERAL_REGS", "FLOAT_REGS", \
"NON_SPECIAL_REGS", "MQ_REGS", "LINK_REGS", "CTR_REGS", \
"NON_SPECIAL_REGS", "MQ_REGS", "LINK_REGS", "CTR_REGS", \
"LINK_OR_CTR_REGS", "SPECIAL_REGS", "CR0_REGS", "CR_REGS", "ALL_REGS" }
"LINK_OR_CTR_REGS", "SPECIAL_REGS", "SPEC_OR_GEN_REGS", \
"CR0_REGS", "CR_REGS", "NON_FLOAT_REGS", "ALL_REGS" }
/* Define which registers fit in which classes.
/* Define which registers fit in which classes.
This is an initializer for a vector of HARD_REG_SET
This is an initializer for a vector of HARD_REG_SET
...
@@ -418,9 +420,10 @@ enum reg_class { NO_REGS, BASE_REGS, GENERAL_REGS, FLOAT_REGS,
...
@@ -418,9 +420,10 @@ enum reg_class { NO_REGS, BASE_REGS, GENERAL_REGS, FLOAT_REGS,
#define REG_CLASS_CONTENTS \
#define REG_CLASS_CONTENTS \
{ {0, 0, 0}, {0xfffffffe, 0, 8}, {~0, 0, 8}, \
{ {0, 0, 0}, {0xfffffffe, 0, 8}, {~0, 0, 8}, \
{0, ~0, 0}, {~0, ~0, 0}, {0, 0, 1}, {0, 0, 2}, \
{0, ~0, 0}, {~0, ~0, 8}, {0, 0, 1}, {0, 0, 2}, \
{0, 0, 4}, {0, 0, 6}, {0, 0, 7}, {0, 0, 16}, \
{0, 0, 4}, {0, 0, 6}, {0, 0, 7}, {~0, 0, 15}, \
{0, 0, 0xff0}, {~0, ~0, 0xfff5} }
{0, 0, 16}, {0, 0, 0xff0}, {~0, 0, 0xffff}, \
{~0, ~0, 0xffff} }
/* The same information, inverted:
/* The same information, inverted:
Return the class number of the smallest class containing
Return the class number of the smallest class containing
...
@@ -496,8 +499,9 @@ enum reg_class { NO_REGS, BASE_REGS, GENERAL_REGS, FLOAT_REGS,
...
@@ -496,8 +499,9 @@ enum reg_class { NO_REGS, BASE_REGS, GENERAL_REGS, FLOAT_REGS,
For the RS/6000, `Q' means that this is a memory operand that is just
For the RS/6000, `Q' means that this is a memory operand that is just
an offset from a register. */
an offset from a register. */
#define EXTRA_CONSTRAINT(OP, C) \
#define EXTRA_CONSTRAINT(OP, C) \
((C) == 'Q' ? indirect_operand (OP, VOIDmode) : 0)
((C) == 'Q' ? GET_CODE (OP) == MEM && GET_CODE (XEXP (OP, 0)) == REG \
: 0)
/* Given an rtx X being reloaded into a reg required to be
/* Given an rtx X being reloaded into a reg required to be
in class CLASS, return the class of reg to actually use.
in class CLASS, return the class of reg to actually use.
...
...
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