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
88d3b7f0
Commit
88d3b7f0
authored
Apr 26, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r835
parent
a8481f2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
gcc/expr.c
+14
-5
No files found.
gcc/expr.c
View file @
88d3b7f0
...
...
@@ -6490,7 +6490,7 @@ do_store_flag (exp, target, mode, only_cheap)
/* INDEX is the value being switched on, with the lowest value
in the table already subtracted.
MODE is its expected mode (needed if INDEX is
ever
constant).
MODE is its expected mode (needed if INDEX is constant).
RANGE is the length of the jump table.
TABLE_LABEL is a CODE_LABEL rtx for the table itself.
...
...
@@ -6504,13 +6504,22 @@ do_tablejump (index, mode, range, table_label, default_label)
{
register
rtx
temp
,
vector
;
/* Code below assumes that MODE is Pmode,
but I think that is a mistake. Let's see if that is true. */
if
(
mode
!=
Pmode
)
abort
();
/* Do an unsigned comparison (in the proper mode) between the index
expression and the value which represents the length of the range.
Since we just finished subtracting the lower bound of the range
from the index expression, this comparison allows us to simultaneously
check that the original index expression value is both greater than
or equal to the minimum value of the range and less than or equal to
the maximum value of the range. */
emit_cmp_insn
(
range
,
index
,
LTU
,
0
,
mode
,
0
,
0
);
emit_jump_insn
(
gen_bltu
(
default_label
));
/* If index is in range, it must fit in Pmode.
Convert to Pmode so we can index with it. */
if
(
mode
!=
Pmode
)
index
=
convert_to_mode
(
Pmode
,
index
,
1
);
/* If flag_force_addr were to affect this address
it could interfere with the tricky assumptions made
about addresses that contain label-refs,
...
...
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