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
06e40b26
Commit
06e40b26
authored
Jul 17, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(emit_cmp_insn): Always do protect_from_queue on x, y, size.
(expand_float, expand_fix): Likewise. From-SVN: r1605
parent
937522b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
gcc/optabs.c
+8
-6
No files found.
gcc/optabs.c
View file @
06e40b26
...
...
@@ -1673,6 +1673,7 @@ emit_cmp_insn (x, y, comparison, size, mode, unsignedp, align)
enum
machine_mode
result_mode
=
insn_operand_mode
[(
int
)
CODE_FOR_cmpstrsi
][
0
];
rtx
result
=
gen_reg_rtx
(
result_mode
);
size
=
protect_from_queue
(
size
,
0
);
emit_insn
(
gen_cmpstrsi
(
result
,
x
,
y
,
convert_to_mode
(
SImode
,
size
,
1
),
GEN_INT
(
align
)));
...
...
@@ -1753,6 +1754,8 @@ emit_cmp_insn (x, y, comparison, size, mode, unsignedp, align)
if
(
cmp_optab
->
handlers
[(
int
)
wider_mode
].
insn_code
!=
CODE_FOR_nothing
)
{
x
=
protect_from_queue
(
x
,
0
);
y
=
protect_from_queue
(
y
,
0
);
x
=
convert_to_mode
(
wider_mode
,
x
,
unsignedp
);
y
=
convert_to_mode
(
wider_mode
,
y
,
unsignedp
);
emit_cmp_insn
(
x
,
y
,
comparison
,
NULL_RTX
,
...
...
@@ -1939,6 +1942,8 @@ emit_float_lib_cmp (x, y, comparison)
!=
CODE_FOR_nothing
)
||
(
cmp_optab
->
handlers
[(
int
)
wider_mode
].
libfunc
!=
0
))
{
x
=
protect_from_queue
(
x
,
0
);
y
=
protect_from_queue
(
y
,
0
);
x
=
convert_to_mode
(
wider_mode
,
x
,
0
);
y
=
convert_to_mode
(
wider_mode
,
y
,
0
);
emit_float_lib_cmp
(
x
,
y
,
comparison
);
...
...
@@ -2820,11 +2825,10 @@ expand_float (to, from, unsignedp)
if
(
icode
!=
CODE_FOR_nothing
)
{
to
=
protect_from_queue
(
to
,
1
);
from
=
protect_from_queue
(
from
,
0
);
if
(
imode
!=
GET_MODE
(
from
))
from
=
convert_to_mode
(
imode
,
from
,
unsignedp
);
else
from
=
protect_from_queue
(
from
,
0
);
if
(
fmode
!=
GET_MODE
(
to
))
target
=
gen_reg_rtx
(
fmode
);
...
...
@@ -2893,11 +2897,10 @@ expand_float (to, from, unsignedp)
rtx
insns
;
to
=
protect_from_queue
(
to
,
1
);
from
=
protect_from_queue
(
from
,
0
);
if
(
GET_MODE_SIZE
(
GET_MODE
(
from
))
<
GET_MODE_SIZE
(
SImode
))
from
=
convert_to_mode
(
SImode
,
from
,
unsignedp
);
else
from
=
protect_from_queue
(
from
,
0
);
if
(
flag_force_mem
)
from
=
force_not_mem
(
from
);
...
...
@@ -3012,11 +3015,10 @@ expand_fix (to, from, unsignedp)
if
(
icode
!=
CODE_FOR_nothing
)
{
to
=
protect_from_queue
(
to
,
1
);
from
=
protect_from_queue
(
from
,
0
);
if
(
fmode
!=
GET_MODE
(
from
))
from
=
convert_to_mode
(
fmode
,
from
,
0
);
else
from
=
protect_from_queue
(
from
,
0
);
if
(
must_trunc
)
from
=
ftruncify
(
from
);
...
...
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