setarmj
LBT intrinsic · group: ARM Misc
Synopsis
Instruction: setarmj rd, cond
CPU Flags: LBT
Description
ARM-style set if condition: evaluate ARM condition code cond against ARMFLAGS. Store 1 in rd if the condition holds, 0 otherwise.
Operation
bool res = arm_cond_holds(ARMFLAGS, cond);
dst = res ? 1 : 0;
Tested on real machine.
Latency and Throughput
| CPU | µarch | Latency | Throughput (IPC) |
|---|---|---|---|
| 3C5000 | LA464 | N/A | 1 |
| 3C6000 | LA664 | N/A | 1 |