From eacf8912b70e813e987afeb5ea2b604243487090 Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Fri, 21 Jan 2005 01:54:44 +0000 Subject: [PATCH] * doc/rtl.texi: Document value extension requirements for CONST_INT. From-SVN: r94004 --- gcc/ChangeLog | 4 ++++ gcc/doc/rtl.texi | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 19eda0fa69d..74474ec8ec6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-01-20 Paul Brook + + * doc/rtl.texi: Document value extension requirements for CONST_INT. + 2005-01-20 Kazu Hirata * tree-cfg.c (tree_verify_flow_info): Check that a nonlocal diff --git a/gcc/doc/rtl.texi b/gcc/doc/rtl.texi index 60685162432..9d6b9c28a3d 100644 --- a/gcc/doc/rtl.texi +++ b/gcc/doc/rtl.texi @@ -1286,6 +1286,9 @@ This type of expression represents the integer value @var{i}. @var{i} is customarily accessed with the macro @code{INTVAL} as in @code{INTVAL (@var{exp})}, which is equivalent to @code{XWINT (@var{exp}, 0)}. +Constants generated for modes with fewer bits than @code{HOST_WIDE_INT} +must be sign extended to full width (e.g., with @code{gen_int_mode}). + @findex const0_rtx @findex const1_rtx @findex const2_rtx -- 2.30.2