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
c6ad27a7
Commit
c6ad27a7
authored
Jan 19, 1993
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(emit_cmp_insn, emit_float_lib_cmp): libcall comparisons return word_mode.
From-SVN: r3289
parent
4be7c28f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
gcc/optabs.c
+6
-6
No files found.
gcc/optabs.c
View file @
c6ad27a7
...
...
@@ -2307,14 +2307,14 @@ emit_cmp_insn (x, y, comparison, size, mode, unsignedp, align)
libfunc
=
ucmp_optab
->
handlers
[(
int
)
mode
].
libfunc
;
emit_library_call
(
libfunc
,
1
,
SI
mode
,
2
,
x
,
mode
,
y
,
mode
);
word_
mode
,
2
,
x
,
mode
,
y
,
mode
);
/* Integer comparison returns a result that must be compared against 1,
so that even if we do an unsigned compare afterward,
there is still a value that can represent the result "less than". */
emit_cmp_insn
(
hard_libcall_value
(
SI
mode
),
const1_rtx
,
comparison
,
NULL_RTX
,
SI
mode
,
unsignedp
,
0
);
emit_cmp_insn
(
hard_libcall_value
(
word_
mode
),
const1_rtx
,
comparison
,
NULL_RTX
,
word_
mode
,
unsignedp
,
0
);
return
;
}
...
...
@@ -2484,10 +2484,10 @@ emit_float_lib_cmp (x, y, comparison)
}
emit_library_call
(
libfunc
,
1
,
SI
mode
,
2
,
x
,
mode
,
y
,
mode
);
word_
mode
,
2
,
x
,
mode
,
y
,
mode
);
emit_cmp_insn
(
hard_libcall_value
(
SI
mode
),
const0_rtx
,
comparison
,
NULL_RTX
,
SI
mode
,
0
,
0
);
emit_cmp_insn
(
hard_libcall_value
(
word_
mode
),
const0_rtx
,
comparison
,
NULL_RTX
,
word_
mode
,
0
,
0
);
}
/* Generate code to indirectly jump to a location given in the rtx LOC. */
...
...
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