bit_test.py (5240:6dc723c9c6a9) bit_test.py (5297:4e2607ff906f)
1# Copyright (c) 2007 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# Redistribution and use of this software in source and binary forms,
5# with or without modification, are permitted provided that the
6# following conditions are met:
7#
8# The software must be used only for Non-Commercial Use which means any

--- 114 unchanged lines hidden (view full) ---

123 rdip t7
124 limm t1, imm
125 srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)"
126 limm t3, 1
127 roli t3, t3, imm
128 ldst t1, seg, [1, t2, t7]
129 sexti t0, t1, imm, flags=(CF,)
130 xor t1, t1, t3
1# Copyright (c) 2007 The Hewlett-Packard Development Company
2# All rights reserved.
3#
4# Redistribution and use of this software in source and binary forms,
5# with or without modification, are permitted provided that the
6# following conditions are met:
7#
8# The software must be used only for Non-Commercial Use which means any

--- 114 unchanged lines hidden (view full) ---

123 rdip t7
124 limm t1, imm
125 srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)"
126 limm t3, 1
127 roli t3, t3, imm
128 ldst t1, seg, [1, t2, t7]
129 sexti t0, t1, imm, flags=(CF,)
130 xor t1, t1, t3
131 st t1, seg, [scale, index, t2], disp
131 st t1, seg, [1, t2, t7], disp
132};
133
134def macroop BTC_R_R {
135 sext t0, reg, regm, flags=(CF,)
136 limm t1, 1
137 rol t1, t1, regm
138 xor reg, reg, t1
139};

--- 14 unchanged lines hidden (view full) ---

154 rdip t7
155 limm t1, imm
156 srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)"
157 limm t3, 1
158 rol t3, t3, reg
159 ldst t1, seg, [1, t2, t7]
160 sext t0, t1, reg, flags=(CF,)
161 xor t1, t1, t3
132};
133
134def macroop BTC_R_R {
135 sext t0, reg, regm, flags=(CF,)
136 limm t1, 1
137 rol t1, t1, regm
138 xor reg, reg, t1
139};

--- 14 unchanged lines hidden (view full) ---

154 rdip t7
155 limm t1, imm
156 srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)"
157 limm t3, 1
158 rol t3, t3, reg
159 ldst t1, seg, [1, t2, t7]
160 sext t0, t1, reg, flags=(CF,)
161 xor t1, t1, t3
162 st t1, seg, [scale, index, t2], disp
162 st t1, seg, [1, t2, t7], disp
163};
164
165def macroop BTR_R_I {
166 sexti t0, reg, imm, flags=(CF,)
167 limm t1, "(uint64_t(-(2ULL)))"
168 roli t1, t1, imm
169 and reg, reg, t1
170};

--- 17 unchanged lines hidden (view full) ---

188 rdip t7
189 limm t1, imm
190 srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)"
191 limm t3, "(uint64_t(-(2ULL)))"
192 roli t3, t3, imm
193 ldst t1, seg, [1, t2, t7]
194 sexti t0, t1, imm, flags=(CF,)
195 and t1, t1, t3
163};
164
165def macroop BTR_R_I {
166 sexti t0, reg, imm, flags=(CF,)
167 limm t1, "(uint64_t(-(2ULL)))"
168 roli t1, t1, imm
169 and reg, reg, t1
170};

--- 17 unchanged lines hidden (view full) ---

188 rdip t7
189 limm t1, imm
190 srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)"
191 limm t3, "(uint64_t(-(2ULL)))"
192 roli t3, t3, imm
193 ldst t1, seg, [1, t2, t7]
194 sexti t0, t1, imm, flags=(CF,)
195 and t1, t1, t3
196 st t1, seg, [scale, index, t2], disp
196 st t1, seg, [1, t2, t7], disp
197};
198
199def macroop BTR_R_R {
200 sext t0, reg, regm, flags=(CF,)
201 limm t1, "(uint64_t(-(2ULL)))"
202 rol t1, t1, regm
203 and reg, reg, t1
204};

--- 14 unchanged lines hidden (view full) ---

219 rdip t7
220 limm t1, imm
221 srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)"
222 limm t3, "(uint64_t(-(2ULL)))"
223 rol t3, t3, reg
224 ldst t1, seg, [1, t2, t7]
225 sext t0, t1, reg, flags=(CF,)
226 and t1, t1, t3
197};
198
199def macroop BTR_R_R {
200 sext t0, reg, regm, flags=(CF,)
201 limm t1, "(uint64_t(-(2ULL)))"
202 rol t1, t1, regm
203 and reg, reg, t1
204};

--- 14 unchanged lines hidden (view full) ---

219 rdip t7
220 limm t1, imm
221 srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)"
222 limm t3, "(uint64_t(-(2ULL)))"
223 rol t3, t3, reg
224 ldst t1, seg, [1, t2, t7]
225 sext t0, t1, reg, flags=(CF,)
226 and t1, t1, t3
227 st t1, seg, [scale, index, t2], disp
227 st t1, seg, [1, t2, t7], disp
228};
229
230def macroop BTS_R_I {
231 sexti t0, reg, imm, flags=(CF,)
232 limm t1, 1
233 roli t1, t1, imm
234 or reg, reg, t1
235};

--- 17 unchanged lines hidden (view full) ---

253 rdip t7
254 limm t1, imm
255 srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)"
256 limm t3, 1
257 roli t3, t3, imm
258 ldst t1, seg, [1, t2, t7]
259 sexti t0, t1, imm, flags=(CF,)
260 or t1, t1, t3
228};
229
230def macroop BTS_R_I {
231 sexti t0, reg, imm, flags=(CF,)
232 limm t1, 1
233 roli t1, t1, imm
234 or reg, reg, t1
235};

--- 17 unchanged lines hidden (view full) ---

253 rdip t7
254 limm t1, imm
255 srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)"
256 limm t3, 1
257 roli t3, t3, imm
258 ldst t1, seg, [1, t2, t7]
259 sexti t0, t1, imm, flags=(CF,)
260 or t1, t1, t3
261 st t1, seg, [scale, index, t2], disp
261 st t1, seg, [1, t2, t7], disp
262};
263
264def macroop BTS_R_R {
265 sext t0, reg, regm, flags=(CF,)
266 limm t1, 1
267 rol t1, t1, regm
268 or reg, reg, t1
269};

--- 14 unchanged lines hidden (view full) ---

284 rdip t7
285 limm t1, imm
286 srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)"
287 limm t3, 1
288 rol t3, t3, reg
289 ldst t1, seg, [1, t2, t7]
290 sext t0, t1, reg, flags=(CF,)
291 or t1, t1, t3
262};
263
264def macroop BTS_R_R {
265 sext t0, reg, regm, flags=(CF,)
266 limm t1, 1
267 rol t1, t1, regm
268 or reg, reg, t1
269};

--- 14 unchanged lines hidden (view full) ---

284 rdip t7
285 limm t1, imm
286 srai t2, t1, "(env.dataSize == 8) ? 3 : ((env.dataSize == 4) ? 2 : 1)"
287 limm t3, 1
288 rol t3, t3, reg
289 ldst t1, seg, [1, t2, t7]
290 sext t0, t1, reg, flags=(CF,)
291 or t1, t1, t3
292 st t1, seg, [scale, index, t2], disp
292 st t1, seg, [1, t2, t7], disp
293};
294'''
293};
294'''