Lines Matching refs:reg_map
52 static SLJIT_CONST sljit_ub reg_map[SLJIT_NUMBER_OF_REGISTERS + 6] = { variable
1163 FAIL_IF(ADDLI_SOLO(reg_map[dst_ar], ZERO, imm >> 48)); in emit_const_64()
1164 FAIL_IF(SHL16INSLI_SOLO(reg_map[dst_ar], reg_map[dst_ar], imm >> 32)); in emit_const_64()
1165 FAIL_IF(SHL16INSLI_SOLO(reg_map[dst_ar], reg_map[dst_ar], imm >> 16)); in emit_const_64()
1166 return SHL16INSLI_SOLO(reg_map[dst_ar], reg_map[dst_ar], imm); in emit_const_64()
1169 FAIL_IF(ADDLI(reg_map[dst_ar], ZERO, imm >> 48)); in emit_const_64()
1170 FAIL_IF(SHL16INSLI(reg_map[dst_ar], reg_map[dst_ar], imm >> 32)); in emit_const_64()
1171 FAIL_IF(SHL16INSLI(reg_map[dst_ar], reg_map[dst_ar], imm >> 16)); in emit_const_64()
1172 return SHL16INSLI(reg_map[dst_ar], reg_map[dst_ar], imm); in emit_const_64()
1209 FAIL_IF(ST_ADD(ADDR_TMP_mapped, reg_map[i], -8)); in sljit_emit_enter()
1214 FAIL_IF(ST_ADD(ADDR_TMP_mapped, reg_map[i], -8)); in sljit_emit_enter()
1219 FAIL_IF(ADD(reg_map[SLJIT_S0 - i], i, ZERO)); in sljit_emit_enter()
1269 FAIL_IF(LD_ADD(reg_map[i], ADDR_TMP_mapped, -8)); in sljit_emit_return()
1274 FAIL_IF(LD_ADD(reg_map[i], ADDR_TMP_mapped, -8)); in sljit_emit_return()
1298 FAIL_IF(ADDLI(ADDR_TMP_mapped, reg_map[arg & REG_MASK], argw)); in getput_arg_fast()
1360 if ((flags & WRITE_BACK) && reg_ar == reg_map[base]) { in getput_arg()
1361 SLJIT_ASSERT(!(flags & LOAD_DATA) && reg_map[TMP_REG1] != reg_ar); in getput_arg()
1380 FAIL_IF(ADD(TMP_REG3_mapped, reg_map[base], TMP_REG3_mapped)); in getput_arg()
1387 FAIL_IF(ADD(tmp_ar, reg_map[base], TMP_REG3_mapped)); in getput_arg()
1395 FAIL_IF(ADD(reg_map[base], reg_map[base], TMP_REG3_mapped)); in getput_arg()
1397 return PB2(data_transfer_insts[flags & MEM_MASK], reg_ar, reg_map[base]); in getput_arg()
1399 return PB2(data_transfer_insts[flags & MEM_MASK], reg_map[base], reg_ar); in getput_arg()
1407 FAIL_IF(SHLI(TMP_REG3_mapped, reg_map[OFFS_REG(arg)], argw)); in getput_arg()
1414 FAIL_IF(ADD(TMP_REG3_mapped, reg_map[base], reg_map[!argw ? OFFS_REG(arg) : TMP_REG3])); in getput_arg()
1417 FAIL_IF(ADD(tmp_ar, reg_map[base], reg_map[!argw ? OFFS_REG(arg) : TMP_REG3])); in getput_arg()
1425 FAIL_IF(ADD(reg_map[base], reg_map[base], reg_map[!argw ? OFFS_REG(arg) : TMP_REG3])); in getput_arg()
1428 return PB2(data_transfer_insts[flags & MEM_MASK], reg_ar, reg_map[base]); in getput_arg()
1430 return PB2(data_transfer_insts[flags & MEM_MASK], reg_map[base], reg_ar); in getput_arg()
1435 if (reg_ar == reg_map[base]) { in getput_arg()
1438 FAIL_IF(ADDLI(ADDR_TMP_mapped, reg_map[base], argw)); in getput_arg()
1445 return ADDLI(reg_map[base], reg_map[base], argw); in getput_arg()
1456 FAIL_IF(ADDLI(reg_map[base], reg_map[base], argw)); in getput_arg()
1466 FAIL_IF(ADD(reg_map[base], reg_map[base], TMP_REG3_mapped)); in getput_arg()
1471 FAIL_IF(ADD(reg_map[base], reg_map[base], TMP_REG3_mapped)); in getput_arg()
1476 return PB2(data_transfer_insts[flags & MEM_MASK], reg_ar, reg_map[base]); in getput_arg()
1478 return PB2(data_transfer_insts[flags & MEM_MASK], reg_map[base], reg_ar); in getput_arg()
1518 FAIL_IF(ADD(TMP_REG3_mapped, TMP_REG3_mapped, reg_map[base])); in getput_arg()
1525 FAIL_IF(ADD(tmp_ar, TMP_REG3_mapped, reg_map[base])); in getput_arg()
1561 return ADD(reg_map[dst], RA, ZERO); in sljit_emit_fast_enter()
1574 FAIL_IF(ADD(RA, reg_map[src], ZERO)); in sljit_emit_fast_return()
1594 return ADD(reg_map[dst], reg_map[src2], ZERO); in emit_single_op()
1602 return BFEXTS(reg_map[dst], reg_map[src2], 0, 31); in emit_single_op()
1604 return BFEXTU(reg_map[dst], reg_map[src2], 0, 31); in emit_single_op()
1607 return ADD(reg_map[dst], reg_map[src2], ZERO); in emit_single_op()
1617 return BFEXTS(reg_map[dst], reg_map[src2], 0, 7); in emit_single_op()
1619 return BFEXTU(reg_map[dst], reg_map[src2], 0, 7); in emit_single_op()
1622 return ADD(reg_map[dst], reg_map[src2], ZERO); in emit_single_op()
1632 return BFEXTS(reg_map[dst], reg_map[src2], 0, 15); in emit_single_op()
1634 return BFEXTU(reg_map[dst], reg_map[src2], 0, 15); in emit_single_op()
1637 return ADD(reg_map[dst], reg_map[src2], ZERO); in emit_single_op()
1645 FAIL_IF(NOR(EQUAL_FLAG, reg_map[src2], reg_map[src2])); in emit_single_op()
1647 FAIL_IF(NOR(reg_map[dst], reg_map[src2], reg_map[src2])); in emit_single_op()
1654 FAIL_IF(CLZ(EQUAL_FLAG, reg_map[src2])); in emit_single_op()
1656 FAIL_IF(CLZ(reg_map[dst], reg_map[src2])); in emit_single_op()
1663 FAIL_IF(SHRUI(TMP_EREG1, reg_map[src1], 63)); in emit_single_op()
1669 FAIL_IF(ADDLI(EQUAL_FLAG, reg_map[src1], src2)); in emit_single_op()
1673 FAIL_IF(ORI(ULESS_FLAG ,reg_map[src1], src2)); in emit_single_op()
1676 FAIL_IF(OR(ULESS_FLAG,reg_map[src1],ULESS_FLAG)); in emit_single_op()
1682 FAIL_IF(ADDLI(reg_map[dst], reg_map[src1], src2)); in emit_single_op()
1685 FAIL_IF(SHRUI(OVERFLOW_FLAG, reg_map[dst], 63)); in emit_single_op()
1692 FAIL_IF(XOR(TMP_EREG1, reg_map[src1], reg_map[src2])); in emit_single_op()
1696 overflow_ra = reg_map[src1]; in emit_single_op()
1698 overflow_ra = reg_map[src2]; in emit_single_op()
1701 FAIL_IF(ADD(TMP_EREG2, reg_map[src1], ZERO)); in emit_single_op()
1707 FAIL_IF(ADD(EQUAL_FLAG ,reg_map[src1], reg_map[src2])); in emit_single_op()
1710 FAIL_IF(OR(ULESS_FLAG,reg_map[src1], reg_map[src2])); in emit_single_op()
1714 FAIL_IF(ADD(reg_map[dst],reg_map[src1], reg_map[src2])); in emit_single_op()
1717 FAIL_IF(XOR(OVERFLOW_FLAG,reg_map[dst], overflow_ra)); in emit_single_op()
1724 FAIL_IF(CMPLTU(ULESS_FLAG ,reg_map[dst] ,ULESS_FLAG)); in emit_single_op()
1735 FAIL_IF(ORI(TMP_EREG1, reg_map[src1], src2)); in emit_single_op()
1738 FAIL_IF(OR(TMP_EREG1, reg_map[src1], TMP_EREG1)); in emit_single_op()
1742 FAIL_IF(ADDLI(reg_map[dst], reg_map[src1], src2)); in emit_single_op()
1746 FAIL_IF(OR(TMP_EREG1, reg_map[src1], reg_map[src2])); in emit_single_op()
1749 FAIL_IF(ADD(reg_map[dst], reg_map[src1], reg_map[src2])); in emit_single_op()
1753 FAIL_IF(CMPLTU(TMP_EREG1, reg_map[dst], TMP_EREG1)); in emit_single_op()
1755 FAIL_IF(ADD(reg_map[dst], reg_map[dst], ULESS_FLAG)); in emit_single_op()
1761 FAIL_IF(CMPLTUI(TMP_EREG2, reg_map[dst], 1)); in emit_single_op()
1775 FAIL_IF(SHRUI(TMP_EREG1,reg_map[src1], 63)); in emit_single_op()
1781 overflow_ra = reg_map[src1]; in emit_single_op()
1784 FAIL_IF(ADD(TMP_EREG2, reg_map[src1], ZERO)); in emit_single_op()
1790 FAIL_IF(ADDLI(EQUAL_FLAG, reg_map[src1], -src2)); in emit_single_op()
1794 FAIL_IF(CMPLTU(ULESS_FLAG, reg_map[src1], ADDR_TMP_mapped)); in emit_single_op()
1799 FAIL_IF(ADDLI(reg_map[dst], reg_map[src1], -src2)); in emit_single_op()
1804 FAIL_IF(XOR(TMP_EREG1, reg_map[src1], reg_map[src2])); in emit_single_op()
1808 overflow_ra = reg_map[src1]; in emit_single_op()
1811 FAIL_IF(ADD(TMP_EREG2, reg_map[src1], ZERO)); in emit_single_op()
1817 FAIL_IF(SUB(EQUAL_FLAG, reg_map[src1], reg_map[src2])); in emit_single_op()
1820 FAIL_IF(CMPLTU(ULESS_FLAG, reg_map[src1], reg_map[src2])); in emit_single_op()
1823 FAIL_IF(CMPLTU(UGREATER_FLAG, reg_map[src2], reg_map[src1])); in emit_single_op()
1826 FAIL_IF(CMPLTS(LESS_FLAG ,reg_map[src1] ,reg_map[src2])); in emit_single_op()
1827 FAIL_IF(CMPLTS(GREATER_FLAG ,reg_map[src2] ,reg_map[src1])); in emit_single_op()
1832 FAIL_IF(SUB(reg_map[dst], reg_map[src1], reg_map[src2])); in emit_single_op()
1836 FAIL_IF(XOR(OVERFLOW_FLAG, reg_map[dst], overflow_ra)); in emit_single_op()
1853 FAIL_IF(CMPLTU(TMP_EREG1, reg_map[src1], ADDR_TMP_mapped)); in emit_single_op()
1857 FAIL_IF(ADDLI(reg_map[dst], reg_map[src1], -src2)); in emit_single_op()
1861 FAIL_IF(CMPLTU(TMP_EREG1, reg_map[src1], reg_map[src2])); in emit_single_op()
1863 FAIL_IF(SUB(reg_map[dst], reg_map[src1], reg_map[src2])); in emit_single_op()
1867 FAIL_IF(CMOVEQZ(TMP_EREG1, reg_map[dst], ULESS_FLAG)); in emit_single_op()
1869 FAIL_IF(SUB(reg_map[dst], reg_map[dst], ULESS_FLAG)); in emit_single_op()
1883 FAIL_IF(MUL(reg_map[dst], reg_map[src1], reg_map[src2])); in emit_single_op()
1892 compiler, op_norm, EQUAL_FLAG, reg_map[src1], \ in emit_single_op()
1896 compiler, op_norm, reg_map[dst], reg_map[src1], \ in emit_single_op()
1901 compiler, op_norm, EQUAL_FLAG, reg_map[src1], \ in emit_single_op()
1902 reg_map[src2], __LINE__)); \ in emit_single_op()
1905 compiler, op_norm, reg_map[dst], reg_map[src1], \ in emit_single_op()
1906 reg_map[src2], __LINE__)); \ in emit_single_op()
1925 compiler, op_imm, EQUAL_FLAG, reg_map[src1], \ in emit_single_op()
1929 compiler, op_imm, reg_map[dst], reg_map[src1], \ in emit_single_op()
1934 compiler, op_norm, EQUAL_FLAG, reg_map[src1], \ in emit_single_op()
1935 reg_map[src2], __LINE__)); \ in emit_single_op()
1938 compiler, op_norm, reg_map[dst], reg_map[src1], \ in emit_single_op()
1939 reg_map[src2], __LINE__)); \ in emit_single_op()
2041 FAIL_IF(load_immediate(compiler, reg_map[sugg_src2_r], src2w)); in emit_op()
2050 if (getput_arg_fast(compiler, flags | LOAD_DATA, reg_map[sugg_src2_r], src2, src2w)) in emit_op()
2069 FAIL_IF(getput_arg(compiler, flags | LOAD_DATA, reg_map[sugg_src2_r], src2, src2w, dst, dstw)); in emit_op()
2075 getput_arg_fast(compiler, flags, reg_map[dst_r], dst, dstw); in emit_op()
2079 return getput_arg(compiler, flags, reg_map[dst_r], dst, dstw, 0, 0); in emit_op()
2101 sugg_dst_ar = reg_map[(op < SLJIT_ADD && FAST_IS_REG(dst)) ? dst : TMP_REG2]; in sljit_emit_op_flags()
2327 if (reg_map[src] != 0) in sljit_emit_ijump()
2330 FAIL_IF(ADD_SOLO(TMP_REG2_mapped, reg_map[src], ZERO)); in sljit_emit_ijump()
2334 SLJIT_ASSERT(reg_map[PIC_ADDR_REG] == 16 && PIC_ADDR_REG == TMP_REG2); in sljit_emit_ijump()
2337 FAIL_IF(emit_const(compiler, reg_map[PIC_ADDR_REG], srcw, 1)); in sljit_emit_ijump()
2343 FAIL_IF(ADD_SOLO(0, reg_map[SLJIT_R0], ZERO)); in sljit_emit_ijump()
2347 FAIL_IF(JALR_SOLO(reg_map[PIC_ADDR_REG])); in sljit_emit_ijump()
2354 FAIL_IF(ADD_SOLO(0, reg_map[SLJIT_R0], ZERO)); in sljit_emit_ijump()
2356 FAIL_IF(ADD_SOLO(reg_map[PIC_ADDR_REG], reg_map[src_r], ZERO)); in sljit_emit_ijump()
2360 FAIL_IF(JALR_SOLO(reg_map[src_r])); in sljit_emit_ijump()
2375 FAIL_IF(JR_SOLO(reg_map[src_r])); in sljit_emit_ijump()
2378 FAIL_IF(JR_SOLO(reg_map[src_r])); in sljit_emit_ijump()
2388 FAIL_IF(JR_SOLO(reg_map[src_r])); in sljit_emit_ijump()
2477 SLJIT_ASSERT(reg_map[PIC_ADDR_REG] == 16 && PIC_ADDR_REG == TMP_REG2); in sljit_emit_jump()
2480 PTR_FAIL_IF(ADD_SOLO(0, reg_map[SLJIT_R0], ZERO)); in sljit_emit_jump()
2551 return reg_map[reg]; in sljit_get_register_index()