Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.202
 
1.203
 
MAIN:ragge:20070924174954
 
reader.c
_>785785 
 786786                 /* make & mask part */
 787787 
<>788 -                p->n_left->n_type = ty;
  788+                if (ISUNSIGNED(ty)) {
789789 
<>790 -                p->n_op = AND;
 791 -                p->n_right = mklnode(ICON, ((CONSZ)1 << s)-1, 0, ty);
  790+                        p->n_left->n_type = ty;
  791+                        p->n_op = AND;
  792+                        p->n_right = mklnode(ICON, ((CONSZ)1 << s)-1, 0, ty);
792793 
<>793 -                /* now, if a shift is needed, do it */
 794 -
 795 -                if( o != 0 ){
 796 -                        shp = mkbinode(RS, p->n_left,
 797 -                            mklnode(ICON, o, 0, INT), ty);
 798 -                        p->n_left = shp;
 799 -                        /* whew! */
  794+                        /* now, if a shift is needed, do it */
  795+                        if( o != 0 ){
  796+                                shp = mkbinode(RS, p->n_left,
  797+                                    mklnode(ICON, o, 0, INT), ty);
  798+                                p->n_left = shp;
  799+                                /* whew! */
  800+                        }
  801+                } else {
  802+                        /* must sign-extend, assume RS will do */
  803+                        /* if not, arch must use rewfld() */
  804+                        p->n_left->n_type = INT; /* Ok? */
  805+                        p->n_op = RS;
  806+                        p->n_right = mklnode(ICON, SZINT-s, 0, INT);
  807+                        p->n_left = mkbinode(LS, p->n_left,
  808+                            mklnode(ICON, SZINT-s-o, 0, INT), INT);
<_800809                 }
 801810         }
 802811 }
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-11-01 11:29 +0100