view test/bitfield.c @ 456:b8f95294eb77

inline continue... if test passed.
author kono
date Wed, 01 Dec 2004 19:32:34 +0900
parents 0c256ea2a97e
children 32737bad7489
line wrap: on
line source



typedef union {
    struct _PTE {
	    unsigned long v:1;
	    unsigned long vsid:24;
	    unsigned long h:1;
	    unsigned long api:6;
	    unsigned long rpn:20;

	    unsigned long :3;
	    unsigned long r:1;
	    unsigned long c:1;
	    unsigned long w:1;
	    unsigned long i:1;
	    unsigned long m:1;
	    unsigned long g:1;
	    unsigned long :1;
	    unsigned long pp:2;
	    long long lpn:40;
    } pte;
    struct {
	    char v:1;
	    signed long vsid:24;
	    unsigned long h:1;
	    signed char api:6;
	    signed long rpn:20;

	    signed long :3;
	    unsigned long r:1;
	    unsigned long c:1;
	    unsigned long w:1;
	    unsigned long i:1;
	    unsigned long m:1;
	    unsigned long g:1;
	    unsigned long :1;
	    signed long pp:2;
    } sg;
    unsigned long u[2];
} PTE;

PTE g;

main()
{
       PTE a,*p;
      int i = 0;
      int j = 0;

      a.pte.rpn = 55;
      j = a.pte.rpn;
printf("#0051:% 3d:  %d\n",i++,j);
      a.pte.c = 1;
      j = a.pte.c;
printf("#0054:% 3d:  %d\n",i++,j);
      a.pte.pp = -1;
      j = a.pte.pp;
printf("#0057:% 3d:  %d\n",i++,j);
      a.sg.pp = -1;
      j = a.sg.pp;
printf("#0060:% 3d:  %d\n",i++,j);

      p = &g;

      g.u[0]=0;
      g.u[1]=0;
       
printf("#0067:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. v = 3;
printf("#0069:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. vsid = -1;
printf("#0071:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. h = 3;
printf("#0073:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. api = 3;
printf("#0075:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. rpn = 3;
printf("#0077:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);

        g.pte. r = 3;
printf("#0080:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. c = 3;
printf("#0082:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. w = 3;
printf("#0084:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. i = 3;
printf("#0086:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. m = 3;
printf("#0088:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. g = 3;
printf("#0090:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. pp = 3;
printf("#0092:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);

      g.u[0]=-1;
      g.u[1]=-1;

printf("#0097:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. v = 0;
printf("#0099:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. vsid = 0;
printf("#0101:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. h = 0;
printf("#0103:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. api = 0;
printf("#0105:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. rpn = 0;
printf("#0107:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);

        g.pte. r = 0;
printf("#0110:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. c = 0;
printf("#0112:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. w = 0;
printf("#0114:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. i = 0;
printf("#0116:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. m = 0;
printf("#0118:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. g = 0;
printf("#0120:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. pp = 0;
printf("#0122:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);

      g.u[0]=-1;
      g.u[1]=-1;

printf("#0127:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. v = 0x5555555;
printf("#0129:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. vsid = 0x5555555;
printf("#0131:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. h = 0x5555555;
printf("#0133:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. api = 0x5555555;
printf("#0135:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. rpn = 0x5555555;
printf("#0137:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);

        g.pte. r = 0x5555555;
printf("#0140:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. c = 0x5555555;
printf("#0142:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. w = 0x5555555;
printf("#0144:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. i = 0x5555555;
printf("#0146:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. m = 0x5555555;
printf("#0148:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. g = 0x5555555;
printf("#0150:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. pp = 0x5555555;
printf("#0152:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);

      g.u[0]=-1;
      g.u[1]=-1;

for(i=0;i<0x200;i++) {
printf("#0158:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. v = i;
printf("#0160:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. vsid = i;
printf("#0162:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. h = i;
printf("#0164:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. api = i;
printf("#0166:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. rpn = i;
printf("#0168:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);

        g.pte. r = i;
printf("#0171:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. c = i;
printf("#0173:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. w = i;
printf("#0175:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. i = i;
printf("#0177:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. m = i;
printf("#0179:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. g = i;
printf("#0181:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.pte. pp = i;
printf("#0183:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
}

      g = a;

      printf("#0188:%d %d %d\n",a.pte.pp,g.pte.pp,p->pte.pp);
     main2();
     main5();
     main5c();
     main3();
     main4();
     main6();
     main7();
    return 0;
}

main2()
{
      int i = 0;

      g.u[0]=0;
      g.u[1]=0;
       
printf("#0206:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. v = 3;
printf("#0208:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. vsid = -1;
printf("#0210:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. h = 3;
printf("#0212:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. api = 3;
printf("#0214:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. rpn = 3;
printf("#0216:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);

        g.sg. r = 3;
printf("#0219:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. c = 3;
printf("#0221:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. w = 3;
printf("#0223:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. i = 3;
printf("#0225:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. m = 3;
printf("#0227:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. g = 3;
printf("#0229:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. pp = 3;
printf("#0231:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);

      g.u[0]=-1;
      g.u[1]=-1;

printf("#0236:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. v = 0;
printf("#0238:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. vsid = 0;
printf("#0240:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. h = 0;
printf("#0242:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. api = 0;
printf("#0244:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. rpn = 0;
printf("#0246:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);

        g.sg. r = 0;
printf("#0249:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. c = 0;
printf("#0251:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. w = 0;
printf("#0253:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. i = 0;
printf("#0255:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. m = 0;
printf("#0257:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. g = 0;
printf("#0259:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. pp = 0;
printf("#0261:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);

      g.u[0]=-1;
      g.u[1]=-1;

printf("#0266:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. v = 0x55;
printf("#0268:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. vsid = 0x5555555;
printf("#0270:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. h = 0x5555555;
printf("#0272:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. api = 0x55;
printf("#0274:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. rpn = 0x5555555;
printf("#0276:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);

        g.sg. r = 0x5555555;
printf("#0279:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. c = 0x5555555;
printf("#0281:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. w = 0x5555555;
printf("#0283:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. i = 0x5555555;
printf("#0285:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. m = 0x5555555;
printf("#0287:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. g = 0x5555555;
printf("#0289:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. pp = 0x5555555;
printf("#0291:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);

      g.u[0]=-1;
      g.u[1]=-1;

for(i=-0x100;i<0x100;i++) {
printf("#0297:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. v = i;
printf("#0299:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. vsid = i;
printf("#0301:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. h = i;
printf("#0303:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. api = i;
printf("#0305:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. rpn = i;
printf("#0307:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);

        g.sg. r = i;
printf("#0310:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. c = i;
printf("#0312:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. w = i;
printf("#0314:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. i = i;
printf("#0316:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. m = i;
printf("#0318:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. g = i;
printf("#0320:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
        g.sg. pp = i;
printf("#0322:% 3d:  0x%08x%08x\n",i++,g.u[0],g.u[1]);
}

// printf("#0325:size of %d\n",sizeof(g.sg.pp));    no size of for bit-field

}

//  int :12         bit-field cannot be a return value;
//  main3( int a:8 ) bit-field cannot be an argument;
main3( int a )
{
     // int b:9;       // nor local variable
     int b,i;
     i = 7;


     b = g.pte.rpn = -333;
     printf("#0339:main3-0: %d\n",b);
     b = g.pte.rpn--;
     printf("#0341:main3-1: %d\n",b);
     b = g.pte.rpn++;
     printf("#0343:main3-2: %d\n",b);
     b = --g.pte.rpn;
     printf("#0345:main3-3: %d\n",b);
     b = ++g.pte.rpn;
     printf("#0347:main3-4: %d\n",b);
     b = (g.pte.rpn += 3);
     printf("#0349:main3-5: %d\n",b);
     b = (g.pte.rpn -= 3);
     printf("#0351:main3-6: %d\n",b);
     b = (g.pte.rpn *= 3);
     printf("#0353:main3-7: %d\n",b);
     b = (g.pte.rpn /= 3);
     printf("#0355:main3-8: %d\n",b);
     b = (g.pte.rpn %= 3);
     printf("#0357:main3-9: %d\n",b);
     b = (g.pte.rpn |= 3);
     printf("#0359:main3-10: %d\n",b);
     b = (g.pte.rpn &= 3);
     printf("#0361:main3-12: %d\n",b);
     b = (g.pte.rpn ^= 3);
     printf("#0363:main3-13: %d\n",b);
     b = (g.pte.rpn <<= 3);
     printf("#0365:main3-14: %d\n",b);
     b = (g.pte.rpn >>= 3);
     printf("#0367:main3-15: %d\n",b);

     g.pte.rpn = -333;
     printf("#0370:main3-16: %d\n",b);
     b = g.pte.rpn--;
     printf("#0372:main3-17: %d\n",b);
     b = g.pte.rpn++;
     printf("#0374:main3-18: %d\n",b);
     b = --g.pte.rpn;
     printf("#0376:main3-19: %d\n",b);
     b = ++g.pte.rpn;
     printf("#0378:main3-20: %d\n",b);
     b = (g.pte.rpn += i);
     printf("#0380:main3-21: %d\n",b);
     b = (g.pte.rpn -= i);
     printf("#0382:main3-22: %d\n",b);
     b = (g.pte.rpn *= i);
     printf("#0384:main3-23: %d\n",b);
     b = (g.pte.rpn /= i);
     printf("#0386:main3-24: %d\n",b);
     b = (g.pte.rpn %= i);
     printf("#0388:main3-25: %d\n",b);
     b = (g.pte.rpn |= i);
     printf("#0390:main3-26: %d\n",b);
     b = (g.pte.rpn &= i);
     printf("#0392:main3-27: %d\n",b);
     b = (g.pte.rpn ^= i);
     printf("#0394:main3-28: %d\n",b);
     b = (g.pte.rpn <<= i);
     printf("#0396:main3-29: %d\n",b);
     b = (g.pte.rpn >>= i);
     printf("#0398:main3-30: %d\n",b);

     return --b;
}

main4( int a )
{
     // int b:9;       // nor local variable
     int b,i;
     PTE *pg = &g;

     i = 7;


     pg->pte.rpn = -333;
     printf("#0413:main4-0: %d\n",b);
     b = pg->pte.rpn--;
     printf("#0415:main4-1: %d\n",b);
     b = pg->pte.rpn++;
     printf("#0417:main4-2: %d\n",b);
     b = --pg->pte.rpn;
     printf("#0419:main4-3: %d\n",b);
     b = ++pg->pte.rpn;
     printf("#0421:main4-4: %d\n",b);
     b = (pg->pte.rpn += 3);
     printf("#0423:main4-5: %d\n",b);
     b = (pg->pte.rpn -= 3);
     printf("#0425:main4-6: %d\n",b);
     b = (pg->pte.rpn *= 3);
     printf("#0427:main4-7: %d\n",b);
     b = (pg->pte.rpn /= 3);
     printf("#0429:main4-8: %d\n",b);
     b = (pg->pte.rpn %= 3);
     printf("#0431:main4-9: %d\n",b);
     b = (pg->pte.rpn |= 3);
     printf("#0433:main4-10: %d\n",b);
     b = (pg->pte.rpn &= 3);
     printf("#0435:main4-12: %d\n",b);
     b = (pg->pte.rpn ^= 3);
     printf("#0437:main4-13: %d\n",b);
     b = (pg->pte.rpn <<= 3);
     printf("#0439:main4-14: %d\n",b);
     b = (pg->pte.rpn >>= 3);
     printf("#0441:main4-15: %d\n",b);

     pg->pte.rpn = -333;
     printf("#0444:main4-16: %d\n",b);
     b = pg->pte.rpn--;
     printf("#0446:main4-17: %d\n",b);
     b = pg->pte.rpn++;
     printf("#0448:main4-18: %d\n",b);
     b = --pg->pte.rpn;
     printf("#0450:main4-19: %d\n",b);
     b = ++pg->pte.rpn;
     printf("#0452:main4-20: %d\n",b);
     b = (pg->pte.rpn += i);
     printf("#0454:main4-21: %d\n",b);
     b = (pg->pte.rpn -= i);
     printf("#0456:main4-22: %d\n",b);
     b = (pg->pte.rpn *= i);
     printf("#0458:main4-23: %d\n",b);
     b = (pg->pte.rpn /= i);
     printf("#0460:main4-24: %d\n",b);
     b = (pg->pte.rpn %= i);
     printf("#0462:main4-25: %d\n",b);
     b = (pg->pte.rpn |= i);
     printf("#0464:main4-26: %d\n",b);
     b = (pg->pte.rpn &= i);
     printf("#0466:main4-27: %d\n",b);
     b = (pg->pte.rpn ^= i);
     printf("#0468:main4-28: %d\n",b);
     b = (pg->pte.rpn <<= i);
     printf("#0470:main4-29: %d\n",b);
     b = (pg->pte.rpn >>= i);
     printf("#0472:main4-30: %d\n",b);

     return --b;
}





union ll1 {
   int a[8];
   struct {
        char a:4;
	long long v:33;
	long long w:33;
	long long x:33;
   } b;
} ll1;

union ll0 {
   int a[8];
   struct {
        char a:4;
	long long v:48;
	long long w:48;
	long long x:48;
   } b;
} ll0;


union ll {
   int a[8];
   struct {
        char a:4;
	long long v:56;
	long long w:56;
	long long x:56;
   } b;
} ll;

union cc {
   int a;
   struct {
	char a:1;
	char b:4;
	char c:7;
	char d:4;
	char e:4;
	char f:4;
   } b;
} cc;

union ii {
   int a;
   struct {
	int a:1;
	int b:4;
	int c:4;
	int d:4;
	int e:4;
	int f:4;
    } b;
} ii;

long long m1 = 0x123456789abcdefLL;
int p1 = 1;
int zero = 0;

main5c()
{
     ii.b.a = -1;
     printf("#0543:m5c-00:%d\n",ii.b.a);

     ll1.b.v = 0x123456789abcdefLL;
     printf("#0546:m5c-01:%llx\n",ll1.b.v);
     printf("#0547:m5c-02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
	ll1.a[0],ll1.a[1],ll1.a[2],ll1.a[3],
	ll1.a[4],ll1.a[5],ll1.a[6],ll1.a[7]
      );
     ll1.b.v = 0;
     printf("#0552:m5c-01:%llx\n",
	 ll1.b.w = 0x123456789abcdefLL);
     printf("#0554:m5c-02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
	ll1.a[0],ll1.a[1],ll1.a[2],ll1.a[3],
	ll1.a[4],ll1.a[5],ll1.a[6],ll1.a[7]
      );
     ll1.b.w = 0;
     printf("#0559:m5c-01:%llx\n",
	 ll1.b.x = 0x123456789abcdefLL);
     printf("#0561:m5c-02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
	ll1.a[0],ll1.a[1],ll1.a[2],ll1.a[3],
	ll1.a[4],ll1.a[5],ll1.a[6],ll1.a[7]
      );
     ll1.b.x = 0;

     printf("#0567:m5c-01:%llx\n",
	 ll0.b.v = 0x123456789abcdefLL);
     printf("#0569:m5c-01:%llx\n",ll0.b.v);
     printf("#0570:m5c-02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
	ll0.a[0],ll0.a[1],ll0.a[2],ll0.a[3],
	ll0.a[4],ll0.a[5],ll0.a[6],ll0.a[7]
      );
     ll0.b.v = 0;
     printf("#0575:m5c-01:%llx\n",
	 ll0.b.w = 0x123456789abcdefLL);
     printf("#0577:m5c-02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
	ll0.a[0],ll0.a[1],ll0.a[2],ll0.a[3],
	ll0.a[4],ll0.a[5],ll0.a[6],ll0.a[7]
      );
     ll0.b.w = 0;
     printf("#0582:m5c-01:%llx\n",
	 ll0.b.x = 0x123456789abcdefLL);
     printf("#0584:m5c-02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
	ll0.a[0],ll0.a[1],ll0.a[2],ll0.a[3],
	ll0.a[4],ll0.a[5],ll0.a[6],ll0.a[7]
      );
     ll0.b.x = 0;

     printf("#0590:m5c-01:%llx\n",
	 ll.b.v = 0x123456789abcdefLL);
     printf("#0592:m5c-1:%llx\n",ll.b.v);
     printf("#0593:m5c-2:%08x %08x %08x %08x %08x %08x %08x %08x\n",
	ll.a[0],ll.a[1],ll.a[2],ll.a[3],
	ll.a[4],ll.a[5],ll.a[6],ll.a[7]
      );
     ll.b.v = 0;
     printf("#0598:m5c-01:%llx\n",
	 ll.b.w = 0x123456789abcdefLL);
     printf("#0600:m5c-2:%08x %08x %08x %08x %08x %08x %08x %08x\n",
	ll.a[0],ll.a[1],ll.a[2],ll.a[3],
	ll.a[4],ll.a[5],ll.a[6],ll.a[7]
      );
     ll.b.w = 0;
     printf("#0605:m5c-01:%llx\n",
	 ll.b.x = 0x123456789abcdefLL);
     printf("#0607:m5c-2:%08x %08x %08x %08x %08x %08x %08x %08x\n",
	ll.a[0],ll.a[1],ll.a[2],ll.a[3],
	ll.a[4],ll.a[5],ll.a[6],ll.a[7]
      );
     ll.b.x = 0;

     printf("#0613:m5c-char a:1; char b:4; char c:7; char d:4; char e:4; char f:4;\n");
     cc.a = 0;
     cc.b.a = -1;
     printf("#0616:m5c-a:%08x\n",cc.a);
     cc.b.b = -1;
     printf("#0618:m5c-b:%08x\n",cc.a);
     cc.b.c = -1;
     printf("#0620:m5c-c:%08x\n",cc.a);
     cc.b.d = -1;
     printf("#0622:m5c-d:%08x\n",cc.a);
     cc.b.e = -1;
     printf("#0624:m5c-e:%08x\n",cc.a);
     cc.b.f = -1;
     printf("#0626:m5c-f:%08x\n",cc.a);
     printf("#0627:m5c-3:%d %d\n",cc.b.c,cc.b.d);
     cc.a = -1;
     printf("#0629:m5c-f:%08x\n",cc.a);
     cc.b.a = 0;
     printf("#0631:m5c-a:%08x\n",cc.a);
     cc.b.b = 0;
     printf("#0633:m5c-b:%08x\n",cc.a);
     cc.b.c = 0;
     printf("#0635:m5c-c:%08x\n",cc.a);
     cc.b.d = 0;
     printf("#0637:m5c-d:%08x\n",cc.a);
     cc.b.e = 0;
     printf("#0639:m5c-e:%08x\n",cc.a);
     cc.b.f = 0;
     printf("#0641:m5c-f:%08x\n",cc.a);
     printf("#0642:m5c-3:%d %d\n",cc.b.c,cc.b.d);
     cc.a = 0;
     printf("#0644:m5c-f:%08x\n",cc.a);
     cc.b.a = 1;
     printf("#0646:m5c-a:%08x\n",cc.a);
     cc.b.b = 1;
     printf("#0648:m5c-b:%08x\n",cc.a);
     cc.b.c = 1;
     printf("#0650:m5c-c:%08x\n",cc.a);
     cc.b.d = 1;
     printf("#0652:m5c-d:%08x\n",cc.a);
     cc.b.e = 1;
     printf("#0654:m5c-e:%08x\n",cc.a);
     cc.b.f = 1;
     printf("#0656:m5c-f:%08x\n",cc.a);
     printf("#0657:m5c-3:%d %d\n",cc.b.c,cc.b.d);
     cc.a = -1;
     printf("#0659:m5c-f:%08x\n",cc.a);
     cc.b.a = 1;
     printf("#0661:m5c-a:%08x\n",cc.a);
     cc.b.b = 1;
     printf("#0663:m5c-b:%08x\n",cc.a);
     cc.b.c = 1;
     printf("#0665:m5c-c:%08x\n",cc.a);
     cc.b.d = 1;
     printf("#0667:m5c-d:%08x\n",cc.a);
     cc.b.e = 1;
     printf("#0669:m5c-e:%08x\n",cc.a);
     cc.b.f = 1;
     printf("#0671:m5c-f:%08x\n",cc.a);
     printf("#0672:m5c-3:%d %d\n",cc.b.c,cc.b.d);

     ii.b.a = -1;
     printf("#0675:m5c-6:%08x\n",ii.a);
     ii.b.d = -1;
     printf("#0677:m5c-6:%08x\n",ii.a);
     printf("#0678:m5c-5:%d %d\n",ii.b.a,ii.b.d);
}

main5()
{
     ii.b.a = -1;
     printf("#0684:00:%d\n",ii.b.a);

     ll1.b.v = m1;
     printf("#0687:01:%llx\n",ll1.b.v);
     printf("#0688:02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
	ll1.a[0],ll1.a[1],ll1.a[2],ll1.a[3],
	ll1.a[4],ll1.a[5],ll1.a[6],ll1.a[7]
      );
     ll1.b.v = zero;
     ll1.b.w = m1;
     printf("#0694:02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
	ll1.a[0],ll1.a[1],ll1.a[2],ll1.a[3],
	ll1.a[4],ll1.a[5],ll1.a[6],ll1.a[7]
      );
     ll1.b.w = zero;
     ll1.b.x = m1;
     printf("#0700:02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
	ll1.a[0],ll1.a[1],ll1.a[2],ll1.a[3],
	ll1.a[4],ll1.a[5],ll1.a[6],ll1.a[7]
      );
     ll1.b.x = zero;

     ll0.b.v = m1;
     printf("#0707:01:%llx\n",ll0.b.v);
     printf("#0708:02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
	ll0.a[0],ll0.a[1],ll0.a[2],ll0.a[3],
	ll0.a[4],ll0.a[5],ll0.a[6],ll0.a[7]
      );
     ll0.b.v = zero;
     ll0.b.w = m1;
     printf("#0714:02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
	ll0.a[0],ll0.a[1],ll0.a[2],ll0.a[3],
	ll0.a[4],ll0.a[5],ll0.a[6],ll0.a[7]
      );
     ll0.b.w = zero;
     ll0.b.x = m1;
     printf("#0720:02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
	ll0.a[0],ll0.a[1],ll0.a[2],ll0.a[3],
	ll0.a[4],ll0.a[5],ll0.a[6],ll0.a[7]
      );
     ll0.b.x = zero;

     ll.b.v = m1;
     printf("#0727:1:%llx\n",ll.b.v);
     printf("#0728:2:%08x %08x %08x %08x %08x %08x %08x %08x\n",
	ll.a[0],ll.a[1],ll.a[2],ll.a[3],
	ll.a[4],ll.a[5],ll.a[6],ll.a[7]
      );
     ll.b.v = zero;
     ll.b.w = m1;
     printf("#0734:2:%08x %08x %08x %08x %08x %08x %08x %08x\n",
	ll.a[0],ll.a[1],ll.a[2],ll.a[3],
	ll.a[4],ll.a[5],ll.a[6],ll.a[7]
      );
     ll.b.w = zero;
     ll.b.x = m1;
     printf("#0740:2:%08x %08x %08x %08x %08x %08x %08x %08x\n",
	ll.a[0],ll.a[1],ll.a[2],ll.a[3],
	ll.a[4],ll.a[5],ll.a[6],ll.a[7]
      );
     ll.b.x = zero;

     cc.a = zero;
     printf("#0747:char a:1; char b:4; char c:7; char d:4; char e:4; char f:4;\n");
     cc.b.a = m1;
     printf("#0749:a:%08x\n",cc.a);
     cc.b.b = m1;
     printf("#0751:b:%08x\n",cc.a);
     cc.b.c = m1;
     printf("#0753:c:%08x\n",cc.a);
     cc.b.d = m1;
     printf("#0755:d:%08x\n",cc.a);
     cc.b.e = m1;
     printf("#0757:e:%08x\n",cc.a);
     cc.b.f = m1;
     printf("#0759:f:%08x\n",cc.a);
     printf("#0760:3:%d %d\n",cc.b.c,cc.b.d);
     cc.a = m1;
     printf("#0762:f:%08x\n",cc.a);
     cc.b.a = zero;
     printf("#0764:a:%08x\n",cc.a);
     cc.b.b = zero;
     printf("#0766:b:%08x\n",cc.a);
     cc.b.c = zero;
     printf("#0768:c:%08x\n",cc.a);
     cc.b.d = zero;
     printf("#0770:d:%08x\n",cc.a);
     cc.b.e = zero;
     printf("#0772:e:%08x\n",cc.a);
     cc.b.f = zero;
     printf("#0774:f:%08x\n",cc.a);
     printf("#0775:3:%d %d\n",cc.b.c,cc.b.d);
     cc.a = zero;
     printf("#0777:f:%08x\n",cc.a);
     cc.b.a = p1;
     printf("#0779:a:%08x\n",cc.a);
     cc.b.b = p1;
     printf("#0781:b:%08x\n",cc.a);
     cc.b.c = p1;
     printf("#0783:c:%08x\n",cc.a);
     cc.b.d = p1;
     printf("#0785:d:%08x\n",cc.a);
     cc.b.e = p1;
     printf("#0787:e:%08x\n",cc.a);
     cc.b.f = p1;
     printf("#0789:f:%08x\n",cc.a);
     printf("#0790:3:%d %d\n",cc.b.c,cc.b.d);
     cc.a = m1;
     printf("#0792:f:%08x\n",cc.a);
     cc.b.a = p1;
     printf("#0794:a:%08x\n",cc.a);
     cc.b.b = p1;
     printf("#0796:b:%08x\n",cc.a);
     cc.b.c = p1;
     printf("#0798:c:%08x\n",cc.a);
     cc.b.d = p1;
     printf("#0800:d:%08x\n",cc.a);
     cc.b.e = p1;
     printf("#0802:e:%08x\n",cc.a);
     cc.b.f = p1;
     printf("#0804:f:%08x\n",cc.a);
     printf("#0805:3:%d %d\n",cc.b.c,cc.b.d);

     ii.b.a = m1;
     printf("#0808:6:%08x\n",ii.a);
     ii.b.d = m1;
     printf("#0810:6:%08x\n",ii.a);
     printf("#0811:5:%d %d\n",ii.b.a,ii.b.d);
}


main3l( int a )
{
     // int b:9;       // nor local variable
     long long b,i;
     i = 7;


     g.pte.lpn = -333;
     printf("#0823:main3l-0: %d\n",b);
     b = g.pte.lpn--;
     printf("#0825:main3l-1: %d\n",b);
     b = g.pte.lpn++;
     printf("#0827:main3l-2: %d\n",b);
     b = --g.pte.lpn;
     printf("#0829:main3l-3: %d\n",b);
     b = ++g.pte.lpn;
     printf("#0831:main3l-4: %d\n",b);
     b = (g.pte.lpn += 3);
     printf("#0833:main3l-5: %d\n",b);
     b = (g.pte.lpn -= 3);
     printf("#0835:main3l-6: %d\n",b);
     b = (g.pte.lpn *= 3);
     printf("#0837:main3l-7: %d\n",b);
     b = (g.pte.lpn /= 3);
     printf("#0839:main3l-8: %d\n",b);
     b = (g.pte.lpn %= 3);
     printf("#0841:main3l-9: %d\n",b);
     b = (g.pte.lpn |= 3);
     printf("#0843:main3l-10: %d\n",b);
     b = (g.pte.lpn &= 3);
     printf("#0845:main3l-12: %d\n",b);
     b = (g.pte.lpn ^= 3);
     printf("#0847:main3l-13: %d\n",b);
     b = (g.pte.lpn <<= 3);
     printf("#0849:main3l-14: %d\n",b);
     b = (g.pte.lpn >>= 3);
     printf("#0851:main3l-15: %d\n",b);

     g.pte.lpn = -333;
     printf("#0854:main3l-16: %d\n",b);
     b = g.pte.lpn--;
     printf("#0856:main3l-17: %d\n",b);
     b = g.pte.lpn++;
     printf("#0858:main3l-18: %d\n",b);
     b = --g.pte.lpn;
     printf("#0860:main3l-19: %d\n",b);
     b = ++g.pte.lpn;
     printf("#0862:main3l-20: %d\n",b);
     b = (g.pte.lpn += i);
     printf("#0864:main3l-21: %d\n",b);
     b = (g.pte.lpn -= i);
     printf("#0866:main3l-22: %d\n",b);
     b = (g.pte.lpn *= i);
     printf("#0868:main3l-23: %d\n",b);
     b = (g.pte.lpn /= i);
     printf("#0870:main3l-24: %d\n",b);
     b = (g.pte.lpn %= i);
     printf("#0872:main3l-25: %d\n",b);
     b = (g.pte.lpn |= i);
     printf("#0874:main3l-26: %d\n",b);
     b = (g.pte.lpn &= i);
     printf("#0876:main3l-27: %d\n",b);
     b = (g.pte.lpn ^= i);
     printf("#0878:main3l-28: %d\n",b);
     b = (g.pte.lpn <<= i);
     printf("#0880:main3l-29: %d\n",b);
     b = (g.pte.lpn >>= i);
     printf("#0882:main3l-30: %d\n",b);

     return --b;
}


main6()
{
    int i =0;
	g.pte.api = 0;
	printf("#0892:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 1;
	printf("#0894:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 2;
	printf("#0896:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 3;
	printf("#0898:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 4;
	printf("#0900:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 5;
	printf("#0902:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 6;
	printf("#0904:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 7;
	printf("#0906:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 8;
	printf("#0908:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 9;
	printf("#0910:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 10;
	printf("#0912:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 11;
	printf("#0914:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 12;
	printf("#0916:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 13;
	printf("#0918:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 14;
	printf("#0920:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 15;
	printf("#0922:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 16;
	printf("#0924:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 17;
	printf("#0926:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 18;
	printf("#0928:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 19;
	printf("#0930:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 20;
	printf("#0932:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 21;
	printf("#0934:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 22;
	printf("#0936:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 23;
	printf("#0938:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 24;
	printf("#0940:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 25;
	printf("#0942:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 26;
	printf("#0944:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 27;
	printf("#0946:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 28;
	printf("#0948:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 29;
	printf("#0950:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 30;
	printf("#0952:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 31;
	printf("#0954:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 32;
	printf("#0956:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 33;
	printf("#0958:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 34;
	printf("#0960:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 35;
	printf("#0962:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 36;
	printf("#0964:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 37;
	printf("#0966:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 38;
	printf("#0968:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 39;
	printf("#0970:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 40;
	printf("#0972:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 41;
	printf("#0974:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 42;
	printf("#0976:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 43;
	printf("#0978:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 44;
	printf("#0980:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 45;
	printf("#0982:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 46;
	printf("#0984:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 47;
	printf("#0986:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 48;
	printf("#0988:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 49;
	printf("#0990:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 50;
	printf("#0992:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 51;
	printf("#0994:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 52;
	printf("#0996:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 53;
	printf("#0998:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 54;
	printf("#1000:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 55;
	printf("#1002:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 56;
	printf("#1004:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 57;
	printf("#1006:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 58;
	printf("#1008:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 59;
	printf("#1010:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 60;
	printf("#1012:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 61;
	printf("#1014:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 62;
	printf("#1016:main5: %d %d\n",i++,g.pte.api);
	g.pte.api = 63;
	printf("#1018:main5: %d %d\n",i++,g.pte.api);
}

main7()
{
    int i;
    for (i=-2;i<2;i++) {
	g.pte.api = i;
	if (g.pte.api) {
	    printf("#1027:main 7:1 %d yes\n",i);
	} else {
	    printf("#1029:main 7:1 %d no\n",i);
	}
	if (g.pte.api==1) {
	    printf("#1032:main 7:2 %d yes\n",i);
	} else {
	    printf("#1034:main 7:2 %d no\n",i);
	}
	if (g.pte.api==-1) {
	    printf("#1037:main 7:3 %d yes\n",i);
	} else {
	    printf("#1039:main 7:3 %d no\n",i);
	}
    }
    for (i=-2;i<2;i++) {
	g.sg.v = i;
	if (g.sg.v) {
	    printf("#1045:main 7:4 %d yes\n",i);
	} else {
	    printf("#1047:main 7:4 %d no\n",i);
	}
	if (g.sg.v==1) {
	    printf("#1050:main 7:5 %d yes\n",i);
	} else {
	    printf("#1052:main 7:5 %d no\n",i);
	}
	if (g.sg.v==-1) {
	    printf("#1055:main 7:6 %d yes\n",i);
	} else {
	    printf("#1057:main 7:6 %d no\n",i);
	}
    }
}

/* end */