diff test/short.c @ 427:0c256ea2a97e

Bitfield left value for ia32
author kono
date Sat, 30 Oct 2004 18:49:25 +0900
parents 5b50813d0c45
children 32737bad7489
line wrap: on
line diff
--- a/test/short.c	Sat Oct 30 14:04:45 2004 +0900
+++ b/test/short.c	Sat Oct 30 18:49:25 2004 +0900
@@ -33,102 +33,102 @@
      k = 44;
      k = i*j+3+k;
      m = i*j-7+k;
-     printf("%d %d %d\n",i,k,m);
+     printf("#0035:%d %d %d\n",i,k,m);
 
      g0 = 123;
      g0++; --g0;
      ++g0; g0--;
-     printf("g0=%d\n",g0);
+     printf("#0040:g0=%d\n",g0);
      g1 = -123;
      g1++; --g1;
      ++g1; g1--;
-     printf("g1=%d\n",g1);
+     printf("#0044:g1=%d\n",g1);
 
      sg0 = 123;
      sg0++; --sg0;
      ++sg0; sg0--;
-     printf("sg0=%d\n",sg0);
+     printf("#0049:sg0=%d\n",sg0);
      sg1 = -123;
      sg1++; --sg1;
      ++sg1; sg1--;
-     printf("sg1=%d\n",sg1);
+     printf("#0053:sg1=%d\n",sg1);
 
      pg0 = &g0;
      ph0 = &h0;
      *pg0 = 123;
      //*pg0++; *--pg0;
      //*++pg0; *g0--;
-     printf("g0=%d\n",*pg0);
+     printf("#0060:g0=%d\n",*pg0);
      pg1 = &g1;
      ph1 = &h1;
      *pg1 = -123;
      //*pg1++; --*pg1;
      //++*pg1; *pg1--;
-     printf("g1=%d\n",*pg1);
+     printf("#0066:g1=%d\n",*pg1);
 
      psg0 = &sg0;
      psh0 = &sh0;
      *psg0 = 123;
      //*sg0++; *--sg0;
      //*++sg0; *sg0--;
-     printf("sg0=%d\n",*psg0);
+     printf("#0073:sg0=%d\n",*psg0);
      psg1 = &sg1;
      psh1 = &sh1;
      *psg1 = -123;
      //*sg1++; *--sg1;
      //*++sg1; *sg1--;
-     printf("sg1=%d\n",*psg1);
+     printf("#0079:sg1=%d\n",*psg1);
 
 
      h0 = g0 - 20;
      c[33] = g0;
 
-     if (i==j) {  printf("i==j\n"); } else { printf("i!=j\n"); }
+     if (i==j) {  printf("#0085:i==j\n"); } else { printf("i!=j\n"); }
 
      a[33] = i;
      b[33] = 105;
-     printf("i=%d\n",i);
-     printf("j=%d\n",j);
+     printf("#0089:i=%d\n",i);
+     printf("#0090:j=%d\n",j);
      i++; --i; 
      j++; --j; 
-     printf("i=%d\n",i);
-     printf("j=%d\n",j);
+     printf("#0093:i=%d\n",i);
+     printf("#0094:j=%d\n",j);
      gi = 3333;
      gj = 6666;
      gi++; --gi; 
      gj++; --gj; 
-     printf("gi=%d\n",gi);
-     printf("gj=%d\n",gj);
+     printf("#0099:gi=%d\n",gi);
+     printf("#0100:gj=%d\n",gj);
 
-     printf("k=%d\n",k);
-     printf("m=%d\n",m);
-     printf("a[33]=%d\n",a[33]);
-     printf("b[33]=%d\n",b[33]);
-     printf("a[33]=%d\n",++a[33]);
-     printf("b[33]=%d\n",b[33]--);
+     printf("#0102:k=%d\n",k);
+     printf("#0103:m=%d\n",m);
+     printf("#0104:a[33]=%d\n",a[33]);
+     printf("#0105:b[33]=%d\n",b[33]);
+     printf("#0106:a[33]=%d\n",++a[33]);
+     printf("#0107:b[33]=%d\n",b[33]--);
 
-     printf("g0=%d\n",g0);
-     printf("h0=%d\n",h0);
-     printf("c[33]=%d\n",c[33]);
+     printf("#0109:g0=%d\n",g0);
+     printf("#0110:h0=%d\n",h0);
+     printf("#0111:c[33]=%d\n",c[33]);
 
      p = data;
-     printf("*p++ = %d\n",*p++);
-     printf("*++p = %d\n",*++p);
+     printf("#0114:*p++ = %d\n",*p++);
+     printf("#0115:*++p = %d\n",*++p);
      *p++ = -343;
-     printf("*p-- = %d\n",*p--);
-     printf("*--p = %d\n",*--p);
+     printf("#0117:*p-- = %d\n",*p--);
+     printf("#0118:*--p = %d\n",*--p);
      up = udata;
-     printf("*up-- = %d\n",*up--);
-     printf("*--up = %d\n",*--up);
+     printf("#0120:*up-- = %d\n",*up--);
+     printf("#0121:*--up = %d\n",*--up);
      *up++ = 65530;
-     printf("*up-- = %d\n",*up--);
-     printf("*--up = %d\n",*--up);
+     printf("#0123:*up-- = %d\n",*up--);
+     printf("#0124:*--up = %d\n",*--up);
      
 
      ii = f(i,j,k,m,a[33]); 
-     printf("f()=%d\n",ii);
+     printf("#0128:f()=%d\n",ii);
      ii = g(i,j,k,m,a[33]); 
-     printf("f()=%d\n",ii);
+     printf("#0130:f()=%d\n",ii);
   return 0;  
 }