diff options
author | jules <jules@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-01 11:46:27 +0000 |
---|---|---|
committer | jules <jules@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-01 11:46:27 +0000 |
commit | df484ac6fc754e9cfd6e19a196cbc14c1f06e0ea (patch) | |
tree | cf7132d9195abf40c4caff6c21af115100b1baf3 /gcc/optabs.c | |
parent | 77ae6789425a74651b121baa5516521ea785608e (diff) | |
download | gcc-df484ac6fc754e9cfd6e19a196cbc14c1f06e0ea.tar.gz |
* optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
comparison helpers.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177015 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 12717b67ab7..99228f36d8f 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -3959,11 +3959,13 @@ prepare_cmp_insn (rtx x, rtx y, enum rtx_code comparison, rtx size, result against 1 in the biased case, and zero in the unbiased case. For unsigned comparisons always compare against 1 after biasing the unbiased result by adding 1. This gives us a way to - represent LTU. */ + represent LTU. + The comparisons in the fixed-point helper library are always + biased. */ x = result; y = const1_rtx; - if (!TARGET_LIB_INT_CMP_BIASED) + if (!TARGET_LIB_INT_CMP_BIASED && !ALL_FIXED_POINT_MODE_P (mode)) { if (unsignedp) x = plus_constant (result, 1); |