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
4bc74ece
Commit
4bc74ece
authored
Apr 02, 1999
by
Nick Clifton
Committed by
Nick Clifton
Apr 02, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print large constants in hex not dec.
From-SVN: r26142
parent
7b028dba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
16 deletions
+23
-16
gcc/ChangeLog
+5
-0
gcc/config/arm/arm.c
+18
-16
No files found.
gcc/ChangeLog
View file @
4bc74ece
Fri
Apr
2
17
:
36
:
10
1999
Nick
Clifton
<
nickc
@cygnus
.
com
>
*
config
/
arm
/
arm
.
c
(
arm_print_operand
)
:
Print
large
constants
in
hex
rather
than
decimal
.
Fri
Apr
2
17
:
23
:
58
1999
Nick
Clifton
<
nickc
@cygnus
.
com
>
Fri
Apr
2
17
:
23
:
58
1999
Nick
Clifton
<
nickc
@cygnus
.
com
>
*
print
-
rtl
.
c
(
print_rtx
)
:
Use
both
HOST_WIDE_INT_PRINT_DEC
*
print
-
rtl
.
c
(
print_rtx
)
:
Use
both
HOST_WIDE_INT_PRINT_DEC
...
...
gcc/config/arm/arm.c
View file @
4bc74ece
...
@@ -5700,13 +5700,15 @@ arm_print_operand (stream, x, code)
...
@@ -5700,13 +5700,15 @@ arm_print_operand (stream, x, code)
case
'B'
:
case
'B'
:
if
(
GET_CODE
(
x
)
==
CONST_INT
)
if
(
GET_CODE
(
x
)
==
CONST_INT
)
fprintf
(
stream
,
{
#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT
HOST_WIDE_INT
val
;
"%d"
,
val
=
ARM_SIGN_EXTEND
(
~
INTVAL
(
x
));
#else
"%ld"
,
if
(
val
<
-
1000
||
val
>
1000
)
#endif
fprintf
(
stream
,
HOST_WIDE_INT_PRINT_HEX
,
val
);
ARM_SIGN_EXTEND
(
~
INTVAL
(
x
)));
else
fprintf
(
stream
,
HOST_WIDE_INT_PRINT_DEC
,
val
);
}
else
else
{
{
putc
(
'~'
,
stream
);
putc
(
'~'
,
stream
);
...
@@ -5725,21 +5727,21 @@ arm_print_operand (stream, x, code)
...
@@ -5725,21 +5727,21 @@ arm_print_operand (stream, x, code)
case
'S'
:
case
'S'
:
{
{
HOST_WIDE_INT
val
;
HOST_WIDE_INT
val
;
char
*
shift
=
shift_op
(
x
,
&
val
);
char
*
shift
=
shift_op
(
x
,
&
val
);
if
(
shift
)
if
(
shift
)
{
{
fprintf
(
stream
,
", %s "
,
shift_op
(
x
,
&
val
));
fprintf
(
stream
,
", %s "
,
shift_op
(
x
,
&
val
));
if
(
val
==
-
1
)
if
(
val
==
-
1
)
arm_print_operand
(
stream
,
XEXP
(
x
,
1
),
0
);
arm_print_operand
(
stream
,
XEXP
(
x
,
1
),
0
);
else
else
fprintf
(
stream
,
{
#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT
fputc
(
'#'
,
stream
);
"#%d"
,
if
(
val
<
-
1000
||
val
>
1000
)
#else
fprintf
(
stream
,
HOST_WIDE_INT_PRINT_HEX
(
val
));
"#%ld"
,
else
#endif
fprintf
(
stream
,
HOST_WIDE_INT_PRINT_DEC
(
val
));
val
);
}
}
}
}
}
return
;
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