Branch: Tag:

2002-12-31

2002-12-31 15:04:20 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added some transforms for sequences of ADD_INT/ADD_NEG_INT.

Rev: src/peep.in:1.65

2:   // This file is part of Pike. For copyright information see COPYRIGHT.   // Pike is distributed under GPL, LGPL and MPL. See the file COPYING   // for more information. - // $Id: peep.in,v 1.64 2002/10/09 22:23:38 nilsson Exp $ + // $Id: peep.in,v 1.65 2002/12/31 15:04:20 grubba Exp $      NOP :   POP_N_ELEMS (0) :
228:   NUMBER [$1a >= 0] SUBTRACT : ADD_NEG_INT ($1a)   NUMBER [$1a < 0 && ($1a != -$1a)] SUBTRACT : ADD_INT (-$1a)    + ADD_INT ADD_INT: ADD_INT ($1a+$2a) + ADD_NEG_INT ADD_NEG_INT: ADD_NEG_INT ($1a+$2a) + ADD_NEG_INT ADD_INT [$1a <= $2a]: ADD_INT ($2a-$1a) + ADD_NEG_INT ADD_INT [$1a > $2a]: ADD_NEG_INT ($1a-$2a) + ADD_INT ADD_NEG_INT [$2a <= $1a]: ADD_INT ($2a-$1a) + ADD_INT ADD_NEG_INT [$2a > $1a]: ADD_NEG_INT ($1a-$2a) +    ASSIGN POP_VALUE: ASSIGN_AND_POP   LTOSVAL2 ADD ASSIGN_AND_POP : ADD_TO_AND_POP   LTOSVAL ADD ASSIGN_AND_POP : ADD_TO_AND_POP