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
4ea9e1a5
Commit
4ea9e1a5
authored
Aug 22, 2017
by
Aldy Hernandez
Committed by
Aldy Hernandez
Aug 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* wide-int.h (hwi_with_prec::hwi_with_prec): Sign extend.
From-SVN: r251260
parent
db995e10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
gcc/ChangeLog
+4
-0
gcc/wide-int.h
+5
-1
No files found.
gcc/ChangeLog
View file @
4ea9e1a5
2017
-
08
-
22
Aldy
Hernandez
<
aldyh
@
redhat
.
com
>
*
wide
-
int
.
h
(
hwi_with_prec
::
hwi_with_prec
):
Sign
extend
.
2017
-
08
-
22
Georg
-
Johann
Lay
<
avr
@
gjlay
.
de
>
2017
-
08
-
22
Georg
-
Johann
Lay
<
avr
@
gjlay
.
de
>
PR
target
/
81910
PR
target
/
81910
...
...
gcc/wide-int.h
View file @
4ea9e1a5
...
@@ -1517,8 +1517,12 @@ namespace wi
...
@@ -1517,8 +1517,12 @@ namespace wi
inline
wi
::
hwi_with_prec
::
hwi_with_prec
(
HOST_WIDE_INT
v
,
unsigned
int
p
,
inline
wi
::
hwi_with_prec
::
hwi_with_prec
(
HOST_WIDE_INT
v
,
unsigned
int
p
,
signop
s
)
signop
s
)
:
val
(
v
),
precision
(
p
),
sgn
(
s
)
:
precision
(
p
),
sgn
(
s
)
{
{
if
(
precision
<
HOST_BITS_PER_WIDE_INT
)
val
=
sext_hwi
(
v
,
precision
);
else
val
=
v
;
}
}
/* Return a signed integer that has value VAL and precision PRECISION. */
/* Return a signed integer that has value VAL and precision PRECISION. */
...
...
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