Commit 52ed66ec by Sandra Loosemore Committed by Sandra Loosemore

re PR middle-end/21110 (incorrect documentat for high and lo_sum RTL operators)

2018-11-12  Sandra Loosemore  <sandra@codesourcery.com>

	PR middle-end/21110

	gcc/
	* doc/rtl.texi (Constants): Clarify that mode of "high" doesn't
	have to be Pmode.
	(Arithmetic): Likewise for "lo_sum".

From-SVN: r266035
parent 6f59f36b
2018-11-12 Sandra Loosemore <sandra@codesourcery.com>
PR middle-end/21110
* doc/rtl.texi (Constants): Clarify that mode of "high" doesn't
have to be Pmode.
(Arithmetic): Likewise for "lo_sum".
2018-11-12 Renlin Li <renlin.li@arm.com> 2018-11-12 Renlin Li <renlin.li@arm.com>
PR target/87815 PR target/87815
...@@ -1883,14 +1883,14 @@ of relocation operator. @var{m} should be a valid address mode. ...@@ -1883,14 +1883,14 @@ of relocation operator. @var{m} should be a valid address mode.
@findex high @findex high
@item (high:@var{m} @var{exp}) @item (high:@var{m} @var{exp})
Represents the high-order bits of @var{exp}, usually a Represents the high-order bits of @var{exp}.
@code{symbol_ref}. The number of bits is machine-dependent and is The number of bits is machine-dependent and is
normally the number of bits specified in an instruction that initializes normally the number of bits specified in an instruction that initializes
the high order bits of a register. It is used with @code{lo_sum} to the high order bits of a register. It is used with @code{lo_sum} to
represent the typical two-instruction sequence used in RISC machines to represent the typical two-instruction sequence used in RISC machines to
reference a global memory location. reference large immediate values and/or link-time constants such
as global memory addresses. In the latter case, @var{m} is @code{Pmode}
@var{m} should be @code{Pmode}. and @var{exp} is usually a constant expression involving @code{symbol_ref}.
@end table @end table
@findex CONST0_RTX @findex CONST0_RTX
...@@ -2429,15 +2429,15 @@ saturates at the maximum signed value representable in @var{m}; ...@@ -2429,15 +2429,15 @@ saturates at the maximum signed value representable in @var{m};
This expression represents the sum of @var{x} and the low-order bits This expression represents the sum of @var{x} and the low-order bits
of @var{y}. It is used with @code{high} (@pxref{Constants}) to of @var{y}. It is used with @code{high} (@pxref{Constants}) to
represent the typical two-instruction sequence used in RISC machines represent the typical two-instruction sequence used in RISC machines to
to reference a global memory location. reference large immediate values and/or link-time constants such
as global memory addresses. In the latter case, @var{m} is @code{Pmode}
and @var{y} is usually a constant expression involving @code{symbol_ref}.
The number of low order bits is machine-dependent but is 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 normally the number of bits in mode @var{m} minus the number of
bits set by @code{high}. bits set by @code{high}.
@var{m} should be @code{Pmode}.
@findex minus @findex minus
@findex ss_minus @findex ss_minus
@findex us_minus @findex us_minus
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment