Lines Matching refs:instr
792 ppc_inst_t instr; in test_plxvp_pstxvp() local
826 instr = ppc_inst_prefix(PPC_RAW_PLXVP_P(34, 0, 3, 0), PPC_RAW_PLXVP_S(34, 0, 3, 0)); in test_plxvp_pstxvp()
828 stepped = emulate_step(®s, instr); in test_plxvp_pstxvp()
854 instr = ppc_inst_prefix(PPC_RAW_PSTXVP_P(34, 0, 3, 0), PPC_RAW_PSTXVP_S(34, 0, 3, 0)); in test_plxvp_pstxvp()
856 stepped = emulate_step(®s, instr); in test_plxvp_pstxvp()
906 ppc_inst_t instr; member
922 .instr = ppc_inst(PPC_RAW_NOP()),
935 .instr = ppc_inst(PPC_RAW_SETB(20, 1)),
942 .instr = ppc_inst(PPC_RAW_SETB(20, 4)),
949 .instr = ppc_inst(PPC_RAW_SETB(20, 5)),
961 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
969 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
977 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
985 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
993 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
1001 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
1009 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
1017 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
1025 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
1033 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
1047 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1055 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1064 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1072 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1080 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1088 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1096 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1104 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1112 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1120 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1133 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1141 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1149 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1157 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1165 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1173 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1181 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1189 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1197 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1205 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1213 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1227 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1235 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1244 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1252 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1260 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1268 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1276 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1284 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1292 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1300 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1308 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1321 .instr = ppc_inst(PPC_RAW_DIVDE(20, 21, 22)),
1329 .instr = ppc_inst(PPC_RAW_DIVDE(20, 21, 22)),
1338 .instr = ppc_inst(PPC_RAW_DIVDE(20, 21, 22)),
1351 .instr = ppc_inst(PPC_RAW_DIVDE_DOT(20, 21, 22)),
1359 .instr = ppc_inst(PPC_RAW_DIVDE_DOT(20, 21, 22)),
1368 .instr = ppc_inst(PPC_RAW_DIVDE_DOT(20, 21, 22)),
1381 .instr = ppc_inst(PPC_RAW_DIVDEU(20, 21, 22)),
1390 .instr = ppc_inst(PPC_RAW_DIVDEU(20, 21, 22)),
1399 .instr = ppc_inst(PPC_RAW_DIVDEU(20, 21, 22)),
1407 .instr = ppc_inst(PPC_RAW_DIVDEU(20, 21, 22)),
1415 .instr = ppc_inst(PPC_RAW_DIVDEU(20, 21, 22)),
1429 .instr = ppc_inst(PPC_RAW_DIVDEU_DOT(20, 21, 22)),
1438 .instr = ppc_inst(PPC_RAW_DIVDEU_DOT(20, 21, 22)),
1447 .instr = ppc_inst(PPC_RAW_DIVDEU_DOT(20, 21, 22)),
1455 .instr = ppc_inst(PPC_RAW_DIVDEU_DOT(20, 21, 22)),
1463 .instr = ppc_inst(PPC_RAW_DIVDEU_DOT(20, 21, 22)),
1478 .instr = TEST_PADDI(21, 22, SI_MIN, 0),
1486 .instr = TEST_PADDI(21, 22, SI_MAX, 0),
1494 .instr = TEST_PADDI(21, 22, SI_MAX, 0),
1502 .instr = TEST_PADDI(21, 22, SI_UMAX, 0),
1510 .instr = TEST_PADDI(21, 22, 0x1, 0),
1518 .instr = TEST_PADDI(21, 22, SI_MIN, 0),
1526 .instr = TEST_PADDI(21, 22, SI_MAX, 0),
1534 .instr = TEST_PADDI(21, 22, SI_MAX, 0),
1542 .instr = TEST_PADDI(21, 22, 0x1, 0),
1550 .instr = TEST_PADDI(21, 22, SI_MAX, 0),
1558 .instr = TEST_PADDI(21, 0, SI_MIN, 0),
1565 .instr = TEST_PADDI(21, 22, SI_MIN, 0),
1573 .instr = TEST_PADDI(21, 0, 0, 1),
1580 .instr = TEST_PADDI(21, 0, SI_MIN, 1),
1588 .instr = TEST_PADDI(21, 22, 0, 1),
1600 ppc_inst_t instr, in emulate_compute_instr() argument
1606 if (!regs || !ppc_inst_val(instr)) in emulate_compute_instr()
1612 analysed = analyse_instr(&op, regs, instr); in emulate_compute_instr()
1616 pr_info("emulation failed, instruction = %08lx\n", ppc_inst_as_ulong(instr)); in emulate_compute_instr()
1620 pr_info("negative test failed, instruction = %08lx\n", ppc_inst_as_ulong(instr)); in emulate_compute_instr()
1627 ppc_inst_t instr) in execute_compute_instr() argument
1631 if (!regs || !ppc_inst_val(instr)) in execute_compute_instr()
1635 patch_instruction_site(&patch__exec_instr, instr); in execute_compute_instr()
1637 pr_info("execution failed, instruction = %08lx\n", ppc_inst_as_ulong(instr)); in execute_compute_instr()
1658 ppc_inst_t instr; in run_tests_compute() local
1670 instr = test->subtests[j].instr; in run_tests_compute()
1688 rc = emulate_compute_instr(&got, instr, negative) != 0; in run_tests_compute()
1693 } else if (rc || execute_compute_instr(&exp, instr)) { in run_tests_compute()