annotate test/bitfield.c @ 935:7672a37e7545 default tip

Raspbery PI ARM support begin
author kono
date Sat, 24 Dec 2016 03:02:57 +0000
parents 5313ed059cee
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
467
32737bad7489 fix list/tag interference
kono
parents: 427
diff changeset
1 int printf(const char *format, ...);
820
9598ecec0af5 rvalue, RSTRUCT, non parse mode
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 790
diff changeset
2 typedef unsigned long long ULL;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
3
d488b72254fb bit-field done.
kono
parents:
diff changeset
4 typedef union {
d488b72254fb bit-field done.
kono
parents:
diff changeset
5 struct _PTE {
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
6 unsigned long v:1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
7 unsigned long vsid:24;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
8 unsigned long h:1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
9 unsigned long api:6;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
10 unsigned long rpn:20;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
11
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
12 unsigned long :3;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
13 unsigned long r:1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
14 unsigned long c:1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
15 unsigned long w:1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
16 unsigned long i:1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
17 unsigned long m:1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
18 unsigned long g:1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
19 unsigned long :1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
20 unsigned long pp:2;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
21 long long lpn:40;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
22 } pte;
d488b72254fb bit-field done.
kono
parents:
diff changeset
23 struct {
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
24 char v:1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
25 signed long vsid:24;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
26 unsigned long h:1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
27 signed char api:6;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
28 signed long rpn:20;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
29
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
30 signed long :3;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
31 unsigned long r:1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
32 unsigned long c:1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
33 unsigned long w:1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
34 unsigned long i:1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
35 unsigned long m:1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
36 unsigned long g:1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
37 unsigned long :1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
38 signed long pp:2;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
39 } sg;
d488b72254fb bit-field done.
kono
parents:
diff changeset
40 unsigned long u[2];
d488b72254fb bit-field done.
kono
parents:
diff changeset
41 } PTE;
d488b72254fb bit-field done.
kono
parents:
diff changeset
42
d488b72254fb bit-field done.
kono
parents:
diff changeset
43 PTE g;
d488b72254fb bit-field done.
kono
parents:
diff changeset
44
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
45 static void main2();
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
46 static void main5();
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
47 static void main5c();
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
48 static int main3();
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
49 static int main4();
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
50 static void main6();
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
51 static void main7();
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
52
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
53 int
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
54 main()
d488b72254fb bit-field done.
kono
parents:
diff changeset
55 {
d488b72254fb bit-field done.
kono
parents:
diff changeset
56 PTE a,*p;
d488b72254fb bit-field done.
kono
parents:
diff changeset
57 int i = 0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
58 int j = 0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
59
d488b72254fb bit-field done.
kono
parents:
diff changeset
60 a.pte.rpn = 55;
d488b72254fb bit-field done.
kono
parents:
diff changeset
61 j = a.pte.rpn;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
62 printf("#0061:% 3d: %d\n",i++,j);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
63 a.pte.c = 1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
64 j = a.pte.c;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
65 printf("#0064:% 3d: %d\n",i++,j);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
66 a.pte.pp = -1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
67 j = a.pte.pp;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
68 printf("#0067:% 3d: %d\n",i++,j);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
69 a.sg.pp = -1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
70 j = a.sg.pp;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
71 printf("#0070:% 3d: %d\n",i++,j);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
72
d488b72254fb bit-field done.
kono
parents:
diff changeset
73 p = &g;
d488b72254fb bit-field done.
kono
parents:
diff changeset
74
d488b72254fb bit-field done.
kono
parents:
diff changeset
75 g.u[0]=0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
76 g.u[1]=0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
77
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
78 printf("#0077:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
79 g.pte. v = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
80 printf("#0079:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
81 g.pte. vsid = 0xffffff;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
82 printf("#0081:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
83 g.pte. h = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
84 printf("#0083:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
85 g.pte. api = 3;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
86 printf("#0085:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
87 g.pte. rpn = 3;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
88 printf("#0087:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
89
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
90 g.pte. r = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
91 printf("#0090:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
92 g.pte. c = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
93 printf("#0092:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
94 g.pte. w = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
95 printf("#0094:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
96 g.pte. i = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
97 printf("#0096:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
98 g.pte. m = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
99 printf("#0098:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
100 g.pte. g = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
101 printf("#0100:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
102 g.pte. pp = 3;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
103 printf("#0102:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
104
d488b72254fb bit-field done.
kono
parents:
diff changeset
105 g.u[0]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
106 g.u[1]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
107
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
108 printf("#0107:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
109 g.pte. v = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
110 printf("#0109:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
111 g.pte. vsid = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
112 printf("#0111:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
113 g.pte. h = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
114 printf("#0113:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
115 g.pte. api = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
116 printf("#0115:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
117 g.pte. rpn = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
118 printf("#0117:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
119
d488b72254fb bit-field done.
kono
parents:
diff changeset
120 g.pte. r = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
121 printf("#0120:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
122 g.pte. c = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
123 printf("#0122:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
124 g.pte. w = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
125 printf("#0124:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
126 g.pte. i = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
127 printf("#0126:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
128 g.pte. m = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
129 printf("#0128:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
130 g.pte. g = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
131 printf("#0130:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
132 g.pte. pp = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
133 printf("#0132:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
134
d488b72254fb bit-field done.
kono
parents:
diff changeset
135 g.u[0]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
136 g.u[1]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
137
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
138 printf("#0137:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
139 g.pte. v = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
140 printf("#0139:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
141 g.pte. vsid = 0x555555;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
142 printf("#0141:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
143 g.pte. h = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
144 printf("#0143:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
145 g.pte. api = 0x15;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
146 printf("#0145:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
147 g.pte. rpn = 0x55555;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
148 printf("#0147:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
149
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
150 g.pte. r = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
151 printf("#0150:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
152 g.pte. c = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
153 printf("#0152:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
154 g.pte. w = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
155 printf("#0154:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
156 g.pte. i = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
157 printf("#0156:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
158 g.pte. m = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
159 printf("#0158:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
160 g.pte. g = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
161 printf("#0160:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
162 g.pte. pp = 3;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
163 printf("#0162:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
164
d488b72254fb bit-field done.
kono
parents:
diff changeset
165 g.u[0]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
166 g.u[1]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
167
d488b72254fb bit-field done.
kono
parents:
diff changeset
168 for(i=0;i<0x200;i++) {
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
169 printf("#0168:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
170 g.pte. v = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
171 printf("#0170:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
172 g.pte. vsid = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
173 printf("#0172:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
174 g.pte. h = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
175 printf("#0174:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
176 g.pte. api = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
177 printf("#0176:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
178 g.pte. rpn = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
179 printf("#0178:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
180
d488b72254fb bit-field done.
kono
parents:
diff changeset
181 g.pte. r = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
182 printf("#0181:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
183 g.pte. c = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
184 printf("#0183:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
185 g.pte. w = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
186 printf("#0185:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
187 g.pte. i = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
188 printf("#0187:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
189 g.pte. m = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
190 printf("#0189:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
191 g.pte. g = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
192 printf("#0191:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
193 g.pte. pp = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
194 printf("#0193:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
195 }
d488b72254fb bit-field done.
kono
parents:
diff changeset
196
d488b72254fb bit-field done.
kono
parents:
diff changeset
197 g = a;
d488b72254fb bit-field done.
kono
parents:
diff changeset
198
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
199 printf("#0198:%d %d %d\n",a.pte.pp,g.pte.pp,p->pte.pp);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
200 main2();
d488b72254fb bit-field done.
kono
parents:
diff changeset
201 main5();
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
202 main5c();
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
203 main3();
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
204 main4();
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
205 main6();
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
206 main7();
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
207 return 0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
208 }
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
209 void
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
210 main2()
d488b72254fb bit-field done.
kono
parents:
diff changeset
211 {
d488b72254fb bit-field done.
kono
parents:
diff changeset
212 int i = 0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
213
d488b72254fb bit-field done.
kono
parents:
diff changeset
214 g.u[0]=0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
215 g.u[1]=0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
216
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
217 printf("#0216:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
218 g.sg. v = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
219 printf("#0218:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
220 g.sg. vsid = 0xffffff;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
221 printf("#0220:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
222 g.sg. h = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
223 printf("#0222:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
224 g.sg. api = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
225 printf("#0224:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
226 g.sg. rpn = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
227 printf("#0226:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
228
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
229 g.sg. r = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
230 printf("#0229:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
231 g.sg. c = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
232 printf("#0231:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
233 g.sg. w = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
234 printf("#0233:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
235 g.sg. i = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
236 printf("#0235:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
237 g.sg. m = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
238 printf("#0237:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
239 g.sg. g = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
240 printf("#0239:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
241 g.sg. pp = 0x3;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
242 printf("#0241:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
243
d488b72254fb bit-field done.
kono
parents:
diff changeset
244 g.u[0]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
245 g.u[1]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
246
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
247 printf("#0246:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
248 g.sg. v = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
249 printf("#0248:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
250 g.sg. vsid = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
251 printf("#0250:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
252 g.sg. h = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
253 printf("#0252:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
254 g.sg. api = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
255 printf("#0254:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
256 g.sg. rpn = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
257 printf("#0256:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
258
d488b72254fb bit-field done.
kono
parents:
diff changeset
259 g.sg. r = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
260 printf("#0259:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
261 g.sg. c = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
262 printf("#0261:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
263 g.sg. w = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
264 printf("#0263:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
265 g.sg. i = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
266 printf("#0265:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
267 g.sg. m = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
268 printf("#0267:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
269 g.sg. g = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
270 printf("#0269:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
271 g.sg. pp = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
272 printf("#0271:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
273
d488b72254fb bit-field done.
kono
parents:
diff changeset
274 g.u[0]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
275 g.u[1]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
276
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
277 printf("#0276:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
278 g.sg. v = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
279 printf("#0278:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
280 g.sg. vsid = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
281 printf("#0280:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
282 g.sg. h = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
283 printf("#0282:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
284 g.sg. api = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
285 printf("#0284:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
286 g.sg. rpn = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
287 printf("#0286:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
288
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
289 g.sg. r = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
290 printf("#0289:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
291 g.sg. c = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
292 printf("#0291:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
293 g.sg. w = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
294 printf("#0293:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
295 g.sg. i = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
296 printf("#0295:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
297 g.sg. m = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
298 printf("#0297:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
299 g.sg. g = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
300 printf("#0299:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
301 g.sg. pp = 3;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
302 printf("#0301:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
303
d488b72254fb bit-field done.
kono
parents:
diff changeset
304 g.u[0]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
305 g.u[1]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
306
d488b72254fb bit-field done.
kono
parents:
diff changeset
307 for(i=-0x100;i<0x100;i++) {
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
308 printf("#0307:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
309 g.sg. v = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
310 printf("#0309:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
311 g.sg. vsid = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
312 printf("#0311:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
313 g.sg. h = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
314 printf("#0313:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
315 g.sg. api = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
316 printf("#0315:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
317 g.sg. rpn = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
318 printf("#0317:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
319
d488b72254fb bit-field done.
kono
parents:
diff changeset
320 g.sg. r = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
321 printf("#0320:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
322 g.sg. c = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
323 printf("#0322:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
324 g.sg. w = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
325 printf("#0324:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
326 g.sg. i = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
327 printf("#0326:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
328 g.sg. m = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
329 printf("#0328:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
330 g.sg. g = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
331 printf("#0330:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
332 g.sg. pp = i;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
333 printf("#0332:% 3d: 0x%16lx%16lx\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
334 }
d488b72254fb bit-field done.
kono
parents:
diff changeset
335
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
336 // printf("#0335:size of %d\n",sizeof(g.sg.pp)); no size of for bit-field
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
337
d488b72254fb bit-field done.
kono
parents:
diff changeset
338 }
d488b72254fb bit-field done.
kono
parents:
diff changeset
339
d488b72254fb bit-field done.
kono
parents:
diff changeset
340 // int :12 bit-field cannot be a return value;
d488b72254fb bit-field done.
kono
parents:
diff changeset
341 // main3( int a:8 ) bit-field cannot be an argument;
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
342 int
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
343 main3( int a )
d488b72254fb bit-field done.
kono
parents:
diff changeset
344 {
d488b72254fb bit-field done.
kono
parents:
diff changeset
345 // int b:9; // nor local variable
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
346 int b,i;
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
347 i = 7;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
348
d488b72254fb bit-field done.
kono
parents:
diff changeset
349
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
350 b = g.pte.rpn = -333;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
351 printf("#0350:main3-0: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
352 b = g.pte.rpn--;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
353 printf("#0352:main3-1: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
354 b = g.pte.rpn++;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
355 printf("#0354:main3-2: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
356 b = --g.pte.rpn;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
357 printf("#0356:main3-3: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
358 b = ++g.pte.rpn;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
359 printf("#0358:main3-4: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
360 b = (g.pte.rpn += 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
361 printf("#0360:main3-5: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
362 b = (g.pte.rpn -= 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
363 printf("#0362:main3-6: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
364 b = (g.pte.rpn *= 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
365 printf("#0364:main3-7: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
366 b = (g.pte.rpn /= 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
367 printf("#0366:main3-8: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
368 b = (g.pte.rpn %= 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
369 printf("#0368:main3-9: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
370 b = (g.pte.rpn |= 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
371 printf("#0370:main3-10: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
372 b = (g.pte.rpn &= 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
373 printf("#0372:main3-12: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
374 b = (g.pte.rpn ^= 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
375 printf("#0374:main3-13: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
376 b = (g.pte.rpn <<= 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
377 printf("#0376:main3-14: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
378 b = (g.pte.rpn >>= 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
379 printf("#0378:main3-15: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
380
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
381 g.pte.rpn = -333;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
382 printf("#0381:main3-16: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
383 b = g.pte.rpn--;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
384 printf("#0383:main3-17: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
385 b = g.pte.rpn++;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
386 printf("#0385:main3-18: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
387 b = --g.pte.rpn;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
388 printf("#0387:main3-19: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
389 b = ++g.pte.rpn;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
390 printf("#0389:main3-20: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
391 b = (g.pte.rpn += i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
392 printf("#0391:main3-21: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
393 b = (g.pte.rpn -= i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
394 printf("#0393:main3-22: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
395 b = (g.pte.rpn *= i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
396 printf("#0395:main3-23: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
397 b = (g.pte.rpn /= i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
398 printf("#0397:main3-24: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
399 b = (g.pte.rpn %= i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
400 printf("#0399:main3-25: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
401 b = (g.pte.rpn |= i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
402 printf("#0401:main3-26: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
403 b = (g.pte.rpn &= i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
404 printf("#0403:main3-27: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
405 b = (g.pte.rpn ^= i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
406 printf("#0405:main3-28: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
407 b = (g.pte.rpn <<= i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
408 printf("#0407:main3-29: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
409 b = (g.pte.rpn >>= i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
410 printf("#0409:main3-30: %d\n",b);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
411
d488b72254fb bit-field done.
kono
parents:
diff changeset
412 return --b;
d488b72254fb bit-field done.
kono
parents:
diff changeset
413 }
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
414 int
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
415 main4( int a )
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
416 {
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
417 // int b:9; // nor local variable
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
418 int b,i;
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
419 PTE *pg = &g;
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
420
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
421 i = 7;
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
422
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
423
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
424 pg->pte.rpn = -333;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
425 printf("#0424:main4-0: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
426 b = pg->pte.rpn--;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
427 printf("#0426:main4-1: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
428 b = pg->pte.rpn++;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
429 printf("#0428:main4-2: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
430 b = --pg->pte.rpn;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
431 printf("#0430:main4-3: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
432 b = ++pg->pte.rpn;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
433 printf("#0432:main4-4: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
434 b = (pg->pte.rpn += 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
435 printf("#0434:main4-5: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
436 b = (pg->pte.rpn -= 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
437 printf("#0436:main4-6: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
438 b = (pg->pte.rpn *= 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
439 printf("#0438:main4-7: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
440 b = (pg->pte.rpn /= 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
441 printf("#0440:main4-8: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
442 b = (pg->pte.rpn %= 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
443 printf("#0442:main4-9: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
444 b = (pg->pte.rpn |= 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
445 printf("#0444:main4-10: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
446 b = (pg->pte.rpn &= 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
447 printf("#0446:main4-12: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
448 b = (pg->pte.rpn ^= 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
449 printf("#0448:main4-13: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
450 b = (pg->pte.rpn <<= 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
451 printf("#0450:main4-14: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
452 b = (pg->pte.rpn >>= 3);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
453 printf("#0452:main4-15: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
454
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
455 pg->pte.rpn = -333;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
456 printf("#0455:main4-16: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
457 b = pg->pte.rpn--;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
458 printf("#0457:main4-17: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
459 b = pg->pte.rpn++;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
460 printf("#0459:main4-18: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
461 b = --pg->pte.rpn;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
462 printf("#0461:main4-19: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
463 b = ++pg->pte.rpn;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
464 printf("#0463:main4-20: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
465 b = (pg->pte.rpn += i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
466 printf("#0465:main4-21: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
467 b = (pg->pte.rpn -= i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
468 printf("#0467:main4-22: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
469 b = (pg->pte.rpn *= i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
470 printf("#0469:main4-23: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
471 b = (pg->pte.rpn /= i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
472 printf("#0471:main4-24: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
473 b = (pg->pte.rpn %= i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
474 printf("#0473:main4-25: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
475 b = (pg->pte.rpn |= i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
476 printf("#0475:main4-26: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
477 b = (pg->pte.rpn &= i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
478 printf("#0477:main4-27: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
479 b = (pg->pte.rpn ^= i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
480 printf("#0479:main4-28: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
481 b = (pg->pte.rpn <<= i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
482 printf("#0481:main4-29: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
483 b = (pg->pte.rpn >>= i);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
484 printf("#0483:main4-30: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
485
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
486 return --b;
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
487 }
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
488
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
489
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
490
d488b72254fb bit-field done.
kono
parents:
diff changeset
491
d488b72254fb bit-field done.
kono
parents:
diff changeset
492
d488b72254fb bit-field done.
kono
parents:
diff changeset
493 union ll1 {
d488b72254fb bit-field done.
kono
parents:
diff changeset
494 int a[8];
d488b72254fb bit-field done.
kono
parents:
diff changeset
495 struct {
d488b72254fb bit-field done.
kono
parents:
diff changeset
496 char a:4;
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
497 unsigned long long v:33;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
498 unsigned long long w:33;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
499 unsigned long long x:33;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
500 } b;
d488b72254fb bit-field done.
kono
parents:
diff changeset
501 } ll1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
502
d488b72254fb bit-field done.
kono
parents:
diff changeset
503 union ll0 {
d488b72254fb bit-field done.
kono
parents:
diff changeset
504 int a[8];
d488b72254fb bit-field done.
kono
parents:
diff changeset
505 struct {
d488b72254fb bit-field done.
kono
parents:
diff changeset
506 char a:4;
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
507 unsigned long long v:48;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
508 unsigned long long w:48;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
509 unsigned long long x:48;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
510 } b;
d488b72254fb bit-field done.
kono
parents:
diff changeset
511 } ll0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
512
d488b72254fb bit-field done.
kono
parents:
diff changeset
513
d488b72254fb bit-field done.
kono
parents:
diff changeset
514 union ll {
d488b72254fb bit-field done.
kono
parents:
diff changeset
515 int a[8];
d488b72254fb bit-field done.
kono
parents:
diff changeset
516 struct {
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
517 unsigned char a:4;
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
518 unsigned long long v:56;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
519 unsigned long long w:56;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
520 unsigned long long x:56;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
521 } b;
d488b72254fb bit-field done.
kono
parents:
diff changeset
522 } ll;
d488b72254fb bit-field done.
kono
parents:
diff changeset
523
d488b72254fb bit-field done.
kono
parents:
diff changeset
524 union cc {
d488b72254fb bit-field done.
kono
parents:
diff changeset
525 int a;
d488b72254fb bit-field done.
kono
parents:
diff changeset
526 struct {
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
527 char a:1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
528 char b:4;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
529 char c:7;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
530 char d:4;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
531 char e:4;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
532 char f:4;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
533 } b;
d488b72254fb bit-field done.
kono
parents:
diff changeset
534 } cc;
d488b72254fb bit-field done.
kono
parents:
diff changeset
535
d488b72254fb bit-field done.
kono
parents:
diff changeset
536 union ii {
d488b72254fb bit-field done.
kono
parents:
diff changeset
537 int a;
d488b72254fb bit-field done.
kono
parents:
diff changeset
538 struct {
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
539 int a:1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
540 int b:4;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
541 int c:4;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
542 int d:4;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
543 int e:4;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
544 int f:4;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
545 } b;
d488b72254fb bit-field done.
kono
parents:
diff changeset
546 } ii;
d488b72254fb bit-field done.
kono
parents:
diff changeset
547
424
485bf7dde96a ARM non-aligned bitfield
kono
parents: 423
diff changeset
548 long long m1 = 0x123456789abcdefLL;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
549 int p1 = 1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
550 int zero = 0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
551
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
552 void
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
553 main5c()
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
554 {
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
555 ii.b.a = -1;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
556 printf("#0555:m5c-00:%d\n",ii.b.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
557
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
558 ll1.b.v = 0x123456defLL;
820
9598ecec0af5 rvalue, RSTRUCT, non parse mode
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 790
diff changeset
559 printf("#0558:m5c-01:%llx\n",(ULL)ll1.b.v);
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
560 printf("#0559:m5c-02:%16x %16x %16x %16x %16x %16x %16x %16x\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
561 ll1.a[0],ll1.a[1],ll1.a[2],ll1.a[3],
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
562 ll1.a[4],ll1.a[5],ll1.a[6],ll1.a[7]
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
563 );
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
564 ll1.b.v = 0;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
565 printf("#0564:m5c-01:%llx\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
566 (ULL)(ll1.b.w = 0x123456defLL));
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
567 printf("#0566:m5c-02:%16x %16x %16x %16x %16x %16x %16x %16x\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
568 ll1.a[0],ll1.a[1],ll1.a[2],ll1.a[3],
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
569 ll1.a[4],ll1.a[5],ll1.a[6],ll1.a[7]
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
570 );
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
571 ll1.b.w = 0;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
572 printf("#0571:m5c-01:%llx\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
573 (ULL)(ll1.b.x = -0x12456defLL));
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
574 printf("#0573:m5c-02:%16x %16x %16x %16x %16x %16x %16x %16x\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
575 ll1.a[0],ll1.a[1],ll1.a[2],ll1.a[3],
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
576 ll1.a[4],ll1.a[5],ll1.a[6],ll1.a[7]
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
577 );
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
578 ll1.b.x = 0;
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
579
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
580 printf("#0579:m5c-01:%llx\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
581 (ULL)(ll0.b.v = 0x123457cdefLL));
820
9598ecec0af5 rvalue, RSTRUCT, non parse mode
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 790
diff changeset
582 printf("#0581:m5c-01:%llx\n",(ULL)ll0.b.v);
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
583 printf("#0582:m5c-02:%16x %16x %16x %16x %16x %16x %16x %16x\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
584 ll0.a[0],ll0.a[1],ll0.a[2],ll0.a[3],
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
585 ll0.a[4],ll0.a[5],ll0.a[6],ll0.a[7]
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
586 );
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
587 ll0.b.v = 0;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
588 printf("#0587:m5c-01:%llx\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
589 (ULL)(ll0.b.w = 0x1234abcdefLL));
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
590 printf("#0589:m5c-02:%16x %16x %16x %16x %16x %16x %16x %16x\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
591 ll0.a[0],ll0.a[1],ll0.a[2],ll0.a[3],
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
592 ll0.a[4],ll0.a[5],ll0.a[6],ll0.a[7]
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
593 );
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
594 ll0.b.w = 0;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
595 printf("#0594:m5c-01:%llx\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
596 (ULL)(ll0.b.x = 0x1234abcdefLL));
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
597 printf("#0596:m5c-02:%16x %16x %16x %16x %16x %16x %16x %16x\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
598 ll0.a[0],ll0.a[1],ll0.a[2],ll0.a[3],
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
599 ll0.a[4],ll0.a[5],ll0.a[6],ll0.a[7]
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
600 );
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
601 ll0.b.x = 0;
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
602
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
603 printf("#0602:m5c-01:%llx\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
604 (ULL)(ll.b.v = 0x12389abcdefLL));
820
9598ecec0af5 rvalue, RSTRUCT, non parse mode
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 790
diff changeset
605 printf("#0604:m5c-1:%llx\n",(ULL)ll.b.v);
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
606 printf("#0605:m5c-2:%16x %16x %16x %16x %16x %16x %16x %16x\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
607 ll.a[0],ll.a[1],ll.a[2],ll.a[3],
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
608 ll.a[4],ll.a[5],ll.a[6],ll.a[7]
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
609 );
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
610 ll.b.v = 0;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
611 printf("#0610:m5c-01:%llx\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
612 (ULL)(ll.b.w = 0x12389abcdefLL));
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
613 printf("#0612:m5c-2:%16x %16x %16x %16x %16x %16x %16x %16x\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
614 ll.a[0],ll.a[1],ll.a[2],ll.a[3],
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
615 ll.a[4],ll.a[5],ll.a[6],ll.a[7]
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
616 );
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
617 ll.b.w = 0;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
618 printf("#0617:m5c-01:%llx\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
619 (ULL)(ll.b.x = 0x12389abcdefLL));
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
620 printf("#0619:m5c-2:%16x %16x %16x %16x %16x %16x %16x %16x\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
621 ll.a[0],ll.a[1],ll.a[2],ll.a[3],
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
622 ll.a[4],ll.a[5],ll.a[6],ll.a[7]
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
623 );
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
624 ll.b.x = 0;
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
625
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
626 printf("#0625:m5c-char a:1; char b:4; char c:7; char d:4; char e:4; char f:4;\n");
424
485bf7dde96a ARM non-aligned bitfield
kono
parents: 423
diff changeset
627 cc.a = 0;
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
628 cc.b.a = -1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
629 printf("#0628:m5c-a:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
630 cc.b.b = -1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
631 printf("#0630:m5c-b:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
632 cc.b.c = -1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
633 printf("#0632:m5c-c:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
634 cc.b.d = -1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
635 printf("#0634:m5c-d:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
636 cc.b.e = -1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
637 printf("#0636:m5c-e:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
638 cc.b.f = -1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
639 printf("#0638:m5c-f:%16x\n",cc.a);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
640 printf("#0639:m5c-3:%d %d\n",cc.b.c,cc.b.d);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
641 cc.a = -1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
642 printf("#0641:m5c-f:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
643 cc.b.a = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
644 printf("#0643:m5c-a:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
645 cc.b.b = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
646 printf("#0645:m5c-b:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
647 cc.b.c = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
648 printf("#0647:m5c-c:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
649 cc.b.d = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
650 printf("#0649:m5c-d:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
651 cc.b.e = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
652 printf("#0651:m5c-e:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
653 cc.b.f = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
654 printf("#0653:m5c-f:%16x\n",cc.a);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
655 printf("#0654:m5c-3:%d %d\n",cc.b.c,cc.b.d);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
656 cc.a = 0;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
657 printf("#0656:m5c-f:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
658 cc.b.a = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
659 printf("#0658:m5c-a:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
660 cc.b.b = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
661 printf("#0660:m5c-b:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
662 cc.b.c = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
663 printf("#0662:m5c-c:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
664 cc.b.d = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
665 printf("#0664:m5c-d:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
666 cc.b.e = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
667 printf("#0666:m5c-e:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
668 cc.b.f = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
669 printf("#0668:m5c-f:%16x\n",cc.a);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
670 printf("#0669:m5c-3:%d %d\n",cc.b.c,cc.b.d);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
671 cc.a = -1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
672 printf("#0671:m5c-f:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
673 cc.b.a = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
674 printf("#0673:m5c-a:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
675 cc.b.b = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
676 printf("#0675:m5c-b:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
677 cc.b.c = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
678 printf("#0677:m5c-c:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
679 cc.b.d = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
680 printf("#0679:m5c-d:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
681 cc.b.e = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
682 printf("#0681:m5c-e:%16x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
683 cc.b.f = 1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
684 printf("#0683:m5c-f:%16x\n",cc.a);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
685 printf("#0684:m5c-3:%d %d\n",cc.b.c,cc.b.d);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
686
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
687 ii.b.a = -1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
688 printf("#0687:m5c-6:%16x\n",ii.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
689 ii.b.d = -1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
690 printf("#0689:m5c-6:%16x\n",ii.a);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
691 printf("#0690:m5c-5:%d %d\n",ii.b.a,ii.b.d);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
692 }
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
693
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
694 void
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
695 main5()
d488b72254fb bit-field done.
kono
parents:
diff changeset
696 {
d488b72254fb bit-field done.
kono
parents:
diff changeset
697 ii.b.a = -1;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
698 printf("#0697:00:%d\n",ii.b.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
699
d488b72254fb bit-field done.
kono
parents:
diff changeset
700 ll1.b.v = m1;
820
9598ecec0af5 rvalue, RSTRUCT, non parse mode
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 790
diff changeset
701 printf("#0700:01:%llx\n",(ULL)ll1.b.v);
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
702 printf("#0701:02:%16x %16x %16x %16x %16x %16x %16x %16x\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
703 ll1.a[0],ll1.a[1],ll1.a[2],ll1.a[3],
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
704 ll1.a[4],ll1.a[5],ll1.a[6],ll1.a[7]
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
705 );
d488b72254fb bit-field done.
kono
parents:
diff changeset
706 ll1.b.v = zero;
d488b72254fb bit-field done.
kono
parents:
diff changeset
707 ll1.b.w = m1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
708 printf("#0707:02:%16x %16x %16x %16x %16x %16x %16x %16x\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
709 ll1.a[0],ll1.a[1],ll1.a[2],ll1.a[3],
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
710 ll1.a[4],ll1.a[5],ll1.a[6],ll1.a[7]
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
711 );
d488b72254fb bit-field done.
kono
parents:
diff changeset
712 ll1.b.w = zero;
d488b72254fb bit-field done.
kono
parents:
diff changeset
713 ll1.b.x = m1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
714 printf("#0713:02:%16x %16x %16x %16x %16x %16x %16x %16x\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
715 ll1.a[0],ll1.a[1],ll1.a[2],ll1.a[3],
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
716 ll1.a[4],ll1.a[5],ll1.a[6],ll1.a[7]
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
717 );
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
718 ll1.b.x = zero;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
719
d488b72254fb bit-field done.
kono
parents:
diff changeset
720 ll0.b.v = m1;
820
9598ecec0af5 rvalue, RSTRUCT, non parse mode
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 790
diff changeset
721 printf("#0720:01:%llx\n",(ULL)ll0.b.v);
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
722 printf("#0721:02:%16x %16x %16x %16x %16x %16x %16x %16x\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
723 ll0.a[0],ll0.a[1],ll0.a[2],ll0.a[3],
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
724 ll0.a[4],ll0.a[5],ll0.a[6],ll0.a[7]
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
725 );
d488b72254fb bit-field done.
kono
parents:
diff changeset
726 ll0.b.v = zero;
d488b72254fb bit-field done.
kono
parents:
diff changeset
727 ll0.b.w = m1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
728 printf("#0727:02:%16x %16x %16x %16x %16x %16x %16x %16x\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
729 ll0.a[0],ll0.a[1],ll0.a[2],ll0.a[3],
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
730 ll0.a[4],ll0.a[5],ll0.a[6],ll0.a[7]
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
731 );
d488b72254fb bit-field done.
kono
parents:
diff changeset
732 ll0.b.w = zero;
d488b72254fb bit-field done.
kono
parents:
diff changeset
733 ll0.b.x = m1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
734 printf("#0733:02:%16x %16x %16x %16x %16x %16x %16x %16x\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
735 ll0.a[0],ll0.a[1],ll0.a[2],ll0.a[3],
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
736 ll0.a[4],ll0.a[5],ll0.a[6],ll0.a[7]
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
737 );
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
738 ll0.b.x = zero;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
739
d488b72254fb bit-field done.
kono
parents:
diff changeset
740 ll.b.v = m1;
820
9598ecec0af5 rvalue, RSTRUCT, non parse mode
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 790
diff changeset
741 printf("#0740:1:%llx\n",(ULL)ll.b.v);
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
742 printf("#0741:2:%16x %16x %16x %16x %16x %16x %16x %16x\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
743 ll.a[0],ll.a[1],ll.a[2],ll.a[3],
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
744 ll.a[4],ll.a[5],ll.a[6],ll.a[7]
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
745 );
d488b72254fb bit-field done.
kono
parents:
diff changeset
746 ll.b.v = zero;
d488b72254fb bit-field done.
kono
parents:
diff changeset
747 ll.b.w = m1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
748 printf("#0747:2:%16x %16x %16x %16x %16x %16x %16x %16x\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
749 ll.a[0],ll.a[1],ll.a[2],ll.a[3],
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
750 ll.a[4],ll.a[5],ll.a[6],ll.a[7]
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
751 );
d488b72254fb bit-field done.
kono
parents:
diff changeset
752 ll.b.w = zero;
d488b72254fb bit-field done.
kono
parents:
diff changeset
753 ll.b.x = m1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
754 printf("#0753:2:%16x %16x %16x %16x %16x %16x %16x %16x\n",
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
755 ll.a[0],ll.a[1],ll.a[2],ll.a[3],
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
756 ll.a[4],ll.a[5],ll.a[6],ll.a[7]
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
757 );
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
758 ll.b.x = zero;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
759
424
485bf7dde96a ARM non-aligned bitfield
kono
parents: 423
diff changeset
760 cc.a = zero;
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
761 printf("#0760:char a:1; char b:4; char c:7; char d:4; char e:4; char f:4;\n");
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
762 cc.b.a = m1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
763 printf("#0762:a:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
764 cc.b.b = m1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
765 printf("#0764:b:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
766 cc.b.c = m1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
767 printf("#0766:c:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
768 cc.b.d = m1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
769 printf("#0768:d:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
770 cc.b.e = m1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
771 printf("#0770:e:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
772 cc.b.f = m1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
773 printf("#0772:f:%16x\n",cc.a);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
774 printf("#0773:3:%d %d\n",cc.b.c,cc.b.d);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
775 cc.a = m1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
776 printf("#0775:f:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
777 cc.b.a = zero;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
778 printf("#0777:a:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
779 cc.b.b = zero;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
780 printf("#0779:b:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
781 cc.b.c = zero;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
782 printf("#0781:c:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
783 cc.b.d = zero;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
784 printf("#0783:d:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
785 cc.b.e = zero;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
786 printf("#0785:e:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
787 cc.b.f = zero;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
788 printf("#0787:f:%16x\n",cc.a);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
789 printf("#0788:3:%d %d\n",cc.b.c,cc.b.d);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
790 cc.a = zero;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
791 printf("#0790:f:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
792 cc.b.a = p1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
793 printf("#0792:a:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
794 cc.b.b = p1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
795 printf("#0794:b:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
796 cc.b.c = p1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
797 printf("#0796:c:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
798 cc.b.d = p1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
799 printf("#0798:d:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
800 cc.b.e = p1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
801 printf("#0800:e:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
802 cc.b.f = p1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
803 printf("#0802:f:%16x\n",cc.a);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
804 printf("#0803:3:%d %d\n",cc.b.c,cc.b.d);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
805 cc.a = m1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
806 printf("#0805:f:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
807 cc.b.a = p1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
808 printf("#0807:a:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
809 cc.b.b = p1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
810 printf("#0809:b:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
811 cc.b.c = p1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
812 printf("#0811:c:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
813 cc.b.d = p1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
814 printf("#0813:d:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
815 cc.b.e = p1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
816 printf("#0815:e:%16x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
817 cc.b.f = p1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
818 printf("#0817:f:%16x\n",cc.a);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
819 printf("#0818:3:%d %d\n",cc.b.c,cc.b.d);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
820
d488b72254fb bit-field done.
kono
parents:
diff changeset
821 ii.b.a = m1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
822 printf("#0821:6:%16x\n",ii.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
823 ii.b.d = m1;
790
a26d87f93c65 i64 bitfiled
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 773
diff changeset
824 printf("#0823:6:%16x\n",ii.a);
550
df60b120675d *** empty log message ***
kono
parents: 545
diff changeset
825 printf("#0824:5:%d %d\n",ii.b.a,ii.b.d);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
826 }
d488b72254fb bit-field done.
kono
parents:
diff changeset
827
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
828 int
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
829 main3l( int a )
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
830 {
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
831 // int b:9; // nor local variable
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
832 long long b,i;
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
833 i = 7;
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
834
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
835
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
836 g.pte.lpn = -333;
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
837 printf("#0836:main3l-0: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
838 b = g.pte.lpn--;
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
839 printf("#0838:main3l-1: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
840 b = g.pte.lpn++;
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
841 printf("#0840:main3l-2: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
842 b = --g.pte.lpn;
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
843 printf("#0842:main3l-3: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
844 b = ++g.pte.lpn;
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
845 printf("#0844:main3l-4: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
846 b = (g.pte.lpn += 3);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
847 printf("#0846:main3l-5: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
848 b = (g.pte.lpn -= 3);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
849 printf("#0848:main3l-6: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
850 b = (g.pte.lpn *= 3);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
851 printf("#0850:main3l-7: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
852 b = (g.pte.lpn /= 3);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
853 printf("#0852:main3l-8: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
854 b = (g.pte.lpn %= 3);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
855 printf("#0854:main3l-9: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
856 b = (g.pte.lpn |= 3);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
857 printf("#0856:main3l-10: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
858 b = (g.pte.lpn &= 3);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
859 printf("#0858:main3l-12: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
860 b = (g.pte.lpn ^= 3);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
861 printf("#0860:main3l-13: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
862 b = (g.pte.lpn <<= 3);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
863 printf("#0862:main3l-14: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
864 b = (g.pte.lpn >>= 3);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
865 printf("#0864:main3l-15: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
866
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
867 g.pte.lpn = -333;
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
868 printf("#0867:main3l-16: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
869 b = g.pte.lpn--;
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
870 printf("#0869:main3l-17: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
871 b = g.pte.lpn++;
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
872 printf("#0871:main3l-18: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
873 b = --g.pte.lpn;
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
874 printf("#0873:main3l-19: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
875 b = ++g.pte.lpn;
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
876 printf("#0875:main3l-20: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
877 b = (g.pte.lpn += i);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
878 printf("#0877:main3l-21: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
879 b = (g.pte.lpn -= i);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
880 printf("#0879:main3l-22: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
881 b = (g.pte.lpn *= i);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
882 printf("#0881:main3l-23: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
883 b = (g.pte.lpn /= i);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
884 printf("#0883:main3l-24: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
885 b = (g.pte.lpn %= i);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
886 printf("#0885:main3l-25: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
887 b = (g.pte.lpn |= i);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
888 printf("#0887:main3l-26: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
889 b = (g.pte.lpn &= i);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
890 printf("#0889:main3l-27: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
891 b = (g.pte.lpn ^= i);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
892 printf("#0891:main3l-28: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
893 b = (g.pte.lpn <<= i);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
894 printf("#0893:main3l-29: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
895 b = (g.pte.lpn >>= i);
773
e35af486b436 minor fix
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 550
diff changeset
896 printf("#0895:main3l-30: %lld\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
897
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
898 return --b;
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
899 }
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
900
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
901 void
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
902 main6()
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
903 {
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
904 int i =0;
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
905 g.pte.api = 0;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
906 printf("#0905:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
907 g.pte.api = 1;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
908 printf("#0907:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
909 g.pte.api = 2;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
910 printf("#0909:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
911 g.pte.api = 3;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
912 printf("#0911:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
913 g.pte.api = 4;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
914 printf("#0913:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
915 g.pte.api = 5;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
916 printf("#0915:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
917 g.pte.api = 6;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
918 printf("#0917:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
919 g.pte.api = 7;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
920 printf("#0919:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
921 g.pte.api = 8;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
922 printf("#0921:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
923 g.pte.api = 9;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
924 printf("#0923:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
925 g.pte.api = 10;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
926 printf("#0925:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
927 g.pte.api = 11;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
928 printf("#0927:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
929 g.pte.api = 12;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
930 printf("#0929:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
931 g.pte.api = 13;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
932 printf("#0931:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
933 g.pte.api = 14;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
934 printf("#0933:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
935 g.pte.api = 15;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
936 printf("#0935:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
937 g.pte.api = 16;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
938 printf("#0937:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
939 g.pte.api = 17;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
940 printf("#0939:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
941 g.pte.api = 18;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
942 printf("#0941:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
943 g.pte.api = 19;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
944 printf("#0943:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
945 g.pte.api = 20;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
946 printf("#0945:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
947 g.pte.api = 21;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
948 printf("#0947:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
949 g.pte.api = 22;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
950 printf("#0949:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
951 g.pte.api = 23;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
952 printf("#0951:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
953 g.pte.api = 24;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
954 printf("#0953:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
955 g.pte.api = 25;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
956 printf("#0955:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
957 g.pte.api = 26;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
958 printf("#0957:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
959 g.pte.api = 27;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
960 printf("#0959:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
961 g.pte.api = 28;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
962 printf("#0961:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
963 g.pte.api = 29;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
964 printf("#0963:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
965 g.pte.api = 30;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
966 printf("#0965:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
967 g.pte.api = 31;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
968 printf("#0967:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
969 g.pte.api = 32;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
970 printf("#0969:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
971 g.pte.api = 33;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
972 printf("#0971:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
973 g.pte.api = 34;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
974 printf("#0973:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
975 g.pte.api = 35;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
976 printf("#0975:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
977 g.pte.api = 36;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
978 printf("#0977:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
979 g.pte.api = 37;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
980 printf("#0979:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
981 g.pte.api = 38;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
982 printf("#0981:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
983 g.pte.api = 39;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
984 printf("#0983:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
985 g.pte.api = 40;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
986 printf("#0985:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
987 g.pte.api = 41;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
988 printf("#0987:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
989 g.pte.api = 42;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
990 printf("#0989:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
991 g.pte.api = 43;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
992 printf("#0991:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
993 g.pte.api = 44;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
994 printf("#0993:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
995 g.pte.api = 45;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
996 printf("#0995:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
997 g.pte.api = 46;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
998 printf("#0997:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
999 g.pte.api = 47;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1000 printf("#0999:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1001 g.pte.api = 48;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1002 printf("#1001:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1003 g.pte.api = 49;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1004 printf("#1003:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1005 g.pte.api = 50;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1006 printf("#1005:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1007 g.pte.api = 51;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1008 printf("#1007:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1009 g.pte.api = 52;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1010 printf("#1009:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1011 g.pte.api = 53;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1012 printf("#1011:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1013 g.pte.api = 54;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1014 printf("#1013:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1015 g.pte.api = 55;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1016 printf("#1015:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1017 g.pte.api = 56;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1018 printf("#1017:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1019 g.pte.api = 57;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1020 printf("#1019:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1021 g.pte.api = 58;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1022 printf("#1021:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1023 g.pte.api = 59;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1024 printf("#1023:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1025 g.pte.api = 60;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1026 printf("#1025:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1027 g.pte.api = 61;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1028 printf("#1027:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1029 g.pte.api = 62;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1030 printf("#1029:main5: %d %d\n",i++,g.pte.api);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1031 g.pte.api = 63;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1032 printf("#1031:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1033 }
545
2f577690bcfb *** empty log message ***
kono
parents: 491
diff changeset
1034 void
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1035 main7()
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1036 {
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1037 int i;
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1038 for (i=-2;i<2;i++) {
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1039 g.pte.api = i;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1040 if (g.pte.api) {
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1041 printf("#1040:main 7:1 %d yes\n",i);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1042 } else {
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1043 printf("#1042:main 7:1 %d no\n",i);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1044 }
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1045 if (g.pte.api==1) {
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1046 printf("#1045:main 7:2 %d yes\n",i);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1047 } else {
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1048 printf("#1047:main 7:2 %d no\n",i);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1049 }
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1050 if (g.pte.api==-1) {
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1051 printf("#1050:main 7:3 %d yes\n",i);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1052 } else {
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1053 printf("#1052:main 7:3 %d no\n",i);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1054 }
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1055 }
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1056 for (i=-2;i<2;i++) {
880
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1057 g.sg.v = i;
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1058 if (g.sg.v) {
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1059 printf("#1058:main 7:4 %d yes\n",i);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1060 } else {
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1061 printf("#1060:main 7:4 %d no\n",i);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1062 }
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1063 if (g.sg.v==1) { // always false
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1064 printf("#1063:main 7:5 %d yes\n",i);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1065 } else {
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1066 printf("#1065:main 7:5 %d no\n",i);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1067 }
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1068 if (g.sg.v==-1) {
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1069 printf("#1068:main 7:6 %d yes\n",i);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1070 } else {
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1071 printf("#1070:main 7:6 %d no\n",i);
5313ed059cee no tabs in source
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 820
diff changeset
1072 }
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1073 }
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1074 }
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1075
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1076 /* end */