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
a54d04b7
Commit
a54d04b7
authored
Jan 25, 1996
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bugs in last changes
From-SVN: r11103
parent
154079fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
9 deletions
+20
-9
gcc/config/rs6000/rs6000.c
+19
-8
gcc/config/rs6000/rs6000.md
+1
-1
No files found.
gcc/config/rs6000/rs6000.c
View file @
a54d04b7
...
...
@@ -857,6 +857,11 @@ small_data_operand (op, mode)
{
rtx
sym_ref
,
const_part
;
#ifdef TARGET_SDATA
if
(
!
TARGET_SDATA
)
return
0
;
#endif
if
(
DEFAULT_ABI
!=
ABI_V4
)
return
0
;
...
...
@@ -2086,9 +2091,11 @@ print_operand (file, x, code)
we have already done it, we can just use an offset of four. */
if
(
GET_CODE
(
XEXP
(
x
,
0
))
==
PRE_INC
||
GET_CODE
(
XEXP
(
x
,
0
))
==
PRE_DEC
)
print_operand_address
(
file
,
plus_constant
(
XEXP
(
XEXP
(
x
,
0
),
0
),
4
));
output_address
(
plus_constant
(
XEXP
(
XEXP
(
x
,
0
),
0
),
4
));
else
print_operand_address
(
file
,
plus_constant
(
XEXP
(
x
,
0
),
4
));
output_address
(
plus_constant
(
XEXP
(
x
,
0
),
4
));
if
(
DEFAULT_ABI
==
ABI_V4
&&
small_data_operand
(
x
,
GET_MODE
(
x
)))
fprintf
(
file
,
"@sda21(%s)"
,
reg_names
[
0
]);
}
return
;
...
...
@@ -2296,9 +2303,11 @@ print_operand (file, x, code)
{
if
(
GET_CODE
(
XEXP
(
x
,
0
))
==
PRE_INC
||
GET_CODE
(
XEXP
(
x
,
0
))
==
PRE_DEC
)
print_operand_address
(
file
,
plus_constant
(
XEXP
(
XEXP
(
x
,
0
),
0
),
8
));
output_address
(
plus_constant
(
XEXP
(
XEXP
(
x
,
0
),
0
),
8
));
else
print_operand_address
(
file
,
plus_constant
(
XEXP
(
x
,
0
),
8
));
output_address
(
plus_constant
(
XEXP
(
x
,
0
),
8
));
if
(
DEFAULT_ABI
==
ABI_V4
&&
small_data_operand
(
x
,
GET_MODE
(
x
)))
fprintf
(
file
,
"@sda21(%s)"
,
reg_names
[
0
]);
}
return
;
...
...
@@ -2342,9 +2351,11 @@ print_operand (file, x, code)
{
if
(
GET_CODE
(
XEXP
(
x
,
0
))
==
PRE_INC
||
GET_CODE
(
XEXP
(
x
,
0
))
==
PRE_DEC
)
print_operand_address
(
file
,
plus_constant
(
XEXP
(
XEXP
(
x
,
0
),
0
),
12
));
output_address
(
plus_constant
(
XEXP
(
XEXP
(
x
,
0
),
0
),
12
));
else
print_operand_address
(
file
,
plus_constant
(
XEXP
(
x
,
0
),
12
));
output_address
(
plus_constant
(
XEXP
(
x
,
0
),
12
));
if
(
DEFAULT_ABI
==
ABI_V4
&&
small_data_operand
(
x
,
GET_MODE
(
x
)))
fprintf
(
file
,
"@sda21(%s)"
,
reg_names
[
0
]);
}
return
;
...
...
@@ -2362,10 +2373,10 @@ print_operand (file, x, code)
fprintf
(
file
,
"%d(%d)"
,
-
GET_MODE_SIZE
(
GET_MODE
(
x
)),
REGNO
(
XEXP
(
XEXP
(
x
,
0
),
0
)));
else
print_operand_address
(
file
,
XEXP
(
x
,
0
));
output_address
(
XEXP
(
x
,
0
));
}
else
print_operand_address
(
file
,
x
);
output_addr_const
(
file
,
x
);
return
;
default
:
...
...
gcc/config/rs6000/rs6000.md
View file @
a54d04b7
...
...
@@ -4733,7 +4733,7 @@
/
* Use default pattern for address of ELF small data *
/
if (TARGET_ELF
&&
TARGET_SDATA
&&
DEFAULT_ABI == ABI_V4
&& (GET_CODE (operands
[
1
]
) == SYMBOL_REF || GET_CODE (operands
[
1
]
) == CONST)
&& !small_data_operand (operands
[
1
]
, SImode))
{
...
...
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