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
df3d94ed
Commit
df3d94ed
authored
Sep 19, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(print_operand, case 'h', 'H', 'w'): Minor cleanups.
From-SVN: r2168
parent
ef457bda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
gcc/config/rs6000/rs6000.c
+5
-3
No files found.
gcc/config/rs6000/rs6000.c
View file @
df3d94ed
...
...
@@ -710,7 +710,8 @@ print_operand (file, x, code)
switch
(
code
)
{
case
'h'
:
/* If constant, output low-order six bits. Otherwise, write normally. */
/* If constant, output low-order five bits. Otherwise,
write normally. */
if
(
INT_P
(
x
))
fprintf
(
file
,
"%d"
,
INT_LOWPART
(
x
)
&
31
);
else
...
...
@@ -718,7 +719,7 @@ print_operand (file, x, code)
return
;
case
'H'
:
/* X must be a constant. Output the low order
6
bits plus 24. */
/* X must be a constant. Output the low order
5
bits plus 24. */
if
(
!
INT_P
(
x
))
output_operand_lossage
(
"invalid %%H value"
);
...
...
@@ -737,7 +738,8 @@ print_operand (file, x, code)
/* If constant, low-order 16 bits of constant, signed. Otherwise, write
normally. */
if
(
INT_P
(
x
))
fprintf
(
file
,
"%d"
,
(
INT_LOWPART
(
x
)
<<
16
)
>>
16
);
fprintf
(
file
,
"%d"
,
(
INT_LOWPART
(
x
)
&
0xffff
)
-
2
*
(
INT_LOWPART
(
x
)
&
0x8000
));
else
print_operand
(
file
,
x
,
0
);
return
;
...
...
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