This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [PATCH] Move ~X | X -> -1 folding


On Tue, Jun 30, 2015 at 01:39:29PM +0200, Marc Glisse wrote:
> Does my suggestion to "build the all_ones constant in TREE_TYPE (@0) and
> convert that to type" help for that?

It appears to work, but it seems weird to me to create a integer constant
in one type and then immediately cast it to another type.

	Marek


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