This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

numerical value of comparison results


rtl.texi says:

@table @code
@findex eq
@cindex equal
@item (eq:@var{m} @var{x} @var{y})
1 if the values represented by @var{x} and @var{y} are equal,
otherwise 0.

... and similarly for the other comparison operators.

However, simplify_relational_operation uses const_true_rtx if the comparison
is true.  So if STORE_FLAG_VALUE is different from 1, we get a different
result.

Since there are alerady a number of ports with a STORE_FLAG_VALUE other
than 1, I suppose that is considered to work, and the documentation
should be changed?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]