[PATCH] ARM fixed-point support [1/6]: comparison optab biasing

Julian Brown julian@codesourcery.com
Fri May 13 14:26:00 GMT 2011


As per Joseph's suggestion here:

http://gcc.gnu.org/ml/gcc-patches/2011-05/msg00846.html

I am re-posting machine-independent parts of my ARM fixed-point support
patches, with explanations as to why each part is necessary.

This is the first: on ARM, TARGET_LIB_INT_CMP_BIASED is false for
TARGET_BPABI targets (i.e. most currently-interesting cases --
EABI comparison helper functions return -1/0/1 for lt/eq/gt rather than
0/1/2). However the fixed-point helper library uses biased comparisons
unconditionally. So, this patch just makes comparisons between
fixed-point quantities use the biasing rather than not. (Grepping
config/, in practice, this will only affect ARM.)

Tested in a series with other fixed-point patches. OK to apply?

Julian

ChangeLog

    gcc/
    * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
    comparison helpers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixed-point-optab-biasing-2.diff
Type: text/x-patch
Size: 919 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110513/835c934a/attachment.bin>


More information about the Gcc-patches mailing list