Bug 21110 - incorrect documentat for high and lo_sum RTL operators
Summary: incorrect documentat for high and lo_sum RTL operators
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.1.0
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: documentation
Depends on:
Blocks:
 
Reported: 2005-04-19 20:26 UTC by Jim Wilson
Modified: 2012-02-04 00:52 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2006-02-13 03:52:29


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Wilson 2005-04-19 20:26:16 UTC
The documentation in rtl.texi for the HIGH and LO_SUM operators incorrectly say
that they should use Pmode.  There is no such restriction.  They can be used
with any mode.  Pmode is only necessary if the operand is an address, such as a
SYMBOL_REF or a LABEL_REF.  The text will need some rewording to make this clear.
Comment 1 Andrew Pinski 2005-07-19 05:16:06 UTC
Confirmed.
Comment 2 Andrew Pinski 2012-02-04 00:52:00 UTC
The number of low order bits is machine-dependent but is
normally the number of bits in a @code{Pmode} item minus the number of
bits set by @code{high}.

@var{m} should be @code{Pmode}.


The last part is what is incorrect.