Пример #1
0
static void genbc1t_test(void)
{
#if defined(__x86_64__)
   test_m32rel_imm32((uint32_t*)&FCR31, 0x800000);
   setne_m8rel((uint8_t *) &branch_taken);
#else
   test_m32_imm32((uint32_t*)&FCR31, 0x800000);
   je_rj(12);
   mov_m32_imm32((uint32_t*)(&branch_taken), 1); // 10
   jmp_imm_short(10); // 2
   mov_m32_imm32((uint32_t*)(&branch_taken), 0); // 10
#endif
}
Пример #2
0
static void genbc1f_test(usf_state_t * state)
{
   test_m32rel_imm32(state, (unsigned int*)&state->FCR31, 0x800000);
   sete_m8rel(state, (unsigned char *) &state->branch_taken);
}