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
b030d598
Commit
b030d598
authored
Oct 26, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(write_tree_1): Avoid emitting '-2147483648'.
From-SVN: r10523
parent
f3d723e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
gcc/genrecog.c
+14
-5
No files found.
gcc/genrecog.c
View file @
b030d598
/* Generate code from machine description to recognize rtl as insns.
Copyright (C) 1987,
1988, 1992, 1993, 1994
Free Software Foundation, Inc.
Copyright (C) 1987,
88, 92, 93, 94, 1995
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -1343,13 +1343,22 @@ write_tree_1 (tree, prevpos, afterward, type)
if
(
p
->
test_elt_one_int
)
printf
(
"XINT (x%d, 1) == %d && "
,
depth
,
p
->
elt_one_int
);
if
(
p
->
test_elt_zero_wide
)
printf
(
{
/* Set offset to 1 iff the number might get propagated to
unsigned long by ANSI C rules, else 0.
Prospective hosts are required to have at least 32 bit
ints, and integer constants in machine descriptions
must fit in 32 bit, thus it suffices to check only
for 1 << 31 . */
HOST_WIDE_INT
offset
=
p
->
elt_zero_wide
==
-
2147483647
-
1
;
printf
(
#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT
"XWINT (x%d, 0) == %d
&& "
,
"XWINT (x%d, 0) == %d%s
&& "
,
#else
"XWINT (x%d, 0) == %ld
&& "
,
"XWINT (x%d, 0) == %ld%s
&& "
,
#endif
depth
,
p
->
elt_zero_wide
);
depth
,
p
->
elt_zero_wide
+
offset
,
offset
?
"-1"
:
""
);
}
if
(
p
->
veclen
)
printf
(
"XVECLEN (x%d, 0) == %d && "
,
depth
,
p
->
veclen
);
if
(
p
->
dupno
>=
0
)
...
...
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