1 /* Simulator instruction semantics for bpfbf.
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
5 Copyright (C) 1996-2022 Free Software Foundation, Inc.
7 This file is part of the GNU simulators.
9 This file is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3, or (at your option)
14 It is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
17 License for more details.
19 You should have received a copy of the GNU General Public License along
20 with this program; if not, write to the Free Software Foundation, Inc.,
21 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
25 #define WANT_CPU bpfbf
26 #define WANT_CPU_BPFBF
33 #define GET_ATTR(cpu, num, attr) CGEN_ATTR_VALUE (NULL, abuf->idesc->attrs, CGEN_INSN_##attr)
35 /* This is used so that we can compile two copies of the semantic code,
36 one with full feature support and one without that runs fast(er).
37 FAST_P, when desired, is defined on the command line, -DFAST_P=1. */
39 #define SEM_FN_NAME(cpu,fn) XCONCAT3 (cpu,_semf_,fn)
40 #undef CGEN_TRACE_RESULT
41 #define CGEN_TRACE_RESULT(cpu, abuf, name, type, val)
43 #define SEM_FN_NAME(cpu,fn) XCONCAT3 (cpu,_sem_,fn)
46 /* x-invalid: --invalid-- */
49 SEM_FN_NAME (bpfbf_ebpfle
,x_invalid
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
51 #define FLD(f) abuf->fields.sfmt_empty.f
52 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
53 int UNUSED written
= 0;
54 IADDR UNUSED pc
= abuf
->addr
;
55 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 0);
58 /* Update the recorded pc in the cpu state struct.
59 Only necessary for WITH_SCACHE case, but to avoid the
60 conditional compilation .... */
62 /* Virtual insns have zero size. Overwrite vpc with address of next insn
63 using the default-insn-bitsize spec. When executing insns in parallel
64 we may want to queue the fault and continue execution. */
65 vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
66 vpc
= sim_engine_invalid_insn (current_cpu
, pc
, vpc
);
73 /* x-after: --after-- */
76 SEM_FN_NAME (bpfbf_ebpfle
,x_after
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
78 #define FLD(f) abuf->fields.sfmt_empty.f
79 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
80 int UNUSED written
= 0;
81 IADDR UNUSED pc
= abuf
->addr
;
82 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 0);
85 #if WITH_SCACHE_PBB_BPFBF_EBPFLE
86 bpfbf_ebpfle_pbb_after (current_cpu
, sem_arg
);
94 /* x-before: --before-- */
97 SEM_FN_NAME (bpfbf_ebpfle
,x_before
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
99 #define FLD(f) abuf->fields.sfmt_empty.f
100 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
101 int UNUSED written
= 0;
102 IADDR UNUSED pc
= abuf
->addr
;
103 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 0);
106 #if WITH_SCACHE_PBB_BPFBF_EBPFLE
107 bpfbf_ebpfle_pbb_before (current_cpu
, sem_arg
);
115 /* x-cti-chain: --cti-chain-- */
118 SEM_FN_NAME (bpfbf_ebpfle
,x_cti_chain
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
120 #define FLD(f) abuf->fields.sfmt_empty.f
121 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
122 int UNUSED written
= 0;
123 IADDR UNUSED pc
= abuf
->addr
;
124 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 0);
127 #if WITH_SCACHE_PBB_BPFBF_EBPFLE
129 vpc
= bpfbf_ebpfle_pbb_cti_chain (current_cpu
, sem_arg
,
130 pbb_br_type
, pbb_br_npc
);
133 /* FIXME: Allow provision of explicit ifmt spec in insn spec. */
134 vpc
= bpfbf_ebpfle_pbb_cti_chain (current_cpu
, sem_arg
,
135 CPU_PBB_BR_TYPE (current_cpu
),
136 CPU_PBB_BR_NPC (current_cpu
));
145 /* x-chain: --chain-- */
148 SEM_FN_NAME (bpfbf_ebpfle
,x_chain
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
150 #define FLD(f) abuf->fields.sfmt_empty.f
151 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
152 int UNUSED written
= 0;
153 IADDR UNUSED pc
= abuf
->addr
;
154 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 0);
157 #if WITH_SCACHE_PBB_BPFBF_EBPFLE
158 vpc
= bpfbf_ebpfle_pbb_chain (current_cpu
, sem_arg
);
169 /* x-begin: --begin-- */
172 SEM_FN_NAME (bpfbf_ebpfle
,x_begin
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
174 #define FLD(f) abuf->fields.sfmt_empty.f
175 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
176 int UNUSED written
= 0;
177 IADDR UNUSED pc
= abuf
->addr
;
178 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 0);
181 #if WITH_SCACHE_PBB_BPFBF_EBPFLE
182 #if defined DEFINE_SWITCH || defined FAST_P
183 /* In the switch case FAST_P is a constant, allowing several optimizations
184 in any called inline functions. */
185 vpc
= bpfbf_ebpfle_pbb_begin (current_cpu
, FAST_P
);
187 #if 0 /* cgen engine can't handle dynamic fast/full switching yet. */
188 vpc
= bpfbf_ebpfle_pbb_begin (current_cpu
, STATE_RUN_FAST_P (CPU_STATE (current_cpu
)));
190 vpc
= bpfbf_ebpfle_pbb_begin (current_cpu
, 0);
200 /* addile: add $dstle,$imm32 */
203 SEM_FN_NAME (bpfbf_ebpfle
,addile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
205 #define FLD(f) abuf->fields.sfmt_stble.f
206 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
207 int UNUSED written
= 0;
208 IADDR UNUSED pc
= abuf
->addr
;
209 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
212 DI opval
= ADDDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
213 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
214 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
221 /* addrle: add $dstle,$srcle */
224 SEM_FN_NAME (bpfbf_ebpfle
,addrle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
226 #define FLD(f) abuf->fields.sfmt_ldxwle.f
227 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
228 int UNUSED written
= 0;
229 IADDR UNUSED pc
= abuf
->addr
;
230 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
233 DI opval
= ADDDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
234 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
235 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
242 /* add32ile: add32 $dstle,$imm32 */
245 SEM_FN_NAME (bpfbf_ebpfle
,add32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
247 #define FLD(f) abuf->fields.sfmt_stble.f
248 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
249 int UNUSED written
= 0;
250 IADDR UNUSED pc
= abuf
->addr
;
251 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
254 USI opval
= ADDSI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
255 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
256 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
263 /* add32rle: add32 $dstle,$srcle */
266 SEM_FN_NAME (bpfbf_ebpfle
,add32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
268 #define FLD(f) abuf->fields.sfmt_ldxwle.f
269 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
270 int UNUSED written
= 0;
271 IADDR UNUSED pc
= abuf
->addr
;
272 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
275 USI opval
= ADDSI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
276 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
277 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
284 /* subile: sub $dstle,$imm32 */
287 SEM_FN_NAME (bpfbf_ebpfle
,subile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
289 #define FLD(f) abuf->fields.sfmt_stble.f
290 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
291 int UNUSED written
= 0;
292 IADDR UNUSED pc
= abuf
->addr
;
293 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
296 DI opval
= SUBDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
297 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
298 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
305 /* subrle: sub $dstle,$srcle */
308 SEM_FN_NAME (bpfbf_ebpfle
,subrle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
310 #define FLD(f) abuf->fields.sfmt_ldxwle.f
311 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
312 int UNUSED written
= 0;
313 IADDR UNUSED pc
= abuf
->addr
;
314 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
317 DI opval
= SUBDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
318 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
319 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
326 /* sub32ile: sub32 $dstle,$imm32 */
329 SEM_FN_NAME (bpfbf_ebpfle
,sub32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
331 #define FLD(f) abuf->fields.sfmt_stble.f
332 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
333 int UNUSED written
= 0;
334 IADDR UNUSED pc
= abuf
->addr
;
335 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
338 USI opval
= SUBSI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
339 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
340 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
347 /* sub32rle: sub32 $dstle,$srcle */
350 SEM_FN_NAME (bpfbf_ebpfle
,sub32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
352 #define FLD(f) abuf->fields.sfmt_ldxwle.f
353 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
354 int UNUSED written
= 0;
355 IADDR UNUSED pc
= abuf
->addr
;
356 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
359 USI opval
= SUBSI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
360 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
361 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
368 /* mulile: mul $dstle,$imm32 */
371 SEM_FN_NAME (bpfbf_ebpfle
,mulile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
373 #define FLD(f) abuf->fields.sfmt_stble.f
374 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
375 int UNUSED written
= 0;
376 IADDR UNUSED pc
= abuf
->addr
;
377 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
380 DI opval
= MULDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
381 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
382 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
389 /* mulrle: mul $dstle,$srcle */
392 SEM_FN_NAME (bpfbf_ebpfle
,mulrle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
394 #define FLD(f) abuf->fields.sfmt_ldxwle.f
395 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
396 int UNUSED written
= 0;
397 IADDR UNUSED pc
= abuf
->addr
;
398 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
401 DI opval
= MULDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
402 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
403 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
410 /* mul32ile: mul32 $dstle,$imm32 */
413 SEM_FN_NAME (bpfbf_ebpfle
,mul32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
415 #define FLD(f) abuf->fields.sfmt_stble.f
416 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
417 int UNUSED written
= 0;
418 IADDR UNUSED pc
= abuf
->addr
;
419 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
422 USI opval
= MULSI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
423 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
424 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
431 /* mul32rle: mul32 $dstle,$srcle */
434 SEM_FN_NAME (bpfbf_ebpfle
,mul32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
436 #define FLD(f) abuf->fields.sfmt_ldxwle.f
437 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
438 int UNUSED written
= 0;
439 IADDR UNUSED pc
= abuf
->addr
;
440 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
443 USI opval
= MULSI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
444 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
445 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
452 /* divile: div $dstle,$imm32 */
455 SEM_FN_NAME (bpfbf_ebpfle
,divile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
457 #define FLD(f) abuf->fields.sfmt_stble.f
458 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
459 int UNUSED written
= 0;
460 IADDR UNUSED pc
= abuf
->addr
;
461 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
464 DI opval
= UDIVDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
465 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
466 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
473 /* divrle: div $dstle,$srcle */
476 SEM_FN_NAME (bpfbf_ebpfle
,divrle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
478 #define FLD(f) abuf->fields.sfmt_ldxwle.f
479 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
480 int UNUSED written
= 0;
481 IADDR UNUSED pc
= abuf
->addr
;
482 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
485 DI opval
= UDIVDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
486 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
487 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
494 /* div32ile: div32 $dstle,$imm32 */
497 SEM_FN_NAME (bpfbf_ebpfle
,div32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
499 #define FLD(f) abuf->fields.sfmt_stble.f
500 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
501 int UNUSED written
= 0;
502 IADDR UNUSED pc
= abuf
->addr
;
503 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
506 USI opval
= UDIVSI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
507 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
508 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
515 /* div32rle: div32 $dstle,$srcle */
518 SEM_FN_NAME (bpfbf_ebpfle
,div32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
520 #define FLD(f) abuf->fields.sfmt_ldxwle.f
521 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
522 int UNUSED written
= 0;
523 IADDR UNUSED pc
= abuf
->addr
;
524 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
527 USI opval
= UDIVSI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
528 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
529 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
536 /* orile: or $dstle,$imm32 */
539 SEM_FN_NAME (bpfbf_ebpfle
,orile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
541 #define FLD(f) abuf->fields.sfmt_stble.f
542 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
543 int UNUSED written
= 0;
544 IADDR UNUSED pc
= abuf
->addr
;
545 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
548 DI opval
= ORDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
549 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
550 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
557 /* orrle: or $dstle,$srcle */
560 SEM_FN_NAME (bpfbf_ebpfle
,orrle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
562 #define FLD(f) abuf->fields.sfmt_ldxwle.f
563 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
564 int UNUSED written
= 0;
565 IADDR UNUSED pc
= abuf
->addr
;
566 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
569 DI opval
= ORDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
570 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
571 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
578 /* or32ile: or32 $dstle,$imm32 */
581 SEM_FN_NAME (bpfbf_ebpfle
,or32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
583 #define FLD(f) abuf->fields.sfmt_stble.f
584 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
585 int UNUSED written
= 0;
586 IADDR UNUSED pc
= abuf
->addr
;
587 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
590 USI opval
= ORSI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
591 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
592 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
599 /* or32rle: or32 $dstle,$srcle */
602 SEM_FN_NAME (bpfbf_ebpfle
,or32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
604 #define FLD(f) abuf->fields.sfmt_ldxwle.f
605 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
606 int UNUSED written
= 0;
607 IADDR UNUSED pc
= abuf
->addr
;
608 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
611 USI opval
= ORSI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
612 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
613 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
620 /* andile: and $dstle,$imm32 */
623 SEM_FN_NAME (bpfbf_ebpfle
,andile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
625 #define FLD(f) abuf->fields.sfmt_stble.f
626 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
627 int UNUSED written
= 0;
628 IADDR UNUSED pc
= abuf
->addr
;
629 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
632 DI opval
= ANDDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
633 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
634 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
641 /* andrle: and $dstle,$srcle */
644 SEM_FN_NAME (bpfbf_ebpfle
,andrle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
646 #define FLD(f) abuf->fields.sfmt_ldxwle.f
647 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
648 int UNUSED written
= 0;
649 IADDR UNUSED pc
= abuf
->addr
;
650 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
653 DI opval
= ANDDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
654 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
655 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
662 /* and32ile: and32 $dstle,$imm32 */
665 SEM_FN_NAME (bpfbf_ebpfle
,and32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
667 #define FLD(f) abuf->fields.sfmt_stble.f
668 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
669 int UNUSED written
= 0;
670 IADDR UNUSED pc
= abuf
->addr
;
671 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
674 USI opval
= ANDSI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
675 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
676 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
683 /* and32rle: and32 $dstle,$srcle */
686 SEM_FN_NAME (bpfbf_ebpfle
,and32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
688 #define FLD(f) abuf->fields.sfmt_ldxwle.f
689 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
690 int UNUSED written
= 0;
691 IADDR UNUSED pc
= abuf
->addr
;
692 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
695 USI opval
= ANDSI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
696 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
697 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
704 /* lshile: lsh $dstle,$imm32 */
707 SEM_FN_NAME (bpfbf_ebpfle
,lshile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
709 #define FLD(f) abuf->fields.sfmt_stble.f
710 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
711 int UNUSED written
= 0;
712 IADDR UNUSED pc
= abuf
->addr
;
713 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
716 DI opval
= SLLDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
717 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
718 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
725 /* lshrle: lsh $dstle,$srcle */
728 SEM_FN_NAME (bpfbf_ebpfle
,lshrle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
730 #define FLD(f) abuf->fields.sfmt_ldxwle.f
731 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
732 int UNUSED written
= 0;
733 IADDR UNUSED pc
= abuf
->addr
;
734 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
737 DI opval
= SLLDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
738 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
739 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
746 /* lsh32ile: lsh32 $dstle,$imm32 */
749 SEM_FN_NAME (bpfbf_ebpfle
,lsh32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
751 #define FLD(f) abuf->fields.sfmt_stble.f
752 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
753 int UNUSED written
= 0;
754 IADDR UNUSED pc
= abuf
->addr
;
755 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
758 USI opval
= SLLSI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
759 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
760 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
767 /* lsh32rle: lsh32 $dstle,$srcle */
770 SEM_FN_NAME (bpfbf_ebpfle
,lsh32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
772 #define FLD(f) abuf->fields.sfmt_ldxwle.f
773 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
774 int UNUSED written
= 0;
775 IADDR UNUSED pc
= abuf
->addr
;
776 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
779 USI opval
= SLLSI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
780 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
781 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
788 /* rshile: rsh $dstle,$imm32 */
791 SEM_FN_NAME (bpfbf_ebpfle
,rshile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
793 #define FLD(f) abuf->fields.sfmt_stble.f
794 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
795 int UNUSED written
= 0;
796 IADDR UNUSED pc
= abuf
->addr
;
797 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
800 DI opval
= SRLDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
801 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
802 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
809 /* rshrle: rsh $dstle,$srcle */
812 SEM_FN_NAME (bpfbf_ebpfle
,rshrle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
814 #define FLD(f) abuf->fields.sfmt_ldxwle.f
815 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
816 int UNUSED written
= 0;
817 IADDR UNUSED pc
= abuf
->addr
;
818 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
821 DI opval
= SRLDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
822 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
823 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
830 /* rsh32ile: rsh32 $dstle,$imm32 */
833 SEM_FN_NAME (bpfbf_ebpfle
,rsh32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
835 #define FLD(f) abuf->fields.sfmt_stble.f
836 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
837 int UNUSED written
= 0;
838 IADDR UNUSED pc
= abuf
->addr
;
839 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
842 USI opval
= SRLSI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
843 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
844 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
851 /* rsh32rle: rsh32 $dstle,$srcle */
854 SEM_FN_NAME (bpfbf_ebpfle
,rsh32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
856 #define FLD(f) abuf->fields.sfmt_ldxwle.f
857 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
858 int UNUSED written
= 0;
859 IADDR UNUSED pc
= abuf
->addr
;
860 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
863 USI opval
= SRLSI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
864 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
865 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
872 /* modile: mod $dstle,$imm32 */
875 SEM_FN_NAME (bpfbf_ebpfle
,modile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
877 #define FLD(f) abuf->fields.sfmt_stble.f
878 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
879 int UNUSED written
= 0;
880 IADDR UNUSED pc
= abuf
->addr
;
881 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
884 DI opval
= UMODDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
885 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
886 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
893 /* modrle: mod $dstle,$srcle */
896 SEM_FN_NAME (bpfbf_ebpfle
,modrle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
898 #define FLD(f) abuf->fields.sfmt_ldxwle.f
899 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
900 int UNUSED written
= 0;
901 IADDR UNUSED pc
= abuf
->addr
;
902 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
905 DI opval
= UMODDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
906 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
907 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
914 /* mod32ile: mod32 $dstle,$imm32 */
917 SEM_FN_NAME (bpfbf_ebpfle
,mod32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
919 #define FLD(f) abuf->fields.sfmt_stble.f
920 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
921 int UNUSED written
= 0;
922 IADDR UNUSED pc
= abuf
->addr
;
923 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
926 USI opval
= UMODSI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
927 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
928 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
935 /* mod32rle: mod32 $dstle,$srcle */
938 SEM_FN_NAME (bpfbf_ebpfle
,mod32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
940 #define FLD(f) abuf->fields.sfmt_ldxwle.f
941 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
942 int UNUSED written
= 0;
943 IADDR UNUSED pc
= abuf
->addr
;
944 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
947 USI opval
= UMODSI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
948 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
949 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
956 /* xorile: xor $dstle,$imm32 */
959 SEM_FN_NAME (bpfbf_ebpfle
,xorile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
961 #define FLD(f) abuf->fields.sfmt_stble.f
962 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
963 int UNUSED written
= 0;
964 IADDR UNUSED pc
= abuf
->addr
;
965 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
968 DI opval
= XORDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
969 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
970 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
977 /* xorrle: xor $dstle,$srcle */
980 SEM_FN_NAME (bpfbf_ebpfle
,xorrle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
982 #define FLD(f) abuf->fields.sfmt_ldxwle.f
983 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
984 int UNUSED written
= 0;
985 IADDR UNUSED pc
= abuf
->addr
;
986 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
989 DI opval
= XORDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
990 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
991 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
998 /* xor32ile: xor32 $dstle,$imm32 */
1001 SEM_FN_NAME (bpfbf_ebpfle
,xor32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1003 #define FLD(f) abuf->fields.sfmt_stble.f
1004 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1005 int UNUSED written
= 0;
1006 IADDR UNUSED pc
= abuf
->addr
;
1007 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1010 USI opval
= XORSI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
1011 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1012 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
1019 /* xor32rle: xor32 $dstle,$srcle */
1022 SEM_FN_NAME (bpfbf_ebpfle
,xor32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1024 #define FLD(f) abuf->fields.sfmt_ldxwle.f
1025 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1026 int UNUSED written
= 0;
1027 IADDR UNUSED pc
= abuf
->addr
;
1028 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1031 USI opval
= XORSI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
1032 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1033 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
1040 /* arshile: arsh $dstle,$imm32 */
1043 SEM_FN_NAME (bpfbf_ebpfle
,arshile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1045 #define FLD(f) abuf->fields.sfmt_stble.f
1046 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1047 int UNUSED written
= 0;
1048 IADDR UNUSED pc
= abuf
->addr
;
1049 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1052 DI opval
= SRADI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
1053 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1054 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
1061 /* arshrle: arsh $dstle,$srcle */
1064 SEM_FN_NAME (bpfbf_ebpfle
,arshrle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1066 #define FLD(f) abuf->fields.sfmt_ldxwle.f
1067 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1068 int UNUSED written
= 0;
1069 IADDR UNUSED pc
= abuf
->addr
;
1070 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1073 DI opval
= SRADI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
1074 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1075 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
1082 /* arsh32ile: arsh32 $dstle,$imm32 */
1085 SEM_FN_NAME (bpfbf_ebpfle
,arsh32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1087 #define FLD(f) abuf->fields.sfmt_stble.f
1088 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1089 int UNUSED written
= 0;
1090 IADDR UNUSED pc
= abuf
->addr
;
1091 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1094 USI opval
= SRASI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
1095 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1096 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
1103 /* arsh32rle: arsh32 $dstle,$srcle */
1106 SEM_FN_NAME (bpfbf_ebpfle
,arsh32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1108 #define FLD(f) abuf->fields.sfmt_ldxwle.f
1109 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1110 int UNUSED written
= 0;
1111 IADDR UNUSED pc
= abuf
->addr
;
1112 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1115 USI opval
= SRASI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]));
1116 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1117 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
1124 /* negle: neg $dstle */
1127 SEM_FN_NAME (bpfbf_ebpfle
,negle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1129 #define FLD(f) abuf->fields.sfmt_lddwle.f
1130 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1131 int UNUSED written
= 0;
1132 IADDR UNUSED pc
= abuf
->addr
;
1133 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1136 DI opval
= NEGDI (CPU (h_gpr
[FLD (f_dstle
)]));
1137 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1138 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
1145 /* neg32le: neg32 $dstle */
1148 SEM_FN_NAME (bpfbf_ebpfle
,neg32le
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1150 #define FLD(f) abuf->fields.sfmt_lddwle.f
1151 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1152 int UNUSED written
= 0;
1153 IADDR UNUSED pc
= abuf
->addr
;
1154 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1157 USI opval
= NEGSI (CPU (h_gpr
[FLD (f_dstle
)]));
1158 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1159 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
1166 /* movile: mov $dstle,$imm32 */
1169 SEM_FN_NAME (bpfbf_ebpfle
,movile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1171 #define FLD(f) abuf->fields.sfmt_stble.f
1172 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1173 int UNUSED written
= 0;
1174 IADDR UNUSED pc
= abuf
->addr
;
1175 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1178 DI opval
= FLD (f_imm32
);
1179 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1180 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
1187 /* movrle: mov $dstle,$srcle */
1190 SEM_FN_NAME (bpfbf_ebpfle
,movrle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1192 #define FLD(f) abuf->fields.sfmt_ldxwle.f
1193 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1194 int UNUSED written
= 0;
1195 IADDR UNUSED pc
= abuf
->addr
;
1196 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1199 DI opval
= CPU (h_gpr
[FLD (f_srcle
)]);
1200 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1201 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
1208 /* mov32ile: mov32 $dstle,$imm32 */
1211 SEM_FN_NAME (bpfbf_ebpfle
,mov32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1213 #define FLD(f) abuf->fields.sfmt_stble.f
1214 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1215 int UNUSED written
= 0;
1216 IADDR UNUSED pc
= abuf
->addr
;
1217 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1220 USI opval
= FLD (f_imm32
);
1221 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1222 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
1229 /* mov32rle: mov32 $dstle,$srcle */
1232 SEM_FN_NAME (bpfbf_ebpfle
,mov32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1234 #define FLD(f) abuf->fields.sfmt_ldxwle.f
1235 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1236 int UNUSED written
= 0;
1237 IADDR UNUSED pc
= abuf
->addr
;
1238 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1241 USI opval
= CPU (h_gpr
[FLD (f_srcle
)]);
1242 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1243 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
1250 /* endlele: endle $dstle,$endsize */
1253 SEM_FN_NAME (bpfbf_ebpfle
,endlele
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1255 #define FLD(f) abuf->fields.sfmt_stble.f
1256 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1257 int UNUSED written
= 0;
1258 IADDR UNUSED pc
= abuf
->addr
;
1259 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1262 DI opval
= bpfbf_endle (current_cpu
, CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
1263 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1264 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
1271 /* endbele: endbe $dstle,$endsize */
1274 SEM_FN_NAME (bpfbf_ebpfle
,endbele
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1276 #define FLD(f) abuf->fields.sfmt_stble.f
1277 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1278 int UNUSED written
= 0;
1279 IADDR UNUSED pc
= abuf
->addr
;
1280 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1283 DI opval
= bpfbf_endbe (current_cpu
, CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
));
1284 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1285 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
1292 /* lddwle: lddw $dstle,$imm64 */
1295 SEM_FN_NAME (bpfbf_ebpfle
,lddwle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1297 #define FLD(f) abuf->fields.sfmt_lddwle.f
1298 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1299 int UNUSED written
= 0;
1300 IADDR UNUSED pc
= abuf
->addr
;
1301 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 16);
1304 DI opval
= FLD (f_imm64
);
1305 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1306 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
1313 /* ldabsw: ldabsw $imm32 */
1316 SEM_FN_NAME (bpfbf_ebpfle
,ldabsw
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1318 #define FLD(f) abuf->fields.sfmt_ldindwle.f
1319 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1320 int UNUSED written
= 0;
1321 IADDR UNUSED pc
= abuf
->addr
;
1322 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1325 SI opval
= GETMEMSI (current_cpu
, pc
, ADDDI (GETMEMDI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[((UINT
) 6)]), bpfbf_skb_data_offset (current_cpu
))), FLD (f_imm32
)));
1326 CPU (h_gpr
[((UINT
) 0)]) = opval
;
1327 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
1334 /* ldabsh: ldabsh $imm32 */
1337 SEM_FN_NAME (bpfbf_ebpfle
,ldabsh
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1339 #define FLD(f) abuf->fields.sfmt_ldindwle.f
1340 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1341 int UNUSED written
= 0;
1342 IADDR UNUSED pc
= abuf
->addr
;
1343 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1346 HI opval
= GETMEMHI (current_cpu
, pc
, ADDDI (GETMEMDI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[((UINT
) 6)]), bpfbf_skb_data_offset (current_cpu
))), FLD (f_imm32
)));
1347 CPU (h_gpr
[((UINT
) 0)]) = opval
;
1348 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
1355 /* ldabsb: ldabsb $imm32 */
1358 SEM_FN_NAME (bpfbf_ebpfle
,ldabsb
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1360 #define FLD(f) abuf->fields.sfmt_ldindwle.f
1361 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1362 int UNUSED written
= 0;
1363 IADDR UNUSED pc
= abuf
->addr
;
1364 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1367 QI opval
= GETMEMQI (current_cpu
, pc
, ADDDI (GETMEMDI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[((UINT
) 6)]), bpfbf_skb_data_offset (current_cpu
))), FLD (f_imm32
)));
1368 CPU (h_gpr
[((UINT
) 0)]) = opval
;
1369 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
1376 /* ldabsdw: ldabsdw $imm32 */
1379 SEM_FN_NAME (bpfbf_ebpfle
,ldabsdw
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1381 #define FLD(f) abuf->fields.sfmt_ldindwle.f
1382 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1383 int UNUSED written
= 0;
1384 IADDR UNUSED pc
= abuf
->addr
;
1385 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1388 DI opval
= GETMEMDI (current_cpu
, pc
, ADDDI (GETMEMDI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[((UINT
) 6)]), bpfbf_skb_data_offset (current_cpu
))), FLD (f_imm32
)));
1389 CPU (h_gpr
[((UINT
) 0)]) = opval
;
1390 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
1397 /* ldindwle: ldindw $srcle,$imm32 */
1400 SEM_FN_NAME (bpfbf_ebpfle
,ldindwle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1402 #define FLD(f) abuf->fields.sfmt_ldindwle.f
1403 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1404 int UNUSED written
= 0;
1405 IADDR UNUSED pc
= abuf
->addr
;
1406 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1409 SI opval
= GETMEMSI (current_cpu
, pc
, ADDDI (GETMEMDI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[((UINT
) 6)]), bpfbf_skb_data_offset (current_cpu
))), ADDDI (CPU (h_gpr
[FLD (f_srcle
)]), FLD (f_imm32
))));
1410 CPU (h_gpr
[((UINT
) 0)]) = opval
;
1411 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
1418 /* ldindhle: ldindh $srcle,$imm32 */
1421 SEM_FN_NAME (bpfbf_ebpfle
,ldindhle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1423 #define FLD(f) abuf->fields.sfmt_ldindwle.f
1424 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1425 int UNUSED written
= 0;
1426 IADDR UNUSED pc
= abuf
->addr
;
1427 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1430 HI opval
= GETMEMHI (current_cpu
, pc
, ADDDI (GETMEMDI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[((UINT
) 6)]), bpfbf_skb_data_offset (current_cpu
))), ADDDI (CPU (h_gpr
[FLD (f_srcle
)]), FLD (f_imm32
))));
1431 CPU (h_gpr
[((UINT
) 0)]) = opval
;
1432 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
1439 /* ldindble: ldindb $srcle,$imm32 */
1442 SEM_FN_NAME (bpfbf_ebpfle
,ldindble
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1444 #define FLD(f) abuf->fields.sfmt_ldindwle.f
1445 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1446 int UNUSED written
= 0;
1447 IADDR UNUSED pc
= abuf
->addr
;
1448 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1451 QI opval
= GETMEMQI (current_cpu
, pc
, ADDDI (GETMEMDI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[((UINT
) 6)]), bpfbf_skb_data_offset (current_cpu
))), ADDDI (CPU (h_gpr
[FLD (f_srcle
)]), FLD (f_imm32
))));
1452 CPU (h_gpr
[((UINT
) 0)]) = opval
;
1453 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
1460 /* ldinddwle: ldinddw $srcle,$imm32 */
1463 SEM_FN_NAME (bpfbf_ebpfle
,ldinddwle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1465 #define FLD(f) abuf->fields.sfmt_ldindwle.f
1466 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1467 int UNUSED written
= 0;
1468 IADDR UNUSED pc
= abuf
->addr
;
1469 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1472 DI opval
= GETMEMDI (current_cpu
, pc
, ADDDI (GETMEMDI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[((UINT
) 6)]), bpfbf_skb_data_offset (current_cpu
))), ADDDI (CPU (h_gpr
[FLD (f_srcle
)]), FLD (f_imm32
))));
1473 CPU (h_gpr
[((UINT
) 0)]) = opval
;
1474 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
1481 /* ldxwle: ldxw $dstle,[$srcle+$offset16] */
1484 SEM_FN_NAME (bpfbf_ebpfle
,ldxwle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1486 #define FLD(f) abuf->fields.sfmt_ldxwle.f
1487 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1488 int UNUSED written
= 0;
1489 IADDR UNUSED pc
= abuf
->addr
;
1490 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1493 SI opval
= GETMEMSI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[FLD (f_srcle
)]), FLD (f_offset16
)));
1494 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1495 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
1502 /* ldxhle: ldxh $dstle,[$srcle+$offset16] */
1505 SEM_FN_NAME (bpfbf_ebpfle
,ldxhle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1507 #define FLD(f) abuf->fields.sfmt_ldxwle.f
1508 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1509 int UNUSED written
= 0;
1510 IADDR UNUSED pc
= abuf
->addr
;
1511 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1514 HI opval
= GETMEMHI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[FLD (f_srcle
)]), FLD (f_offset16
)));
1515 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1516 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
1523 /* ldxble: ldxb $dstle,[$srcle+$offset16] */
1526 SEM_FN_NAME (bpfbf_ebpfle
,ldxble
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1528 #define FLD(f) abuf->fields.sfmt_ldxwle.f
1529 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1530 int UNUSED written
= 0;
1531 IADDR UNUSED pc
= abuf
->addr
;
1532 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1535 QI opval
= GETMEMQI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[FLD (f_srcle
)]), FLD (f_offset16
)));
1536 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1537 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'x', opval
);
1544 /* ldxdwle: ldxdw $dstle,[$srcle+$offset16] */
1547 SEM_FN_NAME (bpfbf_ebpfle
,ldxdwle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1549 #define FLD(f) abuf->fields.sfmt_ldxwle.f
1550 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1551 int UNUSED written
= 0;
1552 IADDR UNUSED pc
= abuf
->addr
;
1553 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1556 DI opval
= GETMEMDI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[FLD (f_srcle
)]), FLD (f_offset16
)));
1557 CPU (h_gpr
[FLD (f_dstle
)]) = opval
;
1558 CGEN_TRACE_RESULT (current_cpu
, abuf
, "gpr", 'D', opval
);
1565 /* stxwle: stxw [$dstle+$offset16],$srcle */
1568 SEM_FN_NAME (bpfbf_ebpfle
,stxwle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1570 #define FLD(f) abuf->fields.sfmt_ldxwle.f
1571 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1572 int UNUSED written
= 0;
1573 IADDR UNUSED pc
= abuf
->addr
;
1574 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1577 SI opval
= CPU (h_gpr
[FLD (f_srcle
)]);
1578 SETMEMSI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_offset16
)), opval
);
1579 CGEN_TRACE_RESULT (current_cpu
, abuf
, "memory", 'x', opval
);
1586 /* stxhle: stxh [$dstle+$offset16],$srcle */
1589 SEM_FN_NAME (bpfbf_ebpfle
,stxhle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1591 #define FLD(f) abuf->fields.sfmt_ldxwle.f
1592 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1593 int UNUSED written
= 0;
1594 IADDR UNUSED pc
= abuf
->addr
;
1595 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1598 HI opval
= CPU (h_gpr
[FLD (f_srcle
)]);
1599 SETMEMHI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_offset16
)), opval
);
1600 CGEN_TRACE_RESULT (current_cpu
, abuf
, "memory", 'x', opval
);
1607 /* stxble: stxb [$dstle+$offset16],$srcle */
1610 SEM_FN_NAME (bpfbf_ebpfle
,stxble
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1612 #define FLD(f) abuf->fields.sfmt_ldxwle.f
1613 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1614 int UNUSED written
= 0;
1615 IADDR UNUSED pc
= abuf
->addr
;
1616 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1619 QI opval
= CPU (h_gpr
[FLD (f_srcle
)]);
1620 SETMEMQI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_offset16
)), opval
);
1621 CGEN_TRACE_RESULT (current_cpu
, abuf
, "memory", 'x', opval
);
1628 /* stxdwle: stxdw [$dstle+$offset16],$srcle */
1631 SEM_FN_NAME (bpfbf_ebpfle
,stxdwle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1633 #define FLD(f) abuf->fields.sfmt_ldxwle.f
1634 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1635 int UNUSED written
= 0;
1636 IADDR UNUSED pc
= abuf
->addr
;
1637 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1640 DI opval
= CPU (h_gpr
[FLD (f_srcle
)]);
1641 SETMEMDI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_offset16
)), opval
);
1642 CGEN_TRACE_RESULT (current_cpu
, abuf
, "memory", 'D', opval
);
1649 /* stble: stb [$dstle+$offset16],$imm32 */
1652 SEM_FN_NAME (bpfbf_ebpfle
,stble
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1654 #define FLD(f) abuf->fields.sfmt_stble.f
1655 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1656 int UNUSED written
= 0;
1657 IADDR UNUSED pc
= abuf
->addr
;
1658 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1661 QI opval
= FLD (f_imm32
);
1662 SETMEMQI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_offset16
)), opval
);
1663 CGEN_TRACE_RESULT (current_cpu
, abuf
, "memory", 'x', opval
);
1670 /* sthle: sth [$dstle+$offset16],$imm32 */
1673 SEM_FN_NAME (bpfbf_ebpfle
,sthle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1675 #define FLD(f) abuf->fields.sfmt_stble.f
1676 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1677 int UNUSED written
= 0;
1678 IADDR UNUSED pc
= abuf
->addr
;
1679 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1682 HI opval
= FLD (f_imm32
);
1683 SETMEMHI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_offset16
)), opval
);
1684 CGEN_TRACE_RESULT (current_cpu
, abuf
, "memory", 'x', opval
);
1691 /* stwle: stw [$dstle+$offset16],$imm32 */
1694 SEM_FN_NAME (bpfbf_ebpfle
,stwle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1696 #define FLD(f) abuf->fields.sfmt_stble.f
1697 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1698 int UNUSED written
= 0;
1699 IADDR UNUSED pc
= abuf
->addr
;
1700 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1703 SI opval
= FLD (f_imm32
);
1704 SETMEMSI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_offset16
)), opval
);
1705 CGEN_TRACE_RESULT (current_cpu
, abuf
, "memory", 'x', opval
);
1712 /* stdwle: stdw [$dstle+$offset16],$imm32 */
1715 SEM_FN_NAME (bpfbf_ebpfle
,stdwle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1717 #define FLD(f) abuf->fields.sfmt_stble.f
1718 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1719 int UNUSED written
= 0;
1720 IADDR UNUSED pc
= abuf
->addr
;
1721 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1724 DI opval
= FLD (f_imm32
);
1725 SETMEMDI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_offset16
)), opval
);
1726 CGEN_TRACE_RESULT (current_cpu
, abuf
, "memory", 'D', opval
);
1733 /* jeqile: jeq $dstle,$imm32,$disp16 */
1736 SEM_FN_NAME (bpfbf_ebpfle
,jeqile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1738 #define FLD(f) abuf->fields.sfmt_stble.f
1739 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1740 int UNUSED written
= 0;
1741 IADDR UNUSED pc
= abuf
->addr
;
1743 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1745 if (EQDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
1747 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
1748 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
1749 written
|= (1 << 4);
1750 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
1754 abuf
->written
= written
;
1755 SEM_BRANCH_FINI (vpc
);
1760 /* jeqrle: jeq $dstle,$srcle,$disp16 */
1763 SEM_FN_NAME (bpfbf_ebpfle
,jeqrle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1765 #define FLD(f) abuf->fields.sfmt_ldxwle.f
1766 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1767 int UNUSED written
= 0;
1768 IADDR UNUSED pc
= abuf
->addr
;
1770 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1772 if (EQDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
1774 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
1775 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
1776 written
|= (1 << 4);
1777 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
1781 abuf
->written
= written
;
1782 SEM_BRANCH_FINI (vpc
);
1787 /* jeq32ile: jeq32 $dstle,$imm32,$disp16 */
1790 SEM_FN_NAME (bpfbf_ebpfle
,jeq32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1792 #define FLD(f) abuf->fields.sfmt_stble.f
1793 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1794 int UNUSED written
= 0;
1795 IADDR UNUSED pc
= abuf
->addr
;
1797 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1799 if (EQSI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
1801 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
1802 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
1803 written
|= (1 << 4);
1804 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
1808 abuf
->written
= written
;
1809 SEM_BRANCH_FINI (vpc
);
1814 /* jeq32rle: jeq32 $dstle,$srcle,$disp16 */
1817 SEM_FN_NAME (bpfbf_ebpfle
,jeq32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1819 #define FLD(f) abuf->fields.sfmt_ldxwle.f
1820 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1821 int UNUSED written
= 0;
1822 IADDR UNUSED pc
= abuf
->addr
;
1824 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1826 if (EQSI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
1828 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
1829 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
1830 written
|= (1 << 4);
1831 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
1835 abuf
->written
= written
;
1836 SEM_BRANCH_FINI (vpc
);
1841 /* jgtile: jgt $dstle,$imm32,$disp16 */
1844 SEM_FN_NAME (bpfbf_ebpfle
,jgtile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1846 #define FLD(f) abuf->fields.sfmt_stble.f
1847 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1848 int UNUSED written
= 0;
1849 IADDR UNUSED pc
= abuf
->addr
;
1851 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1853 if (GTUDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
1855 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
1856 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
1857 written
|= (1 << 4);
1858 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
1862 abuf
->written
= written
;
1863 SEM_BRANCH_FINI (vpc
);
1868 /* jgtrle: jgt $dstle,$srcle,$disp16 */
1871 SEM_FN_NAME (bpfbf_ebpfle
,jgtrle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1873 #define FLD(f) abuf->fields.sfmt_ldxwle.f
1874 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1875 int UNUSED written
= 0;
1876 IADDR UNUSED pc
= abuf
->addr
;
1878 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1880 if (GTUDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
1882 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
1883 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
1884 written
|= (1 << 4);
1885 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
1889 abuf
->written
= written
;
1890 SEM_BRANCH_FINI (vpc
);
1895 /* jgt32ile: jgt32 $dstle,$imm32,$disp16 */
1898 SEM_FN_NAME (bpfbf_ebpfle
,jgt32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1900 #define FLD(f) abuf->fields.sfmt_stble.f
1901 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1902 int UNUSED written
= 0;
1903 IADDR UNUSED pc
= abuf
->addr
;
1905 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1907 if (GTUSI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
1909 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
1910 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
1911 written
|= (1 << 4);
1912 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
1916 abuf
->written
= written
;
1917 SEM_BRANCH_FINI (vpc
);
1922 /* jgt32rle: jgt32 $dstle,$srcle,$disp16 */
1925 SEM_FN_NAME (bpfbf_ebpfle
,jgt32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1927 #define FLD(f) abuf->fields.sfmt_ldxwle.f
1928 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1929 int UNUSED written
= 0;
1930 IADDR UNUSED pc
= abuf
->addr
;
1932 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1934 if (GTUSI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
1936 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
1937 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
1938 written
|= (1 << 4);
1939 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
1943 abuf
->written
= written
;
1944 SEM_BRANCH_FINI (vpc
);
1949 /* jgeile: jge $dstle,$imm32,$disp16 */
1952 SEM_FN_NAME (bpfbf_ebpfle
,jgeile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1954 #define FLD(f) abuf->fields.sfmt_stble.f
1955 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1956 int UNUSED written
= 0;
1957 IADDR UNUSED pc
= abuf
->addr
;
1959 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1961 if (GEUDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
1963 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
1964 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
1965 written
|= (1 << 4);
1966 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
1970 abuf
->written
= written
;
1971 SEM_BRANCH_FINI (vpc
);
1976 /* jgerle: jge $dstle,$srcle,$disp16 */
1979 SEM_FN_NAME (bpfbf_ebpfle
,jgerle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
1981 #define FLD(f) abuf->fields.sfmt_ldxwle.f
1982 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
1983 int UNUSED written
= 0;
1984 IADDR UNUSED pc
= abuf
->addr
;
1986 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
1988 if (GEUDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
1990 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
1991 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
1992 written
|= (1 << 4);
1993 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
1997 abuf
->written
= written
;
1998 SEM_BRANCH_FINI (vpc
);
2003 /* jge32ile: jge32 $dstle,$imm32,$disp16 */
2006 SEM_FN_NAME (bpfbf_ebpfle
,jge32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2008 #define FLD(f) abuf->fields.sfmt_stble.f
2009 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2010 int UNUSED written
= 0;
2011 IADDR UNUSED pc
= abuf
->addr
;
2013 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2015 if (GEUSI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
2017 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2018 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2019 written
|= (1 << 4);
2020 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2024 abuf
->written
= written
;
2025 SEM_BRANCH_FINI (vpc
);
2030 /* jge32rle: jge32 $dstle,$srcle,$disp16 */
2033 SEM_FN_NAME (bpfbf_ebpfle
,jge32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2035 #define FLD(f) abuf->fields.sfmt_ldxwle.f
2036 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2037 int UNUSED written
= 0;
2038 IADDR UNUSED pc
= abuf
->addr
;
2040 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2042 if (GEUSI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
2044 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2045 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2046 written
|= (1 << 4);
2047 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2051 abuf
->written
= written
;
2052 SEM_BRANCH_FINI (vpc
);
2057 /* jltile: jlt $dstle,$imm32,$disp16 */
2060 SEM_FN_NAME (bpfbf_ebpfle
,jltile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2062 #define FLD(f) abuf->fields.sfmt_stble.f
2063 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2064 int UNUSED written
= 0;
2065 IADDR UNUSED pc
= abuf
->addr
;
2067 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2069 if (LTUDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
2071 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2072 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2073 written
|= (1 << 4);
2074 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2078 abuf
->written
= written
;
2079 SEM_BRANCH_FINI (vpc
);
2084 /* jltrle: jlt $dstle,$srcle,$disp16 */
2087 SEM_FN_NAME (bpfbf_ebpfle
,jltrle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2089 #define FLD(f) abuf->fields.sfmt_ldxwle.f
2090 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2091 int UNUSED written
= 0;
2092 IADDR UNUSED pc
= abuf
->addr
;
2094 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2096 if (LTUDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
2098 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2099 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2100 written
|= (1 << 4);
2101 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2105 abuf
->written
= written
;
2106 SEM_BRANCH_FINI (vpc
);
2111 /* jlt32ile: jlt32 $dstle,$imm32,$disp16 */
2114 SEM_FN_NAME (bpfbf_ebpfle
,jlt32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2116 #define FLD(f) abuf->fields.sfmt_stble.f
2117 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2118 int UNUSED written
= 0;
2119 IADDR UNUSED pc
= abuf
->addr
;
2121 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2123 if (LTUSI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
2125 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2126 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2127 written
|= (1 << 4);
2128 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2132 abuf
->written
= written
;
2133 SEM_BRANCH_FINI (vpc
);
2138 /* jlt32rle: jlt32 $dstle,$srcle,$disp16 */
2141 SEM_FN_NAME (bpfbf_ebpfle
,jlt32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2143 #define FLD(f) abuf->fields.sfmt_ldxwle.f
2144 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2145 int UNUSED written
= 0;
2146 IADDR UNUSED pc
= abuf
->addr
;
2148 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2150 if (LTUSI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
2152 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2153 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2154 written
|= (1 << 4);
2155 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2159 abuf
->written
= written
;
2160 SEM_BRANCH_FINI (vpc
);
2165 /* jleile: jle $dstle,$imm32,$disp16 */
2168 SEM_FN_NAME (bpfbf_ebpfle
,jleile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2170 #define FLD(f) abuf->fields.sfmt_stble.f
2171 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2172 int UNUSED written
= 0;
2173 IADDR UNUSED pc
= abuf
->addr
;
2175 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2177 if (LEUDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
2179 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2180 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2181 written
|= (1 << 4);
2182 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2186 abuf
->written
= written
;
2187 SEM_BRANCH_FINI (vpc
);
2192 /* jlerle: jle $dstle,$srcle,$disp16 */
2195 SEM_FN_NAME (bpfbf_ebpfle
,jlerle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2197 #define FLD(f) abuf->fields.sfmt_ldxwle.f
2198 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2199 int UNUSED written
= 0;
2200 IADDR UNUSED pc
= abuf
->addr
;
2202 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2204 if (LEUDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
2206 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2207 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2208 written
|= (1 << 4);
2209 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2213 abuf
->written
= written
;
2214 SEM_BRANCH_FINI (vpc
);
2219 /* jle32ile: jle32 $dstle,$imm32,$disp16 */
2222 SEM_FN_NAME (bpfbf_ebpfle
,jle32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2224 #define FLD(f) abuf->fields.sfmt_stble.f
2225 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2226 int UNUSED written
= 0;
2227 IADDR UNUSED pc
= abuf
->addr
;
2229 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2231 if (LEUSI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
2233 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2234 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2235 written
|= (1 << 4);
2236 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2240 abuf
->written
= written
;
2241 SEM_BRANCH_FINI (vpc
);
2246 /* jle32rle: jle32 $dstle,$srcle,$disp16 */
2249 SEM_FN_NAME (bpfbf_ebpfle
,jle32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2251 #define FLD(f) abuf->fields.sfmt_ldxwle.f
2252 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2253 int UNUSED written
= 0;
2254 IADDR UNUSED pc
= abuf
->addr
;
2256 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2258 if (LEUSI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
2260 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2261 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2262 written
|= (1 << 4);
2263 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2267 abuf
->written
= written
;
2268 SEM_BRANCH_FINI (vpc
);
2273 /* jsetile: jset $dstle,$imm32,$disp16 */
2276 SEM_FN_NAME (bpfbf_ebpfle
,jsetile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2278 #define FLD(f) abuf->fields.sfmt_stble.f
2279 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2280 int UNUSED written
= 0;
2281 IADDR UNUSED pc
= abuf
->addr
;
2283 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2285 if (ANDDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
2287 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2288 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2289 written
|= (1 << 4);
2290 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2294 abuf
->written
= written
;
2295 SEM_BRANCH_FINI (vpc
);
2300 /* jsetrle: jset $dstle,$srcle,$disp16 */
2303 SEM_FN_NAME (bpfbf_ebpfle
,jsetrle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2305 #define FLD(f) abuf->fields.sfmt_ldxwle.f
2306 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2307 int UNUSED written
= 0;
2308 IADDR UNUSED pc
= abuf
->addr
;
2310 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2312 if (ANDDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
2314 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2315 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2316 written
|= (1 << 4);
2317 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2321 abuf
->written
= written
;
2322 SEM_BRANCH_FINI (vpc
);
2327 /* jset32ile: jset32 $dstle,$imm32,$disp16 */
2330 SEM_FN_NAME (bpfbf_ebpfle
,jset32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2332 #define FLD(f) abuf->fields.sfmt_stble.f
2333 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2334 int UNUSED written
= 0;
2335 IADDR UNUSED pc
= abuf
->addr
;
2337 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2339 if (ANDSI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
2341 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2342 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2343 written
|= (1 << 4);
2344 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2348 abuf
->written
= written
;
2349 SEM_BRANCH_FINI (vpc
);
2354 /* jset32rle: jset32 $dstle,$srcle,$disp16 */
2357 SEM_FN_NAME (bpfbf_ebpfle
,jset32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2359 #define FLD(f) abuf->fields.sfmt_ldxwle.f
2360 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2361 int UNUSED written
= 0;
2362 IADDR UNUSED pc
= abuf
->addr
;
2364 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2366 if (ANDSI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
2368 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2369 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2370 written
|= (1 << 4);
2371 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2375 abuf
->written
= written
;
2376 SEM_BRANCH_FINI (vpc
);
2381 /* jneile: jne $dstle,$imm32,$disp16 */
2384 SEM_FN_NAME (bpfbf_ebpfle
,jneile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2386 #define FLD(f) abuf->fields.sfmt_stble.f
2387 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2388 int UNUSED written
= 0;
2389 IADDR UNUSED pc
= abuf
->addr
;
2391 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2393 if (NEDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
2395 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2396 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2397 written
|= (1 << 4);
2398 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2402 abuf
->written
= written
;
2403 SEM_BRANCH_FINI (vpc
);
2408 /* jnerle: jne $dstle,$srcle,$disp16 */
2411 SEM_FN_NAME (bpfbf_ebpfle
,jnerle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2413 #define FLD(f) abuf->fields.sfmt_ldxwle.f
2414 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2415 int UNUSED written
= 0;
2416 IADDR UNUSED pc
= abuf
->addr
;
2418 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2420 if (NEDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
2422 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2423 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2424 written
|= (1 << 4);
2425 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2429 abuf
->written
= written
;
2430 SEM_BRANCH_FINI (vpc
);
2435 /* jne32ile: jne32 $dstle,$imm32,$disp16 */
2438 SEM_FN_NAME (bpfbf_ebpfle
,jne32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2440 #define FLD(f) abuf->fields.sfmt_stble.f
2441 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2442 int UNUSED written
= 0;
2443 IADDR UNUSED pc
= abuf
->addr
;
2445 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2447 if (NESI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
2449 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2450 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2451 written
|= (1 << 4);
2452 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2456 abuf
->written
= written
;
2457 SEM_BRANCH_FINI (vpc
);
2462 /* jne32rle: jne32 $dstle,$srcle,$disp16 */
2465 SEM_FN_NAME (bpfbf_ebpfle
,jne32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2467 #define FLD(f) abuf->fields.sfmt_ldxwle.f
2468 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2469 int UNUSED written
= 0;
2470 IADDR UNUSED pc
= abuf
->addr
;
2472 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2474 if (NESI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
2476 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2477 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2478 written
|= (1 << 4);
2479 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2483 abuf
->written
= written
;
2484 SEM_BRANCH_FINI (vpc
);
2489 /* jsgtile: jsgt $dstle,$imm32,$disp16 */
2492 SEM_FN_NAME (bpfbf_ebpfle
,jsgtile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2494 #define FLD(f) abuf->fields.sfmt_stble.f
2495 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2496 int UNUSED written
= 0;
2497 IADDR UNUSED pc
= abuf
->addr
;
2499 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2501 if (GTDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
2503 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2504 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2505 written
|= (1 << 4);
2506 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2510 abuf
->written
= written
;
2511 SEM_BRANCH_FINI (vpc
);
2516 /* jsgtrle: jsgt $dstle,$srcle,$disp16 */
2519 SEM_FN_NAME (bpfbf_ebpfle
,jsgtrle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2521 #define FLD(f) abuf->fields.sfmt_ldxwle.f
2522 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2523 int UNUSED written
= 0;
2524 IADDR UNUSED pc
= abuf
->addr
;
2526 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2528 if (GTDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
2530 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2531 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2532 written
|= (1 << 4);
2533 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2537 abuf
->written
= written
;
2538 SEM_BRANCH_FINI (vpc
);
2543 /* jsgt32ile: jsgt32 $dstle,$imm32,$disp16 */
2546 SEM_FN_NAME (bpfbf_ebpfle
,jsgt32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2548 #define FLD(f) abuf->fields.sfmt_stble.f
2549 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2550 int UNUSED written
= 0;
2551 IADDR UNUSED pc
= abuf
->addr
;
2553 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2555 if (GTSI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
2557 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2558 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2559 written
|= (1 << 4);
2560 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2564 abuf
->written
= written
;
2565 SEM_BRANCH_FINI (vpc
);
2570 /* jsgt32rle: jsgt32 $dstle,$srcle,$disp16 */
2573 SEM_FN_NAME (bpfbf_ebpfle
,jsgt32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2575 #define FLD(f) abuf->fields.sfmt_ldxwle.f
2576 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2577 int UNUSED written
= 0;
2578 IADDR UNUSED pc
= abuf
->addr
;
2580 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2582 if (GTSI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
2584 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2585 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2586 written
|= (1 << 4);
2587 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2591 abuf
->written
= written
;
2592 SEM_BRANCH_FINI (vpc
);
2597 /* jsgeile: jsge $dstle,$imm32,$disp16 */
2600 SEM_FN_NAME (bpfbf_ebpfle
,jsgeile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2602 #define FLD(f) abuf->fields.sfmt_stble.f
2603 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2604 int UNUSED written
= 0;
2605 IADDR UNUSED pc
= abuf
->addr
;
2607 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2609 if (GEDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
2611 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2612 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2613 written
|= (1 << 4);
2614 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2618 abuf
->written
= written
;
2619 SEM_BRANCH_FINI (vpc
);
2624 /* jsgerle: jsge $dstle,$srcle,$disp16 */
2627 SEM_FN_NAME (bpfbf_ebpfle
,jsgerle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2629 #define FLD(f) abuf->fields.sfmt_ldxwle.f
2630 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2631 int UNUSED written
= 0;
2632 IADDR UNUSED pc
= abuf
->addr
;
2634 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2636 if (GEDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
2638 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2639 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2640 written
|= (1 << 4);
2641 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2645 abuf
->written
= written
;
2646 SEM_BRANCH_FINI (vpc
);
2651 /* jsge32ile: jsge32 $dstle,$imm32,$disp16 */
2654 SEM_FN_NAME (bpfbf_ebpfle
,jsge32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2656 #define FLD(f) abuf->fields.sfmt_stble.f
2657 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2658 int UNUSED written
= 0;
2659 IADDR UNUSED pc
= abuf
->addr
;
2661 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2663 if (GESI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
2665 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2666 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2667 written
|= (1 << 4);
2668 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2672 abuf
->written
= written
;
2673 SEM_BRANCH_FINI (vpc
);
2678 /* jsge32rle: jsge32 $dstle,$srcle,$disp16 */
2681 SEM_FN_NAME (bpfbf_ebpfle
,jsge32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2683 #define FLD(f) abuf->fields.sfmt_ldxwle.f
2684 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2685 int UNUSED written
= 0;
2686 IADDR UNUSED pc
= abuf
->addr
;
2688 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2690 if (GESI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
2692 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2693 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2694 written
|= (1 << 4);
2695 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2699 abuf
->written
= written
;
2700 SEM_BRANCH_FINI (vpc
);
2705 /* jsltile: jslt $dstle,$imm32,$disp16 */
2708 SEM_FN_NAME (bpfbf_ebpfle
,jsltile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2710 #define FLD(f) abuf->fields.sfmt_stble.f
2711 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2712 int UNUSED written
= 0;
2713 IADDR UNUSED pc
= abuf
->addr
;
2715 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2717 if (LTDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
2719 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2720 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2721 written
|= (1 << 4);
2722 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2726 abuf
->written
= written
;
2727 SEM_BRANCH_FINI (vpc
);
2732 /* jsltrle: jslt $dstle,$srcle,$disp16 */
2735 SEM_FN_NAME (bpfbf_ebpfle
,jsltrle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2737 #define FLD(f) abuf->fields.sfmt_ldxwle.f
2738 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2739 int UNUSED written
= 0;
2740 IADDR UNUSED pc
= abuf
->addr
;
2742 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2744 if (LTDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
2746 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2747 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2748 written
|= (1 << 4);
2749 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2753 abuf
->written
= written
;
2754 SEM_BRANCH_FINI (vpc
);
2759 /* jslt32ile: jslt32 $dstle,$imm32,$disp16 */
2762 SEM_FN_NAME (bpfbf_ebpfle
,jslt32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2764 #define FLD(f) abuf->fields.sfmt_stble.f
2765 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2766 int UNUSED written
= 0;
2767 IADDR UNUSED pc
= abuf
->addr
;
2769 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2771 if (LTSI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
2773 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2774 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2775 written
|= (1 << 4);
2776 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2780 abuf
->written
= written
;
2781 SEM_BRANCH_FINI (vpc
);
2786 /* jslt32rle: jslt32 $dstle,$srcle,$disp16 */
2789 SEM_FN_NAME (bpfbf_ebpfle
,jslt32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2791 #define FLD(f) abuf->fields.sfmt_ldxwle.f
2792 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2793 int UNUSED written
= 0;
2794 IADDR UNUSED pc
= abuf
->addr
;
2796 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2798 if (LTSI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
2800 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2801 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2802 written
|= (1 << 4);
2803 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2807 abuf
->written
= written
;
2808 SEM_BRANCH_FINI (vpc
);
2813 /* jsleile: jsle $dstle,$imm32,$disp16 */
2816 SEM_FN_NAME (bpfbf_ebpfle
,jsleile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2818 #define FLD(f) abuf->fields.sfmt_stble.f
2819 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2820 int UNUSED written
= 0;
2821 IADDR UNUSED pc
= abuf
->addr
;
2823 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2825 if (LEDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
2827 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2828 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2829 written
|= (1 << 4);
2830 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2834 abuf
->written
= written
;
2835 SEM_BRANCH_FINI (vpc
);
2840 /* jslerle: jsle $dstle,$srcle,$disp16 */
2843 SEM_FN_NAME (bpfbf_ebpfle
,jslerle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2845 #define FLD(f) abuf->fields.sfmt_ldxwle.f
2846 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2847 int UNUSED written
= 0;
2848 IADDR UNUSED pc
= abuf
->addr
;
2850 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2852 if (LEDI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
2854 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2855 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2856 written
|= (1 << 4);
2857 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2861 abuf
->written
= written
;
2862 SEM_BRANCH_FINI (vpc
);
2867 /* jsle32ile: jsle32 $dstle,$imm32,$disp16 */
2870 SEM_FN_NAME (bpfbf_ebpfle
,jsle32ile
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2872 #define FLD(f) abuf->fields.sfmt_stble.f
2873 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2874 int UNUSED written
= 0;
2875 IADDR UNUSED pc
= abuf
->addr
;
2877 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2879 if (LESI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_imm32
))) {
2881 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2882 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2883 written
|= (1 << 4);
2884 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2888 abuf
->written
= written
;
2889 SEM_BRANCH_FINI (vpc
);
2894 /* jsle32rle: jsle32 $dstle,$srcle,$disp16 */
2897 SEM_FN_NAME (bpfbf_ebpfle
,jsle32rle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2899 #define FLD(f) abuf->fields.sfmt_ldxwle.f
2900 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2901 int UNUSED written
= 0;
2902 IADDR UNUSED pc
= abuf
->addr
;
2904 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2906 if (LESI (CPU (h_gpr
[FLD (f_dstle
)]), CPU (h_gpr
[FLD (f_srcle
)]))) {
2908 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2909 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2910 written
|= (1 << 4);
2911 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2915 abuf
->written
= written
;
2916 SEM_BRANCH_FINI (vpc
);
2921 /* callle: call $disp32 */
2924 SEM_FN_NAME (bpfbf_ebpfle
,callle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2926 #define FLD(f) abuf->fields.sfmt_ldindwle.f
2927 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2928 int UNUSED written
= 0;
2929 IADDR UNUSED pc
= abuf
->addr
;
2930 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2932 bpfbf_call (current_cpu
, FLD (f_imm32
), FLD (f_srcle
));
2938 /* ja: ja $disp16 */
2941 SEM_FN_NAME (bpfbf_ebpfle
,ja
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2943 #define FLD(f) abuf->fields.sfmt_stble.f
2944 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2945 int UNUSED written
= 0;
2946 IADDR UNUSED pc
= abuf
->addr
;
2948 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2951 DI opval
= ADDDI (pc
, MULDI (ADDHI (FLD (f_offset16
), 1), 8));
2952 SEM_BRANCH_VIA_ADDR (current_cpu
, sem_arg
, opval
, vpc
);
2953 CGEN_TRACE_RESULT (current_cpu
, abuf
, "pc", 'D', opval
);
2956 SEM_BRANCH_FINI (vpc
);
2964 SEM_FN_NAME (bpfbf_ebpfle
,exit
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2966 #define FLD(f) abuf->fields.sfmt_empty.f
2967 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2968 int UNUSED written
= 0;
2969 IADDR UNUSED pc
= abuf
->addr
;
2970 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2972 bpfbf_exit (current_cpu
);
2978 /* xadddwle: xadddw [$dstle+$offset16],$srcle */
2981 SEM_FN_NAME (bpfbf_ebpfle
,xadddwle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
2983 #define FLD(f) abuf->fields.sfmt_ldxwle.f
2984 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
2985 int UNUSED written
= 0;
2986 IADDR UNUSED pc
= abuf
->addr
;
2987 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
2991 tmp_tmp
= GETMEMDI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_offset16
)));
2993 DI opval
= ADDDI (tmp_tmp
, CPU (h_gpr
[FLD (f_srcle
)]));
2994 SETMEMDI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_offset16
)), opval
);
2995 CGEN_TRACE_RESULT (current_cpu
, abuf
, "memory", 'D', opval
);
3003 /* xaddwle: xaddw [$dstle+$offset16],$srcle */
3006 SEM_FN_NAME (bpfbf_ebpfle
,xaddwle
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
3008 #define FLD(f) abuf->fields.sfmt_ldxwle.f
3009 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
3010 int UNUSED written
= 0;
3011 IADDR UNUSED pc
= abuf
->addr
;
3012 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
3016 tmp_tmp
= GETMEMSI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_offset16
)));
3018 SI opval
= ADDSI (tmp_tmp
, CPU (h_gpr
[FLD (f_srcle
)]));
3019 SETMEMSI (current_cpu
, pc
, ADDDI (CPU (h_gpr
[FLD (f_dstle
)]), FLD (f_offset16
)), opval
);
3020 CGEN_TRACE_RESULT (current_cpu
, abuf
, "memory", 'x', opval
);
3031 SEM_FN_NAME (bpfbf_ebpfle
,brkpt
) (SIM_CPU
*current_cpu
, SEM_ARG sem_arg
)
3033 #define FLD(f) abuf->fields.sfmt_empty.f
3034 ARGBUF
*abuf
= SEM_ARGBUF (sem_arg
);
3035 int UNUSED written
= 0;
3036 IADDR UNUSED pc
= abuf
->addr
;
3037 SEM_PC vpc
= SEM_NEXT_VPC (sem_arg
, pc
, 8);
3039 bpfbf_breakpoint (current_cpu
);
3045 /* Table of all semantic fns. */
3047 static const struct sem_fn_desc sem_fns
[] = {
3048 { BPFBF_EBPFLE_INSN_X_INVALID
, SEM_FN_NAME (bpfbf_ebpfle
,x_invalid
) },
3049 { BPFBF_EBPFLE_INSN_X_AFTER
, SEM_FN_NAME (bpfbf_ebpfle
,x_after
) },
3050 { BPFBF_EBPFLE_INSN_X_BEFORE
, SEM_FN_NAME (bpfbf_ebpfle
,x_before
) },
3051 { BPFBF_EBPFLE_INSN_X_CTI_CHAIN
, SEM_FN_NAME (bpfbf_ebpfle
,x_cti_chain
) },
3052 { BPFBF_EBPFLE_INSN_X_CHAIN
, SEM_FN_NAME (bpfbf_ebpfle
,x_chain
) },
3053 { BPFBF_EBPFLE_INSN_X_BEGIN
, SEM_FN_NAME (bpfbf_ebpfle
,x_begin
) },
3054 { BPFBF_EBPFLE_INSN_ADDILE
, SEM_FN_NAME (bpfbf_ebpfle
,addile
) },
3055 { BPFBF_EBPFLE_INSN_ADDRLE
, SEM_FN_NAME (bpfbf_ebpfle
,addrle
) },
3056 { BPFBF_EBPFLE_INSN_ADD32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,add32ile
) },
3057 { BPFBF_EBPFLE_INSN_ADD32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,add32rle
) },
3058 { BPFBF_EBPFLE_INSN_SUBILE
, SEM_FN_NAME (bpfbf_ebpfle
,subile
) },
3059 { BPFBF_EBPFLE_INSN_SUBRLE
, SEM_FN_NAME (bpfbf_ebpfle
,subrle
) },
3060 { BPFBF_EBPFLE_INSN_SUB32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,sub32ile
) },
3061 { BPFBF_EBPFLE_INSN_SUB32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,sub32rle
) },
3062 { BPFBF_EBPFLE_INSN_MULILE
, SEM_FN_NAME (bpfbf_ebpfle
,mulile
) },
3063 { BPFBF_EBPFLE_INSN_MULRLE
, SEM_FN_NAME (bpfbf_ebpfle
,mulrle
) },
3064 { BPFBF_EBPFLE_INSN_MUL32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,mul32ile
) },
3065 { BPFBF_EBPFLE_INSN_MUL32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,mul32rle
) },
3066 { BPFBF_EBPFLE_INSN_DIVILE
, SEM_FN_NAME (bpfbf_ebpfle
,divile
) },
3067 { BPFBF_EBPFLE_INSN_DIVRLE
, SEM_FN_NAME (bpfbf_ebpfle
,divrle
) },
3068 { BPFBF_EBPFLE_INSN_DIV32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,div32ile
) },
3069 { BPFBF_EBPFLE_INSN_DIV32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,div32rle
) },
3070 { BPFBF_EBPFLE_INSN_ORILE
, SEM_FN_NAME (bpfbf_ebpfle
,orile
) },
3071 { BPFBF_EBPFLE_INSN_ORRLE
, SEM_FN_NAME (bpfbf_ebpfle
,orrle
) },
3072 { BPFBF_EBPFLE_INSN_OR32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,or32ile
) },
3073 { BPFBF_EBPFLE_INSN_OR32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,or32rle
) },
3074 { BPFBF_EBPFLE_INSN_ANDILE
, SEM_FN_NAME (bpfbf_ebpfle
,andile
) },
3075 { BPFBF_EBPFLE_INSN_ANDRLE
, SEM_FN_NAME (bpfbf_ebpfle
,andrle
) },
3076 { BPFBF_EBPFLE_INSN_AND32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,and32ile
) },
3077 { BPFBF_EBPFLE_INSN_AND32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,and32rle
) },
3078 { BPFBF_EBPFLE_INSN_LSHILE
, SEM_FN_NAME (bpfbf_ebpfle
,lshile
) },
3079 { BPFBF_EBPFLE_INSN_LSHRLE
, SEM_FN_NAME (bpfbf_ebpfle
,lshrle
) },
3080 { BPFBF_EBPFLE_INSN_LSH32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,lsh32ile
) },
3081 { BPFBF_EBPFLE_INSN_LSH32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,lsh32rle
) },
3082 { BPFBF_EBPFLE_INSN_RSHILE
, SEM_FN_NAME (bpfbf_ebpfle
,rshile
) },
3083 { BPFBF_EBPFLE_INSN_RSHRLE
, SEM_FN_NAME (bpfbf_ebpfle
,rshrle
) },
3084 { BPFBF_EBPFLE_INSN_RSH32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,rsh32ile
) },
3085 { BPFBF_EBPFLE_INSN_RSH32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,rsh32rle
) },
3086 { BPFBF_EBPFLE_INSN_MODILE
, SEM_FN_NAME (bpfbf_ebpfle
,modile
) },
3087 { BPFBF_EBPFLE_INSN_MODRLE
, SEM_FN_NAME (bpfbf_ebpfle
,modrle
) },
3088 { BPFBF_EBPFLE_INSN_MOD32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,mod32ile
) },
3089 { BPFBF_EBPFLE_INSN_MOD32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,mod32rle
) },
3090 { BPFBF_EBPFLE_INSN_XORILE
, SEM_FN_NAME (bpfbf_ebpfle
,xorile
) },
3091 { BPFBF_EBPFLE_INSN_XORRLE
, SEM_FN_NAME (bpfbf_ebpfle
,xorrle
) },
3092 { BPFBF_EBPFLE_INSN_XOR32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,xor32ile
) },
3093 { BPFBF_EBPFLE_INSN_XOR32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,xor32rle
) },
3094 { BPFBF_EBPFLE_INSN_ARSHILE
, SEM_FN_NAME (bpfbf_ebpfle
,arshile
) },
3095 { BPFBF_EBPFLE_INSN_ARSHRLE
, SEM_FN_NAME (bpfbf_ebpfle
,arshrle
) },
3096 { BPFBF_EBPFLE_INSN_ARSH32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,arsh32ile
) },
3097 { BPFBF_EBPFLE_INSN_ARSH32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,arsh32rle
) },
3098 { BPFBF_EBPFLE_INSN_NEGLE
, SEM_FN_NAME (bpfbf_ebpfle
,negle
) },
3099 { BPFBF_EBPFLE_INSN_NEG32LE
, SEM_FN_NAME (bpfbf_ebpfle
,neg32le
) },
3100 { BPFBF_EBPFLE_INSN_MOVILE
, SEM_FN_NAME (bpfbf_ebpfle
,movile
) },
3101 { BPFBF_EBPFLE_INSN_MOVRLE
, SEM_FN_NAME (bpfbf_ebpfle
,movrle
) },
3102 { BPFBF_EBPFLE_INSN_MOV32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,mov32ile
) },
3103 { BPFBF_EBPFLE_INSN_MOV32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,mov32rle
) },
3104 { BPFBF_EBPFLE_INSN_ENDLELE
, SEM_FN_NAME (bpfbf_ebpfle
,endlele
) },
3105 { BPFBF_EBPFLE_INSN_ENDBELE
, SEM_FN_NAME (bpfbf_ebpfle
,endbele
) },
3106 { BPFBF_EBPFLE_INSN_LDDWLE
, SEM_FN_NAME (bpfbf_ebpfle
,lddwle
) },
3107 { BPFBF_EBPFLE_INSN_LDABSW
, SEM_FN_NAME (bpfbf_ebpfle
,ldabsw
) },
3108 { BPFBF_EBPFLE_INSN_LDABSH
, SEM_FN_NAME (bpfbf_ebpfle
,ldabsh
) },
3109 { BPFBF_EBPFLE_INSN_LDABSB
, SEM_FN_NAME (bpfbf_ebpfle
,ldabsb
) },
3110 { BPFBF_EBPFLE_INSN_LDABSDW
, SEM_FN_NAME (bpfbf_ebpfle
,ldabsdw
) },
3111 { BPFBF_EBPFLE_INSN_LDINDWLE
, SEM_FN_NAME (bpfbf_ebpfle
,ldindwle
) },
3112 { BPFBF_EBPFLE_INSN_LDINDHLE
, SEM_FN_NAME (bpfbf_ebpfle
,ldindhle
) },
3113 { BPFBF_EBPFLE_INSN_LDINDBLE
, SEM_FN_NAME (bpfbf_ebpfle
,ldindble
) },
3114 { BPFBF_EBPFLE_INSN_LDINDDWLE
, SEM_FN_NAME (bpfbf_ebpfle
,ldinddwle
) },
3115 { BPFBF_EBPFLE_INSN_LDXWLE
, SEM_FN_NAME (bpfbf_ebpfle
,ldxwle
) },
3116 { BPFBF_EBPFLE_INSN_LDXHLE
, SEM_FN_NAME (bpfbf_ebpfle
,ldxhle
) },
3117 { BPFBF_EBPFLE_INSN_LDXBLE
, SEM_FN_NAME (bpfbf_ebpfle
,ldxble
) },
3118 { BPFBF_EBPFLE_INSN_LDXDWLE
, SEM_FN_NAME (bpfbf_ebpfle
,ldxdwle
) },
3119 { BPFBF_EBPFLE_INSN_STXWLE
, SEM_FN_NAME (bpfbf_ebpfle
,stxwle
) },
3120 { BPFBF_EBPFLE_INSN_STXHLE
, SEM_FN_NAME (bpfbf_ebpfle
,stxhle
) },
3121 { BPFBF_EBPFLE_INSN_STXBLE
, SEM_FN_NAME (bpfbf_ebpfle
,stxble
) },
3122 { BPFBF_EBPFLE_INSN_STXDWLE
, SEM_FN_NAME (bpfbf_ebpfle
,stxdwle
) },
3123 { BPFBF_EBPFLE_INSN_STBLE
, SEM_FN_NAME (bpfbf_ebpfle
,stble
) },
3124 { BPFBF_EBPFLE_INSN_STHLE
, SEM_FN_NAME (bpfbf_ebpfle
,sthle
) },
3125 { BPFBF_EBPFLE_INSN_STWLE
, SEM_FN_NAME (bpfbf_ebpfle
,stwle
) },
3126 { BPFBF_EBPFLE_INSN_STDWLE
, SEM_FN_NAME (bpfbf_ebpfle
,stdwle
) },
3127 { BPFBF_EBPFLE_INSN_JEQILE
, SEM_FN_NAME (bpfbf_ebpfle
,jeqile
) },
3128 { BPFBF_EBPFLE_INSN_JEQRLE
, SEM_FN_NAME (bpfbf_ebpfle
,jeqrle
) },
3129 { BPFBF_EBPFLE_INSN_JEQ32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,jeq32ile
) },
3130 { BPFBF_EBPFLE_INSN_JEQ32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,jeq32rle
) },
3131 { BPFBF_EBPFLE_INSN_JGTILE
, SEM_FN_NAME (bpfbf_ebpfle
,jgtile
) },
3132 { BPFBF_EBPFLE_INSN_JGTRLE
, SEM_FN_NAME (bpfbf_ebpfle
,jgtrle
) },
3133 { BPFBF_EBPFLE_INSN_JGT32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,jgt32ile
) },
3134 { BPFBF_EBPFLE_INSN_JGT32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,jgt32rle
) },
3135 { BPFBF_EBPFLE_INSN_JGEILE
, SEM_FN_NAME (bpfbf_ebpfle
,jgeile
) },
3136 { BPFBF_EBPFLE_INSN_JGERLE
, SEM_FN_NAME (bpfbf_ebpfle
,jgerle
) },
3137 { BPFBF_EBPFLE_INSN_JGE32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,jge32ile
) },
3138 { BPFBF_EBPFLE_INSN_JGE32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,jge32rle
) },
3139 { BPFBF_EBPFLE_INSN_JLTILE
, SEM_FN_NAME (bpfbf_ebpfle
,jltile
) },
3140 { BPFBF_EBPFLE_INSN_JLTRLE
, SEM_FN_NAME (bpfbf_ebpfle
,jltrle
) },
3141 { BPFBF_EBPFLE_INSN_JLT32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,jlt32ile
) },
3142 { BPFBF_EBPFLE_INSN_JLT32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,jlt32rle
) },
3143 { BPFBF_EBPFLE_INSN_JLEILE
, SEM_FN_NAME (bpfbf_ebpfle
,jleile
) },
3144 { BPFBF_EBPFLE_INSN_JLERLE
, SEM_FN_NAME (bpfbf_ebpfle
,jlerle
) },
3145 { BPFBF_EBPFLE_INSN_JLE32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,jle32ile
) },
3146 { BPFBF_EBPFLE_INSN_JLE32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,jle32rle
) },
3147 { BPFBF_EBPFLE_INSN_JSETILE
, SEM_FN_NAME (bpfbf_ebpfle
,jsetile
) },
3148 { BPFBF_EBPFLE_INSN_JSETRLE
, SEM_FN_NAME (bpfbf_ebpfle
,jsetrle
) },
3149 { BPFBF_EBPFLE_INSN_JSET32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,jset32ile
) },
3150 { BPFBF_EBPFLE_INSN_JSET32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,jset32rle
) },
3151 { BPFBF_EBPFLE_INSN_JNEILE
, SEM_FN_NAME (bpfbf_ebpfle
,jneile
) },
3152 { BPFBF_EBPFLE_INSN_JNERLE
, SEM_FN_NAME (bpfbf_ebpfle
,jnerle
) },
3153 { BPFBF_EBPFLE_INSN_JNE32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,jne32ile
) },
3154 { BPFBF_EBPFLE_INSN_JNE32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,jne32rle
) },
3155 { BPFBF_EBPFLE_INSN_JSGTILE
, SEM_FN_NAME (bpfbf_ebpfle
,jsgtile
) },
3156 { BPFBF_EBPFLE_INSN_JSGTRLE
, SEM_FN_NAME (bpfbf_ebpfle
,jsgtrle
) },
3157 { BPFBF_EBPFLE_INSN_JSGT32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,jsgt32ile
) },
3158 { BPFBF_EBPFLE_INSN_JSGT32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,jsgt32rle
) },
3159 { BPFBF_EBPFLE_INSN_JSGEILE
, SEM_FN_NAME (bpfbf_ebpfle
,jsgeile
) },
3160 { BPFBF_EBPFLE_INSN_JSGERLE
, SEM_FN_NAME (bpfbf_ebpfle
,jsgerle
) },
3161 { BPFBF_EBPFLE_INSN_JSGE32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,jsge32ile
) },
3162 { BPFBF_EBPFLE_INSN_JSGE32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,jsge32rle
) },
3163 { BPFBF_EBPFLE_INSN_JSLTILE
, SEM_FN_NAME (bpfbf_ebpfle
,jsltile
) },
3164 { BPFBF_EBPFLE_INSN_JSLTRLE
, SEM_FN_NAME (bpfbf_ebpfle
,jsltrle
) },
3165 { BPFBF_EBPFLE_INSN_JSLT32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,jslt32ile
) },
3166 { BPFBF_EBPFLE_INSN_JSLT32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,jslt32rle
) },
3167 { BPFBF_EBPFLE_INSN_JSLEILE
, SEM_FN_NAME (bpfbf_ebpfle
,jsleile
) },
3168 { BPFBF_EBPFLE_INSN_JSLERLE
, SEM_FN_NAME (bpfbf_ebpfle
,jslerle
) },
3169 { BPFBF_EBPFLE_INSN_JSLE32ILE
, SEM_FN_NAME (bpfbf_ebpfle
,jsle32ile
) },
3170 { BPFBF_EBPFLE_INSN_JSLE32RLE
, SEM_FN_NAME (bpfbf_ebpfle
,jsle32rle
) },
3171 { BPFBF_EBPFLE_INSN_CALLLE
, SEM_FN_NAME (bpfbf_ebpfle
,callle
) },
3172 { BPFBF_EBPFLE_INSN_JA
, SEM_FN_NAME (bpfbf_ebpfle
,ja
) },
3173 { BPFBF_EBPFLE_INSN_EXIT
, SEM_FN_NAME (bpfbf_ebpfle
,exit
) },
3174 { BPFBF_EBPFLE_INSN_XADDDWLE
, SEM_FN_NAME (bpfbf_ebpfle
,xadddwle
) },
3175 { BPFBF_EBPFLE_INSN_XADDWLE
, SEM_FN_NAME (bpfbf_ebpfle
,xaddwle
) },
3176 { BPFBF_EBPFLE_INSN_BRKPT
, SEM_FN_NAME (bpfbf_ebpfle
,brkpt
) },
3180 /* Add the semantic fns to IDESC_TABLE. */
3183 SEM_FN_NAME (bpfbf_ebpfle
,init_idesc_table
) (SIM_CPU
*current_cpu
)
3185 IDESC
*idesc_table
= CPU_IDESC (current_cpu
);
3186 const struct sem_fn_desc
*sf
;
3187 int mach_num
= MACH_NUM (CPU_MACH (current_cpu
));
3189 for (sf
= &sem_fns
[0]; sf
->fn
!= 0; ++sf
)
3191 const CGEN_INSN
*insn
= idesc_table
[sf
->index
].idata
;
3192 int valid_p
= (CGEN_INSN_VIRTUAL_P (insn
)
3193 || CGEN_INSN_MACH_HAS_P (insn
, mach_num
));
3196 idesc_table
[sf
->index
].sem_fast
= sf
->fn
;
3198 idesc_table
[sf
->index
].sem_fast
= SEM_FN_NAME (bpfbf_ebpfle
,x_invalid
);
3201 idesc_table
[sf
->index
].sem_full
= sf
->fn
;
3203 idesc_table
[sf
->index
].sem_full
= SEM_FN_NAME (bpfbf_ebpfle
,x_invalid
);