annotate test/bitfield.c @ 449:c55363eff5e5

parallel assignment (modify not completed)
author kono
date Thu, 25 Nov 2004 16:56:26 +0900
parents 0c256ea2a97e
children 32737bad7489
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
1
d488b72254fb bit-field done.
kono
parents:
diff changeset
2
d488b72254fb bit-field done.
kono
parents:
diff changeset
3 typedef union {
d488b72254fb bit-field done.
kono
parents:
diff changeset
4 struct _PTE {
d488b72254fb bit-field done.
kono
parents:
diff changeset
5 unsigned long v:1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
6 unsigned long vsid:24;
d488b72254fb bit-field done.
kono
parents:
diff changeset
7 unsigned long h:1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
8 unsigned long api:6;
d488b72254fb bit-field done.
kono
parents:
diff changeset
9 unsigned long rpn:20;
d488b72254fb bit-field done.
kono
parents:
diff changeset
10
d488b72254fb bit-field done.
kono
parents:
diff changeset
11 unsigned long :3;
d488b72254fb bit-field done.
kono
parents:
diff changeset
12 unsigned long r:1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
13 unsigned long c:1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
14 unsigned long w:1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
15 unsigned long i:1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
16 unsigned long m:1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
17 unsigned long g:1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
18 unsigned long :1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
19 unsigned long pp:2;
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
20 long long lpn:40;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
21 } pte;
d488b72254fb bit-field done.
kono
parents:
diff changeset
22 struct {
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
23 char v:1;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
24 signed long vsid:24;
d488b72254fb bit-field done.
kono
parents:
diff changeset
25 unsigned long h:1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
26 signed char api:6;
d488b72254fb bit-field done.
kono
parents:
diff changeset
27 signed long rpn:20;
d488b72254fb bit-field done.
kono
parents:
diff changeset
28
d488b72254fb bit-field done.
kono
parents:
diff changeset
29 signed long :3;
d488b72254fb bit-field done.
kono
parents:
diff changeset
30 unsigned long r:1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
31 unsigned long c:1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
32 unsigned long w:1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
33 unsigned long i:1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
34 unsigned long m:1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
35 unsigned long g:1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
36 unsigned long :1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
37 signed long pp:2;
d488b72254fb bit-field done.
kono
parents:
diff changeset
38 } sg;
d488b72254fb bit-field done.
kono
parents:
diff changeset
39 unsigned long u[2];
d488b72254fb bit-field done.
kono
parents:
diff changeset
40 } PTE;
d488b72254fb bit-field done.
kono
parents:
diff changeset
41
d488b72254fb bit-field done.
kono
parents:
diff changeset
42 PTE g;
d488b72254fb bit-field done.
kono
parents:
diff changeset
43
d488b72254fb bit-field done.
kono
parents:
diff changeset
44 main()
d488b72254fb bit-field done.
kono
parents:
diff changeset
45 {
d488b72254fb bit-field done.
kono
parents:
diff changeset
46 PTE a,*p;
d488b72254fb bit-field done.
kono
parents:
diff changeset
47 int i = 0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
48 int j = 0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
49
d488b72254fb bit-field done.
kono
parents:
diff changeset
50 a.pte.rpn = 55;
d488b72254fb bit-field done.
kono
parents:
diff changeset
51 j = a.pte.rpn;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
52 printf("#0051:% 3d: %d\n",i++,j);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
53 a.pte.c = 1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
54 j = a.pte.c;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
55 printf("#0054:% 3d: %d\n",i++,j);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
56 a.pte.pp = -1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
57 j = a.pte.pp;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
58 printf("#0057:% 3d: %d\n",i++,j);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
59 a.sg.pp = -1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
60 j = a.sg.pp;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
61 printf("#0060:% 3d: %d\n",i++,j);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
62
d488b72254fb bit-field done.
kono
parents:
diff changeset
63 p = &g;
d488b72254fb bit-field done.
kono
parents:
diff changeset
64
d488b72254fb bit-field done.
kono
parents:
diff changeset
65 g.u[0]=0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
66 g.u[1]=0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
67
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
68 printf("#0067:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
69 g.pte. v = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
70 printf("#0069:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
71 g.pte. vsid = -1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
72 printf("#0071:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
73 g.pte. h = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
74 printf("#0073:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
75 g.pte. api = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
76 printf("#0075:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
77 g.pte. rpn = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
78 printf("#0077:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
79
d488b72254fb bit-field done.
kono
parents:
diff changeset
80 g.pte. r = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
81 printf("#0080:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
82 g.pte. c = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
83 printf("#0082:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
84 g.pte. w = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
85 printf("#0084:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
86 g.pte. i = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
87 printf("#0086:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
88 g.pte. m = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
89 printf("#0088:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
90 g.pte. g = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
91 printf("#0090:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
92 g.pte. pp = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
93 printf("#0092:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
94
d488b72254fb bit-field done.
kono
parents:
diff changeset
95 g.u[0]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
96 g.u[1]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
97
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
98 printf("#0097:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
99 g.pte. v = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
100 printf("#0099:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
101 g.pte. vsid = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
102 printf("#0101:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
103 g.pte. h = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
104 printf("#0103:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
105 g.pte. api = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
106 printf("#0105:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
107 g.pte. rpn = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
108 printf("#0107:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
109
d488b72254fb bit-field done.
kono
parents:
diff changeset
110 g.pte. r = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
111 printf("#0110:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
112 g.pte. c = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
113 printf("#0112:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
114 g.pte. w = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
115 printf("#0114:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
116 g.pte. i = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
117 printf("#0116:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
118 g.pte. m = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
119 printf("#0118:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
120 g.pte. g = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
121 printf("#0120:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
122 g.pte. pp = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
123 printf("#0122:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
124
d488b72254fb bit-field done.
kono
parents:
diff changeset
125 g.u[0]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
126 g.u[1]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
127
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
128 printf("#0127:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
129 g.pte. v = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
130 printf("#0129:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
131 g.pte. vsid = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
132 printf("#0131:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
133 g.pte. h = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
134 printf("#0133:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
135 g.pte. api = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
136 printf("#0135:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
137 g.pte. rpn = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
138 printf("#0137:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
139
d488b72254fb bit-field done.
kono
parents:
diff changeset
140 g.pte. r = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
141 printf("#0140:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
142 g.pte. c = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
143 printf("#0142:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
144 g.pte. w = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
145 printf("#0144:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
146 g.pte. i = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
147 printf("#0146:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
148 g.pte. m = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
149 printf("#0148:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
150 g.pte. g = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
151 printf("#0150:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
152 g.pte. pp = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
153 printf("#0152:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
154
d488b72254fb bit-field done.
kono
parents:
diff changeset
155 g.u[0]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
156 g.u[1]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
157
d488b72254fb bit-field done.
kono
parents:
diff changeset
158 for(i=0;i<0x200;i++) {
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
159 printf("#0158:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
160 g.pte. v = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
161 printf("#0160:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
162 g.pte. vsid = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
163 printf("#0162:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
164 g.pte. h = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
165 printf("#0164:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
166 g.pte. api = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
167 printf("#0166:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
168 g.pte. rpn = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
169 printf("#0168:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
170
d488b72254fb bit-field done.
kono
parents:
diff changeset
171 g.pte. r = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
172 printf("#0171:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
173 g.pte. c = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
174 printf("#0173:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
175 g.pte. w = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
176 printf("#0175:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
177 g.pte. i = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
178 printf("#0177:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
179 g.pte. m = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
180 printf("#0179:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
181 g.pte. g = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
182 printf("#0181:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
183 g.pte. pp = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
184 printf("#0183:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
185 }
d488b72254fb bit-field done.
kono
parents:
diff changeset
186
d488b72254fb bit-field done.
kono
parents:
diff changeset
187 g = a;
d488b72254fb bit-field done.
kono
parents:
diff changeset
188
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
189 printf("#0188:%d %d %d\n",a.pte.pp,g.pte.pp,p->pte.pp);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
190 main2();
d488b72254fb bit-field done.
kono
parents:
diff changeset
191 main5();
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
192 main5c();
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
193 main3();
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
194 main4();
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
195 main6();
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
196 main7();
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
197 return 0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
198 }
d488b72254fb bit-field done.
kono
parents:
diff changeset
199
d488b72254fb bit-field done.
kono
parents:
diff changeset
200 main2()
d488b72254fb bit-field done.
kono
parents:
diff changeset
201 {
d488b72254fb bit-field done.
kono
parents:
diff changeset
202 int i = 0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
203
d488b72254fb bit-field done.
kono
parents:
diff changeset
204 g.u[0]=0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
205 g.u[1]=0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
206
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
207 printf("#0206:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
208 g.sg. v = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
209 printf("#0208:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
210 g.sg. vsid = -1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
211 printf("#0210:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
212 g.sg. h = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
213 printf("#0212:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
214 g.sg. api = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
215 printf("#0214:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
216 g.sg. rpn = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
217 printf("#0216:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
218
d488b72254fb bit-field done.
kono
parents:
diff changeset
219 g.sg. r = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
220 printf("#0219:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
221 g.sg. c = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
222 printf("#0221:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
223 g.sg. w = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
224 printf("#0223:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
225 g.sg. i = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
226 printf("#0225:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
227 g.sg. m = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
228 printf("#0227:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
229 g.sg. g = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
230 printf("#0229:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
231 g.sg. pp = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
232 printf("#0231:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
233
d488b72254fb bit-field done.
kono
parents:
diff changeset
234 g.u[0]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
235 g.u[1]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
236
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
237 printf("#0236:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
238 g.sg. v = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
239 printf("#0238:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
240 g.sg. vsid = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
241 printf("#0240:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
242 g.sg. h = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
243 printf("#0242:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
244 g.sg. api = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
245 printf("#0244:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
246 g.sg. rpn = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
247 printf("#0246:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
248
d488b72254fb bit-field done.
kono
parents:
diff changeset
249 g.sg. r = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
250 printf("#0249:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
251 g.sg. c = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
252 printf("#0251:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
253 g.sg. w = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
254 printf("#0253:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
255 g.sg. i = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
256 printf("#0255:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
257 g.sg. m = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
258 printf("#0257:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
259 g.sg. g = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
260 printf("#0259:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
261 g.sg. pp = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
262 printf("#0261:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
263
d488b72254fb bit-field done.
kono
parents:
diff changeset
264 g.u[0]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
265 g.u[1]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
266
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
267 printf("#0266:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
268 g.sg. v = 0x55;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
269 printf("#0268:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
270 g.sg. vsid = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
271 printf("#0270:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
272 g.sg. h = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
273 printf("#0272:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
274 g.sg. api = 0x55;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
275 printf("#0274:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
276 g.sg. rpn = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
277 printf("#0276:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
278
d488b72254fb bit-field done.
kono
parents:
diff changeset
279 g.sg. r = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
280 printf("#0279:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
281 g.sg. c = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
282 printf("#0281:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
283 g.sg. w = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
284 printf("#0283:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
285 g.sg. i = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
286 printf("#0285:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
287 g.sg. m = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
288 printf("#0287:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
289 g.sg. g = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
290 printf("#0289:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
291 g.sg. pp = 0x5555555;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
292 printf("#0291:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
293
d488b72254fb bit-field done.
kono
parents:
diff changeset
294 g.u[0]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
295 g.u[1]=-1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
296
d488b72254fb bit-field done.
kono
parents:
diff changeset
297 for(i=-0x100;i<0x100;i++) {
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
298 printf("#0297:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
299 g.sg. v = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
300 printf("#0299:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
301 g.sg. vsid = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
302 printf("#0301:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
303 g.sg. h = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
304 printf("#0303:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
305 g.sg. api = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
306 printf("#0305:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
307 g.sg. rpn = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
308 printf("#0307:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
309
d488b72254fb bit-field done.
kono
parents:
diff changeset
310 g.sg. r = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
311 printf("#0310:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
312 g.sg. c = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
313 printf("#0312:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
314 g.sg. w = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
315 printf("#0314:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
316 g.sg. i = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
317 printf("#0316:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
318 g.sg. m = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
319 printf("#0318:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
320 g.sg. g = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
321 printf("#0320:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
322 g.sg. pp = i;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
323 printf("#0322:% 3d: 0x%08x%08x\n",i++,g.u[0],g.u[1]);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
324 }
d488b72254fb bit-field done.
kono
parents:
diff changeset
325
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
326 // printf("#0325:size of %d\n",sizeof(g.sg.pp)); no size of for bit-field
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
327
d488b72254fb bit-field done.
kono
parents:
diff changeset
328 }
d488b72254fb bit-field done.
kono
parents:
diff changeset
329
d488b72254fb bit-field done.
kono
parents:
diff changeset
330 // int :12 bit-field cannot be a return value;
d488b72254fb bit-field done.
kono
parents:
diff changeset
331 // main3( int a:8 ) bit-field cannot be an argument;
d488b72254fb bit-field done.
kono
parents:
diff changeset
332 main3( int a )
d488b72254fb bit-field done.
kono
parents:
diff changeset
333 {
d488b72254fb bit-field done.
kono
parents:
diff changeset
334 // int b:9; // nor local variable
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
335 int b,i;
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
336 i = 7;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
337
d488b72254fb bit-field done.
kono
parents:
diff changeset
338
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
339 b = g.pte.rpn = -333;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
340 printf("#0339:main3-0: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
341 b = g.pte.rpn--;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
342 printf("#0341:main3-1: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
343 b = g.pte.rpn++;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
344 printf("#0343:main3-2: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
345 b = --g.pte.rpn;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
346 printf("#0345:main3-3: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
347 b = ++g.pte.rpn;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
348 printf("#0347:main3-4: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
349 b = (g.pte.rpn += 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
350 printf("#0349:main3-5: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
351 b = (g.pte.rpn -= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
352 printf("#0351:main3-6: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
353 b = (g.pte.rpn *= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
354 printf("#0353:main3-7: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
355 b = (g.pte.rpn /= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
356 printf("#0355:main3-8: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
357 b = (g.pte.rpn %= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
358 printf("#0357:main3-9: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
359 b = (g.pte.rpn |= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
360 printf("#0359:main3-10: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
361 b = (g.pte.rpn &= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
362 printf("#0361:main3-12: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
363 b = (g.pte.rpn ^= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
364 printf("#0363:main3-13: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
365 b = (g.pte.rpn <<= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
366 printf("#0365:main3-14: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
367 b = (g.pte.rpn >>= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
368 printf("#0367:main3-15: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
369
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
370 g.pte.rpn = -333;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
371 printf("#0370:main3-16: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
372 b = g.pte.rpn--;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
373 printf("#0372:main3-17: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
374 b = g.pte.rpn++;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
375 printf("#0374:main3-18: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
376 b = --g.pte.rpn;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
377 printf("#0376:main3-19: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
378 b = ++g.pte.rpn;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
379 printf("#0378:main3-20: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
380 b = (g.pte.rpn += i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
381 printf("#0380:main3-21: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
382 b = (g.pte.rpn -= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
383 printf("#0382:main3-22: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
384 b = (g.pte.rpn *= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
385 printf("#0384:main3-23: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
386 b = (g.pte.rpn /= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
387 printf("#0386:main3-24: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
388 b = (g.pte.rpn %= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
389 printf("#0388:main3-25: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
390 b = (g.pte.rpn |= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
391 printf("#0390:main3-26: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
392 b = (g.pte.rpn &= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
393 printf("#0392:main3-27: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
394 b = (g.pte.rpn ^= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
395 printf("#0394:main3-28: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
396 b = (g.pte.rpn <<= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
397 printf("#0396:main3-29: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
398 b = (g.pte.rpn >>= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
399 printf("#0398:main3-30: %d\n",b);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
400
d488b72254fb bit-field done.
kono
parents:
diff changeset
401 return --b;
d488b72254fb bit-field done.
kono
parents:
diff changeset
402 }
d488b72254fb bit-field done.
kono
parents:
diff changeset
403
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
404 main4( int a )
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
405 {
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
406 // int b:9; // nor local variable
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
407 int b,i;
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
408 PTE *pg = &g;
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
409
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
410 i = 7;
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
411
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
412
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
413 pg->pte.rpn = -333;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
414 printf("#0413:main4-0: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
415 b = pg->pte.rpn--;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
416 printf("#0415:main4-1: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
417 b = pg->pte.rpn++;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
418 printf("#0417:main4-2: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
419 b = --pg->pte.rpn;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
420 printf("#0419:main4-3: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
421 b = ++pg->pte.rpn;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
422 printf("#0421:main4-4: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
423 b = (pg->pte.rpn += 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
424 printf("#0423:main4-5: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
425 b = (pg->pte.rpn -= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
426 printf("#0425:main4-6: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
427 b = (pg->pte.rpn *= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
428 printf("#0427:main4-7: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
429 b = (pg->pte.rpn /= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
430 printf("#0429:main4-8: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
431 b = (pg->pte.rpn %= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
432 printf("#0431:main4-9: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
433 b = (pg->pte.rpn |= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
434 printf("#0433:main4-10: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
435 b = (pg->pte.rpn &= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
436 printf("#0435:main4-12: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
437 b = (pg->pte.rpn ^= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
438 printf("#0437:main4-13: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
439 b = (pg->pte.rpn <<= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
440 printf("#0439:main4-14: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
441 b = (pg->pte.rpn >>= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
442 printf("#0441:main4-15: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
443
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
444 pg->pte.rpn = -333;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
445 printf("#0444:main4-16: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
446 b = pg->pte.rpn--;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
447 printf("#0446:main4-17: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
448 b = pg->pte.rpn++;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
449 printf("#0448:main4-18: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
450 b = --pg->pte.rpn;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
451 printf("#0450:main4-19: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
452 b = ++pg->pte.rpn;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
453 printf("#0452:main4-20: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
454 b = (pg->pte.rpn += i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
455 printf("#0454:main4-21: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
456 b = (pg->pte.rpn -= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
457 printf("#0456:main4-22: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
458 b = (pg->pte.rpn *= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
459 printf("#0458:main4-23: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
460 b = (pg->pte.rpn /= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
461 printf("#0460:main4-24: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
462 b = (pg->pte.rpn %= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
463 printf("#0462:main4-25: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
464 b = (pg->pte.rpn |= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
465 printf("#0464:main4-26: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
466 b = (pg->pte.rpn &= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
467 printf("#0466:main4-27: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
468 b = (pg->pte.rpn ^= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
469 printf("#0468:main4-28: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
470 b = (pg->pte.rpn <<= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
471 printf("#0470:main4-29: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
472 b = (pg->pte.rpn >>= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
473 printf("#0472:main4-30: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
474
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
475 return --b;
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
476 }
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
477
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
478
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
479
d488b72254fb bit-field done.
kono
parents:
diff changeset
480
d488b72254fb bit-field done.
kono
parents:
diff changeset
481
d488b72254fb bit-field done.
kono
parents:
diff changeset
482 union ll1 {
d488b72254fb bit-field done.
kono
parents:
diff changeset
483 int a[8];
d488b72254fb bit-field done.
kono
parents:
diff changeset
484 struct {
d488b72254fb bit-field done.
kono
parents:
diff changeset
485 char a:4;
d488b72254fb bit-field done.
kono
parents:
diff changeset
486 long long v:33;
d488b72254fb bit-field done.
kono
parents:
diff changeset
487 long long w:33;
d488b72254fb bit-field done.
kono
parents:
diff changeset
488 long long x:33;
d488b72254fb bit-field done.
kono
parents:
diff changeset
489 } b;
d488b72254fb bit-field done.
kono
parents:
diff changeset
490 } ll1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
491
d488b72254fb bit-field done.
kono
parents:
diff changeset
492 union ll0 {
d488b72254fb bit-field done.
kono
parents:
diff changeset
493 int a[8];
d488b72254fb bit-field done.
kono
parents:
diff changeset
494 struct {
d488b72254fb bit-field done.
kono
parents:
diff changeset
495 char a:4;
d488b72254fb bit-field done.
kono
parents:
diff changeset
496 long long v:48;
d488b72254fb bit-field done.
kono
parents:
diff changeset
497 long long w:48;
d488b72254fb bit-field done.
kono
parents:
diff changeset
498 long long x:48;
d488b72254fb bit-field done.
kono
parents:
diff changeset
499 } b;
d488b72254fb bit-field done.
kono
parents:
diff changeset
500 } ll0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
501
d488b72254fb bit-field done.
kono
parents:
diff changeset
502
d488b72254fb bit-field done.
kono
parents:
diff changeset
503 union ll {
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;
d488b72254fb bit-field done.
kono
parents:
diff changeset
507 long long v:56;
d488b72254fb bit-field done.
kono
parents:
diff changeset
508 long long w:56;
d488b72254fb bit-field done.
kono
parents:
diff changeset
509 long long x:56;
d488b72254fb bit-field done.
kono
parents:
diff changeset
510 } b;
d488b72254fb bit-field done.
kono
parents:
diff changeset
511 } ll;
d488b72254fb bit-field done.
kono
parents:
diff changeset
512
d488b72254fb bit-field done.
kono
parents:
diff changeset
513 union cc {
d488b72254fb bit-field done.
kono
parents:
diff changeset
514 int a;
d488b72254fb bit-field done.
kono
parents:
diff changeset
515 struct {
d488b72254fb bit-field done.
kono
parents:
diff changeset
516 char a:1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
517 char b:4;
d488b72254fb bit-field done.
kono
parents:
diff changeset
518 char c:7;
d488b72254fb bit-field done.
kono
parents:
diff changeset
519 char d:4;
d488b72254fb bit-field done.
kono
parents:
diff changeset
520 char e:4;
d488b72254fb bit-field done.
kono
parents:
diff changeset
521 char f:4;
d488b72254fb bit-field done.
kono
parents:
diff changeset
522 } b;
d488b72254fb bit-field done.
kono
parents:
diff changeset
523 } cc;
d488b72254fb bit-field done.
kono
parents:
diff changeset
524
d488b72254fb bit-field done.
kono
parents:
diff changeset
525 union ii {
d488b72254fb bit-field done.
kono
parents:
diff changeset
526 int a;
d488b72254fb bit-field done.
kono
parents:
diff changeset
527 struct {
d488b72254fb bit-field done.
kono
parents:
diff changeset
528 int a:1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
529 int b:4;
d488b72254fb bit-field done.
kono
parents:
diff changeset
530 int c:4;
d488b72254fb bit-field done.
kono
parents:
diff changeset
531 int d:4;
d488b72254fb bit-field done.
kono
parents:
diff changeset
532 int e:4;
d488b72254fb bit-field done.
kono
parents:
diff changeset
533 int f:4;
d488b72254fb bit-field done.
kono
parents:
diff changeset
534 } b;
d488b72254fb bit-field done.
kono
parents:
diff changeset
535 } ii;
d488b72254fb bit-field done.
kono
parents:
diff changeset
536
424
485bf7dde96a ARM non-aligned bitfield
kono
parents: 423
diff changeset
537 long long m1 = 0x123456789abcdefLL;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
538 int p1 = 1;
d488b72254fb bit-field done.
kono
parents:
diff changeset
539 int zero = 0;
d488b72254fb bit-field done.
kono
parents:
diff changeset
540
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
541 main5c()
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
542 {
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
543 ii.b.a = -1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
544 printf("#0543:m5c-00:%d\n",ii.b.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
545
424
485bf7dde96a ARM non-aligned bitfield
kono
parents: 423
diff changeset
546 ll1.b.v = 0x123456789abcdefLL;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
547 printf("#0546:m5c-01:%llx\n",ll1.b.v);
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
548 printf("#0547:m5c-02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
549 ll1.a[0],ll1.a[1],ll1.a[2],ll1.a[3],
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
550 ll1.a[4],ll1.a[5],ll1.a[6],ll1.a[7]
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
551 );
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
552 ll1.b.v = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
553 printf("#0552:m5c-01:%llx\n",
424
485bf7dde96a ARM non-aligned bitfield
kono
parents: 423
diff changeset
554 ll1.b.w = 0x123456789abcdefLL);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
555 printf("#0554:m5c-02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
556 ll1.a[0],ll1.a[1],ll1.a[2],ll1.a[3],
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
557 ll1.a[4],ll1.a[5],ll1.a[6],ll1.a[7]
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
558 );
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
559 ll1.b.w = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
560 printf("#0559:m5c-01:%llx\n",
424
485bf7dde96a ARM non-aligned bitfield
kono
parents: 423
diff changeset
561 ll1.b.x = 0x123456789abcdefLL);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
562 printf("#0561:m5c-02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
563 ll1.a[0],ll1.a[1],ll1.a[2],ll1.a[3],
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
564 ll1.a[4],ll1.a[5],ll1.a[6],ll1.a[7]
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
565 );
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
566 ll1.b.x = 0;
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
567
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
568 printf("#0567:m5c-01:%llx\n",
424
485bf7dde96a ARM non-aligned bitfield
kono
parents: 423
diff changeset
569 ll0.b.v = 0x123456789abcdefLL);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
570 printf("#0569:m5c-01:%llx\n",ll0.b.v);
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
571 printf("#0570:m5c-02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
572 ll0.a[0],ll0.a[1],ll0.a[2],ll0.a[3],
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
573 ll0.a[4],ll0.a[5],ll0.a[6],ll0.a[7]
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
574 );
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
575 ll0.b.v = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
576 printf("#0575:m5c-01:%llx\n",
424
485bf7dde96a ARM non-aligned bitfield
kono
parents: 423
diff changeset
577 ll0.b.w = 0x123456789abcdefLL);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
578 printf("#0577:m5c-02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
579 ll0.a[0],ll0.a[1],ll0.a[2],ll0.a[3],
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
580 ll0.a[4],ll0.a[5],ll0.a[6],ll0.a[7]
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
581 );
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
582 ll0.b.w = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
583 printf("#0582:m5c-01:%llx\n",
424
485bf7dde96a ARM non-aligned bitfield
kono
parents: 423
diff changeset
584 ll0.b.x = 0x123456789abcdefLL);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
585 printf("#0584:m5c-02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
586 ll0.a[0],ll0.a[1],ll0.a[2],ll0.a[3],
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
587 ll0.a[4],ll0.a[5],ll0.a[6],ll0.a[7]
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
588 );
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
589 ll0.b.x = 0;
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
590
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
591 printf("#0590:m5c-01:%llx\n",
424
485bf7dde96a ARM non-aligned bitfield
kono
parents: 423
diff changeset
592 ll.b.v = 0x123456789abcdefLL);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
593 printf("#0592:m5c-1:%llx\n",ll.b.v);
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
594 printf("#0593:m5c-2:%08x %08x %08x %08x %08x %08x %08x %08x\n",
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
595 ll.a[0],ll.a[1],ll.a[2],ll.a[3],
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
596 ll.a[4],ll.a[5],ll.a[6],ll.a[7]
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
597 );
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
598 ll.b.v = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
599 printf("#0598:m5c-01:%llx\n",
424
485bf7dde96a ARM non-aligned bitfield
kono
parents: 423
diff changeset
600 ll.b.w = 0x123456789abcdefLL);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
601 printf("#0600:m5c-2:%08x %08x %08x %08x %08x %08x %08x %08x\n",
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
602 ll.a[0],ll.a[1],ll.a[2],ll.a[3],
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
603 ll.a[4],ll.a[5],ll.a[6],ll.a[7]
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
604 );
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
605 ll.b.w = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
606 printf("#0605:m5c-01:%llx\n",
424
485bf7dde96a ARM non-aligned bitfield
kono
parents: 423
diff changeset
607 ll.b.x = 0x123456789abcdefLL);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
608 printf("#0607:m5c-2:%08x %08x %08x %08x %08x %08x %08x %08x\n",
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
609 ll.a[0],ll.a[1],ll.a[2],ll.a[3],
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
610 ll.a[4],ll.a[5],ll.a[6],ll.a[7]
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
611 );
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
612 ll.b.x = 0;
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
613
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
614 printf("#0613: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
615 cc.a = 0;
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
616 cc.b.a = -1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
617 printf("#0616:m5c-a:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
618 cc.b.b = -1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
619 printf("#0618:m5c-b:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
620 cc.b.c = -1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
621 printf("#0620:m5c-c:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
622 cc.b.d = -1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
623 printf("#0622:m5c-d:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
624 cc.b.e = -1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
625 printf("#0624:m5c-e:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
626 cc.b.f = -1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
627 printf("#0626:m5c-f:%08x\n",cc.a);
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
628 printf("#0627:m5c-3:%d %d\n",cc.b.c,cc.b.d);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
629 cc.a = -1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
630 printf("#0629:m5c-f:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
631 cc.b.a = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
632 printf("#0631:m5c-a:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
633 cc.b.b = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
634 printf("#0633:m5c-b:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
635 cc.b.c = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
636 printf("#0635:m5c-c:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
637 cc.b.d = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
638 printf("#0637:m5c-d:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
639 cc.b.e = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
640 printf("#0639:m5c-e:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
641 cc.b.f = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
642 printf("#0641:m5c-f:%08x\n",cc.a);
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
643 printf("#0642:m5c-3:%d %d\n",cc.b.c,cc.b.d);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
644 cc.a = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
645 printf("#0644:m5c-f:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
646 cc.b.a = 1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
647 printf("#0646:m5c-a:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
648 cc.b.b = 1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
649 printf("#0648:m5c-b:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
650 cc.b.c = 1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
651 printf("#0650:m5c-c:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
652 cc.b.d = 1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
653 printf("#0652:m5c-d:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
654 cc.b.e = 1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
655 printf("#0654:m5c-e:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
656 cc.b.f = 1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
657 printf("#0656:m5c-f:%08x\n",cc.a);
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
658 printf("#0657:m5c-3:%d %d\n",cc.b.c,cc.b.d);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
659 cc.a = -1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
660 printf("#0659:m5c-f:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
661 cc.b.a = 1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
662 printf("#0661:m5c-a:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
663 cc.b.b = 1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
664 printf("#0663:m5c-b:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
665 cc.b.c = 1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
666 printf("#0665:m5c-c:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
667 cc.b.d = 1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
668 printf("#0667:m5c-d:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
669 cc.b.e = 1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
670 printf("#0669:m5c-e:%08x\n",cc.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
671 cc.b.f = 1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
672 printf("#0671:m5c-f:%08x\n",cc.a);
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
673 printf("#0672:m5c-3:%d %d\n",cc.b.c,cc.b.d);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
674
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
675 ii.b.a = -1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
676 printf("#0675:m5c-6:%08x\n",ii.a);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
677 ii.b.d = -1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
678 printf("#0677:m5c-6:%08x\n",ii.a);
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
679 printf("#0678:m5c-5:%d %d\n",ii.b.a,ii.b.d);
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
680 }
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
681
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
682 main5()
d488b72254fb bit-field done.
kono
parents:
diff changeset
683 {
d488b72254fb bit-field done.
kono
parents:
diff changeset
684 ii.b.a = -1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
685 printf("#0684:00:%d\n",ii.b.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
686
d488b72254fb bit-field done.
kono
parents:
diff changeset
687 ll1.b.v = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
688 printf("#0687:01:%llx\n",ll1.b.v);
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
689 printf("#0688:02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
690 ll1.a[0],ll1.a[1],ll1.a[2],ll1.a[3],
d488b72254fb bit-field done.
kono
parents:
diff changeset
691 ll1.a[4],ll1.a[5],ll1.a[6],ll1.a[7]
d488b72254fb bit-field done.
kono
parents:
diff changeset
692 );
d488b72254fb bit-field done.
kono
parents:
diff changeset
693 ll1.b.v = zero;
d488b72254fb bit-field done.
kono
parents:
diff changeset
694 ll1.b.w = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
695 printf("#0694:02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
696 ll1.a[0],ll1.a[1],ll1.a[2],ll1.a[3],
d488b72254fb bit-field done.
kono
parents:
diff changeset
697 ll1.a[4],ll1.a[5],ll1.a[6],ll1.a[7]
d488b72254fb bit-field done.
kono
parents:
diff changeset
698 );
d488b72254fb bit-field done.
kono
parents:
diff changeset
699 ll1.b.w = zero;
d488b72254fb bit-field done.
kono
parents:
diff changeset
700 ll1.b.x = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
701 printf("#0700:02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
702 ll1.a[0],ll1.a[1],ll1.a[2],ll1.a[3],
d488b72254fb bit-field done.
kono
parents:
diff changeset
703 ll1.a[4],ll1.a[5],ll1.a[6],ll1.a[7]
d488b72254fb bit-field done.
kono
parents:
diff changeset
704 );
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
705 ll1.b.x = zero;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
706
d488b72254fb bit-field done.
kono
parents:
diff changeset
707 ll0.b.v = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
708 printf("#0707:01:%llx\n",ll0.b.v);
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
709 printf("#0708:02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
710 ll0.a[0],ll0.a[1],ll0.a[2],ll0.a[3],
d488b72254fb bit-field done.
kono
parents:
diff changeset
711 ll0.a[4],ll0.a[5],ll0.a[6],ll0.a[7]
d488b72254fb bit-field done.
kono
parents:
diff changeset
712 );
d488b72254fb bit-field done.
kono
parents:
diff changeset
713 ll0.b.v = zero;
d488b72254fb bit-field done.
kono
parents:
diff changeset
714 ll0.b.w = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
715 printf("#0714:02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
716 ll0.a[0],ll0.a[1],ll0.a[2],ll0.a[3],
d488b72254fb bit-field done.
kono
parents:
diff changeset
717 ll0.a[4],ll0.a[5],ll0.a[6],ll0.a[7]
d488b72254fb bit-field done.
kono
parents:
diff changeset
718 );
d488b72254fb bit-field done.
kono
parents:
diff changeset
719 ll0.b.w = zero;
d488b72254fb bit-field done.
kono
parents:
diff changeset
720 ll0.b.x = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
721 printf("#0720:02:%08x %08x %08x %08x %08x %08x %08x %08x\n",
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
722 ll0.a[0],ll0.a[1],ll0.a[2],ll0.a[3],
d488b72254fb bit-field done.
kono
parents:
diff changeset
723 ll0.a[4],ll0.a[5],ll0.a[6],ll0.a[7]
d488b72254fb bit-field done.
kono
parents:
diff changeset
724 );
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
725 ll0.b.x = zero;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
726
d488b72254fb bit-field done.
kono
parents:
diff changeset
727 ll.b.v = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
728 printf("#0727:1:%llx\n",ll.b.v);
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
729 printf("#0728:2:%08x %08x %08x %08x %08x %08x %08x %08x\n",
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
730 ll.a[0],ll.a[1],ll.a[2],ll.a[3],
d488b72254fb bit-field done.
kono
parents:
diff changeset
731 ll.a[4],ll.a[5],ll.a[6],ll.a[7]
d488b72254fb bit-field done.
kono
parents:
diff changeset
732 );
d488b72254fb bit-field done.
kono
parents:
diff changeset
733 ll.b.v = zero;
d488b72254fb bit-field done.
kono
parents:
diff changeset
734 ll.b.w = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
735 printf("#0734:2:%08x %08x %08x %08x %08x %08x %08x %08x\n",
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
736 ll.a[0],ll.a[1],ll.a[2],ll.a[3],
d488b72254fb bit-field done.
kono
parents:
diff changeset
737 ll.a[4],ll.a[5],ll.a[6],ll.a[7]
d488b72254fb bit-field done.
kono
parents:
diff changeset
738 );
d488b72254fb bit-field done.
kono
parents:
diff changeset
739 ll.b.w = zero;
d488b72254fb bit-field done.
kono
parents:
diff changeset
740 ll.b.x = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
741 printf("#0740:2:%08x %08x %08x %08x %08x %08x %08x %08x\n",
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
742 ll.a[0],ll.a[1],ll.a[2],ll.a[3],
d488b72254fb bit-field done.
kono
parents:
diff changeset
743 ll.a[4],ll.a[5],ll.a[6],ll.a[7]
d488b72254fb bit-field done.
kono
parents:
diff changeset
744 );
423
8b9136a06f56 bitfield continue...
kono
parents: 365
diff changeset
745 ll.b.x = zero;
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
746
424
485bf7dde96a ARM non-aligned bitfield
kono
parents: 423
diff changeset
747 cc.a = zero;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
748 printf("#0747: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
749 cc.b.a = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
750 printf("#0749:a:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
751 cc.b.b = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
752 printf("#0751:b:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
753 cc.b.c = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
754 printf("#0753:c:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
755 cc.b.d = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
756 printf("#0755:d:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
757 cc.b.e = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
758 printf("#0757:e:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
759 cc.b.f = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
760 printf("#0759:f:%08x\n",cc.a);
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
761 printf("#0760:3:%d %d\n",cc.b.c,cc.b.d);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
762 cc.a = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
763 printf("#0762:f:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
764 cc.b.a = zero;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
765 printf("#0764:a:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
766 cc.b.b = zero;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
767 printf("#0766:b:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
768 cc.b.c = zero;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
769 printf("#0768:c:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
770 cc.b.d = zero;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
771 printf("#0770:d:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
772 cc.b.e = zero;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
773 printf("#0772:e:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
774 cc.b.f = zero;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
775 printf("#0774:f:%08x\n",cc.a);
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
776 printf("#0775:3:%d %d\n",cc.b.c,cc.b.d);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
777 cc.a = zero;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
778 printf("#0777:f:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
779 cc.b.a = p1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
780 printf("#0779:a:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
781 cc.b.b = p1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
782 printf("#0781:b:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
783 cc.b.c = p1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
784 printf("#0783:c:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
785 cc.b.d = p1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
786 printf("#0785:d:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
787 cc.b.e = p1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
788 printf("#0787:e:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
789 cc.b.f = p1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
790 printf("#0789:f:%08x\n",cc.a);
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
791 printf("#0790:3:%d %d\n",cc.b.c,cc.b.d);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
792 cc.a = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
793 printf("#0792:f:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
794 cc.b.a = p1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
795 printf("#0794:a:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
796 cc.b.b = p1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
797 printf("#0796:b:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
798 cc.b.c = p1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
799 printf("#0798:c:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
800 cc.b.d = p1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
801 printf("#0800:d:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
802 cc.b.e = p1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
803 printf("#0802:e:%08x\n",cc.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
804 cc.b.f = p1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
805 printf("#0804:f:%08x\n",cc.a);
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
806 printf("#0805:3:%d %d\n",cc.b.c,cc.b.d);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
807
d488b72254fb bit-field done.
kono
parents:
diff changeset
808 ii.b.a = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
809 printf("#0808:6:%08x\n",ii.a);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
810 ii.b.d = m1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
811 printf("#0810:6:%08x\n",ii.a);
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
812 printf("#0811:5:%d %d\n",ii.b.a,ii.b.d);
336
d488b72254fb bit-field done.
kono
parents:
diff changeset
813 }
d488b72254fb bit-field done.
kono
parents:
diff changeset
814
d488b72254fb bit-field done.
kono
parents:
diff changeset
815
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
816 main3l( int a )
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
817 {
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
818 // int b:9; // nor local variable
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
819 long long b,i;
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
820 i = 7;
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
821
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
822
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
823 g.pte.lpn = -333;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
824 printf("#0823:main3l-0: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
825 b = g.pte.lpn--;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
826 printf("#0825:main3l-1: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
827 b = g.pte.lpn++;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
828 printf("#0827:main3l-2: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
829 b = --g.pte.lpn;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
830 printf("#0829:main3l-3: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
831 b = ++g.pte.lpn;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
832 printf("#0831:main3l-4: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
833 b = (g.pte.lpn += 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
834 printf("#0833:main3l-5: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
835 b = (g.pte.lpn -= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
836 printf("#0835:main3l-6: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
837 b = (g.pte.lpn *= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
838 printf("#0837:main3l-7: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
839 b = (g.pte.lpn /= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
840 printf("#0839:main3l-8: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
841 b = (g.pte.lpn %= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
842 printf("#0841:main3l-9: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
843 b = (g.pte.lpn |= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
844 printf("#0843:main3l-10: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
845 b = (g.pte.lpn &= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
846 printf("#0845:main3l-12: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
847 b = (g.pte.lpn ^= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
848 printf("#0847:main3l-13: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
849 b = (g.pte.lpn <<= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
850 printf("#0849:main3l-14: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
851 b = (g.pte.lpn >>= 3);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
852 printf("#0851:main3l-15: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
853
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
854 g.pte.lpn = -333;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
855 printf("#0854:main3l-16: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
856 b = g.pte.lpn--;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
857 printf("#0856:main3l-17: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
858 b = g.pte.lpn++;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
859 printf("#0858:main3l-18: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
860 b = --g.pte.lpn;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
861 printf("#0860:main3l-19: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
862 b = ++g.pte.lpn;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
863 printf("#0862:main3l-20: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
864 b = (g.pte.lpn += i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
865 printf("#0864:main3l-21: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
866 b = (g.pte.lpn -= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
867 printf("#0866:main3l-22: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
868 b = (g.pte.lpn *= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
869 printf("#0868:main3l-23: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
870 b = (g.pte.lpn /= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
871 printf("#0870:main3l-24: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
872 b = (g.pte.lpn %= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
873 printf("#0872:main3l-25: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
874 b = (g.pte.lpn |= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
875 printf("#0874:main3l-26: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
876 b = (g.pte.lpn &= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
877 printf("#0876:main3l-27: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
878 b = (g.pte.lpn ^= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
879 printf("#0878:main3l-28: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
880 b = (g.pte.lpn <<= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
881 printf("#0880:main3l-29: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
882 b = (g.pte.lpn >>= i);
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
883 printf("#0882:main3l-30: %d\n",b);
338
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
884
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
885 return --b;
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
886 }
7fe7ce0a791f bit-field done for IA32, PowerPC, MIPS.
kono
parents: 336
diff changeset
887
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
888
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
889 main6()
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
890 {
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
891 int i =0;
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
892 g.pte.api = 0;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
893 printf("#0892:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
894 g.pte.api = 1;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
895 printf("#0894:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
896 g.pte.api = 2;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
897 printf("#0896:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
898 g.pte.api = 3;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
899 printf("#0898:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
900 g.pte.api = 4;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
901 printf("#0900:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
902 g.pte.api = 5;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
903 printf("#0902:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
904 g.pte.api = 6;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
905 printf("#0904:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
906 g.pte.api = 7;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
907 printf("#0906:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
908 g.pte.api = 8;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
909 printf("#0908:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
910 g.pte.api = 9;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
911 printf("#0910:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
912 g.pte.api = 10;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
913 printf("#0912:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
914 g.pte.api = 11;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
915 printf("#0914:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
916 g.pte.api = 12;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
917 printf("#0916:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
918 g.pte.api = 13;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
919 printf("#0918:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
920 g.pte.api = 14;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
921 printf("#0920:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
922 g.pte.api = 15;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
923 printf("#0922:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
924 g.pte.api = 16;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
925 printf("#0924:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
926 g.pte.api = 17;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
927 printf("#0926:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
928 g.pte.api = 18;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
929 printf("#0928:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
930 g.pte.api = 19;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
931 printf("#0930:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
932 g.pte.api = 20;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
933 printf("#0932:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
934 g.pte.api = 21;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
935 printf("#0934:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
936 g.pte.api = 22;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
937 printf("#0936:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
938 g.pte.api = 23;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
939 printf("#0938:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
940 g.pte.api = 24;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
941 printf("#0940:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
942 g.pte.api = 25;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
943 printf("#0942:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
944 g.pte.api = 26;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
945 printf("#0944:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
946 g.pte.api = 27;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
947 printf("#0946:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
948 g.pte.api = 28;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
949 printf("#0948:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
950 g.pte.api = 29;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
951 printf("#0950:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
952 g.pte.api = 30;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
953 printf("#0952:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
954 g.pte.api = 31;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
955 printf("#0954:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
956 g.pte.api = 32;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
957 printf("#0956:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
958 g.pte.api = 33;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
959 printf("#0958:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
960 g.pte.api = 34;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
961 printf("#0960:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
962 g.pte.api = 35;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
963 printf("#0962:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
964 g.pte.api = 36;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
965 printf("#0964:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
966 g.pte.api = 37;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
967 printf("#0966:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
968 g.pte.api = 38;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
969 printf("#0968:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
970 g.pte.api = 39;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
971 printf("#0970:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
972 g.pte.api = 40;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
973 printf("#0972:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
974 g.pte.api = 41;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
975 printf("#0974:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
976 g.pte.api = 42;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
977 printf("#0976:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
978 g.pte.api = 43;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
979 printf("#0978:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
980 g.pte.api = 44;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
981 printf("#0980:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
982 g.pte.api = 45;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
983 printf("#0982:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
984 g.pte.api = 46;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
985 printf("#0984:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
986 g.pte.api = 47;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
987 printf("#0986:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
988 g.pte.api = 48;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
989 printf("#0988:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
990 g.pte.api = 49;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
991 printf("#0990:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
992 g.pte.api = 50;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
993 printf("#0992:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
994 g.pte.api = 51;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
995 printf("#0994:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
996 g.pte.api = 52;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
997 printf("#0996:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
998 g.pte.api = 53;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
999 printf("#0998:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1000 g.pte.api = 54;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1001 printf("#1000:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1002 g.pte.api = 55;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1003 printf("#1002:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1004 g.pte.api = 56;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1005 printf("#1004:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1006 g.pte.api = 57;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1007 printf("#1006:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1008 g.pte.api = 58;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1009 printf("#1008:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1010 g.pte.api = 59;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1011 printf("#1010:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1012 g.pte.api = 60;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1013 printf("#1012:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1014 g.pte.api = 61;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1015 printf("#1014:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1016 g.pte.api = 62;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1017 printf("#1016:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1018 g.pte.api = 63;
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1019 printf("#1018:main5: %d %d\n",i++,g.pte.api);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1020 }
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1021
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1022 main7()
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1023 {
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1024 int i;
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1025 for (i=-2;i<2;i++) {
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1026 g.pte.api = i;
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1027 if (g.pte.api) {
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1028 printf("#1027:main 7:1 %d yes\n",i);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1029 } else {
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1030 printf("#1029:main 7:1 %d no\n",i);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1031 }
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1032 if (g.pte.api==1) {
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1033 printf("#1032:main 7:2 %d yes\n",i);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1034 } else {
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1035 printf("#1034:main 7:2 %d no\n",i);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1036 }
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1037 if (g.pte.api==-1) {
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1038 printf("#1037:main 7:3 %d yes\n",i);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1039 } else {
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1040 printf("#1039:main 7:3 %d no\n",i);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1041 }
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1042 }
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1043 for (i=-2;i<2;i++) {
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1044 g.sg.v = i;
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1045 if (g.sg.v) {
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1046 printf("#1045:main 7:4 %d yes\n",i);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1047 } else {
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1048 printf("#1047:main 7:4 %d no\n",i);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1049 }
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1050 if (g.sg.v==1) {
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1051 printf("#1050:main 7:5 %d yes\n",i);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1052 } else {
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1053 printf("#1052:main 7:5 %d no\n",i);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1054 }
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1055 if (g.sg.v==-1) {
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1056 printf("#1055:main 7:6 %d yes\n",i);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1057 } else {
427
0c256ea2a97e Bitfield left value for ia32
kono
parents: 424
diff changeset
1058 printf("#1057:main 7:6 %d no\n",i);
365
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1059 }
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1060 }
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1061 }
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1062
5ac17fa9d7e0 bit-field constant assignment
kono
parents: 338
diff changeset
1063 /* end */