aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-01-19 17:07:34 -0800
committerJim Wilson <wilson@gcc.gnu.org>1993-01-19 17:07:34 -0800
commitc6ad27a7f35f4c2c4431fee9f0648989854c79ec (patch)
tree587484bc96e23f9e45ceb8085f449a3cbd84f99a /gcc
parent4be7c28fddff322a9634a25ddf0b26b70115ce62 (diff)
downloadgcc-c6ad27a7f35f4c2c4431fee9f0648989854c79ec.zip
gcc-c6ad27a7f35f4c2c4431fee9f0648989854c79ec.tar.gz
gcc-c6ad27a7f35f4c2c4431fee9f0648989854c79ec.tar.bz2
(emit_cmp_insn, emit_float_lib_cmp): libcall comparisons return word_mode.
From-SVN: r3289
Diffstat (limited to 'gcc')
-rw-r--r--gcc/optabs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 7d495e8..c0fc299 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -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,
- SImode, 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 (SImode), const1_rtx,
- comparison, NULL_RTX, SImode, 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,
- SImode, 2, x, mode, y, mode);
+ word_mode, 2, x, mode, y, mode);
- emit_cmp_insn (hard_libcall_value (SImode), const0_rtx, comparison,
- NULL_RTX, SImode, 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. */