Lines Matching refs:instr

795 	struct ppc_inst instr;  in test_plxvp_pstxvp()  local
829 instr = ppc_inst_prefix(PPC_RAW_PLXVP_P(34, 0, 3, 0), PPC_RAW_PLXVP_S(34, 0, 3, 0)); in test_plxvp_pstxvp()
831 stepped = emulate_step(&regs, instr); in test_plxvp_pstxvp()
857 instr = ppc_inst_prefix(PPC_RAW_PSTXVP_P(34, 0, 3, 0), PPC_RAW_PSTXVP_S(34, 0, 3, 0)); in test_plxvp_pstxvp()
859 stepped = emulate_step(&regs, instr); in test_plxvp_pstxvp()
909 struct ppc_inst instr; member
925 .instr = ppc_inst(PPC_RAW_NOP()),
938 .instr = TEST_SETB(20, 1),
945 .instr = TEST_SETB(20, 4),
952 .instr = TEST_SETB(20, 5),
964 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
972 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
980 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
988 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
996 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
1004 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
1012 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
1020 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
1028 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
1036 .instr = ppc_inst(PPC_RAW_ADD(20, 21, 22)),
1050 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1058 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1067 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1075 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1083 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1091 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1099 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1107 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1115 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1123 .instr = ppc_inst(PPC_RAW_ADD_DOT(20, 21, 22)),
1136 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1144 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1152 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1160 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1168 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1176 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1184 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1192 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1200 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1208 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1216 .instr = ppc_inst(PPC_RAW_ADDC(20, 21, 22)),
1230 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1238 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1247 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1255 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1263 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1271 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1279 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1287 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1295 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1303 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1311 .instr = ppc_inst(PPC_RAW_ADDC_DOT(20, 21, 22)),
1324 .instr = ppc_inst(PPC_RAW_DIVDE(20, 21, 22)),
1332 .instr = ppc_inst(PPC_RAW_DIVDE(20, 21, 22)),
1341 .instr = ppc_inst(PPC_RAW_DIVDE(20, 21, 22)),
1354 .instr = ppc_inst(PPC_RAW_DIVDE_DOT(20, 21, 22)),
1362 .instr = ppc_inst(PPC_RAW_DIVDE_DOT(20, 21, 22)),
1371 .instr = ppc_inst(PPC_RAW_DIVDE_DOT(20, 21, 22)),
1384 .instr = ppc_inst(PPC_RAW_DIVDEU(20, 21, 22)),
1393 .instr = ppc_inst(PPC_RAW_DIVDEU(20, 21, 22)),
1402 .instr = ppc_inst(PPC_RAW_DIVDEU(20, 21, 22)),
1410 .instr = ppc_inst(PPC_RAW_DIVDEU(20, 21, 22)),
1418 .instr = ppc_inst(PPC_RAW_DIVDEU(20, 21, 22)),
1432 .instr = ppc_inst(PPC_RAW_DIVDEU_DOT(20, 21, 22)),
1441 .instr = ppc_inst(PPC_RAW_DIVDEU_DOT(20, 21, 22)),
1450 .instr = ppc_inst(PPC_RAW_DIVDEU_DOT(20, 21, 22)),
1458 .instr = ppc_inst(PPC_RAW_DIVDEU_DOT(20, 21, 22)),
1466 .instr = ppc_inst(PPC_RAW_DIVDEU_DOT(20, 21, 22)),
1481 .instr = TEST_PADDI(21, 22, SI_MIN, 0),
1489 .instr = TEST_PADDI(21, 22, SI_MAX, 0),
1497 .instr = TEST_PADDI(21, 22, SI_MAX, 0),
1505 .instr = TEST_PADDI(21, 22, SI_UMAX, 0),
1513 .instr = TEST_PADDI(21, 22, 0x1, 0),
1521 .instr = TEST_PADDI(21, 22, SI_MIN, 0),
1529 .instr = TEST_PADDI(21, 22, SI_MAX, 0),
1537 .instr = TEST_PADDI(21, 22, SI_MAX, 0),
1545 .instr = TEST_PADDI(21, 22, 0x1, 0),
1553 .instr = TEST_PADDI(21, 22, SI_MAX, 0),
1561 .instr = TEST_PADDI(21, 0, SI_MIN, 0),
1568 .instr = TEST_PADDI(21, 22, SI_MIN, 0),
1576 .instr = TEST_PADDI(21, 0, 0, 1),
1583 .instr = TEST_PADDI(21, 0, SI_MIN, 1),
1591 .instr = TEST_PADDI(21, 22, 0, 1),
1603 struct ppc_inst instr, in emulate_compute_instr() argument
1609 if (!regs || !ppc_inst_val(instr)) in emulate_compute_instr()
1615 analysed = analyse_instr(&op, regs, instr); in emulate_compute_instr()
1619 pr_info("emulation failed, instruction = %s\n", ppc_inst_as_str(instr)); in emulate_compute_instr()
1623 pr_info("negative test failed, instruction = %s\n", ppc_inst_as_str(instr)); in emulate_compute_instr()
1630 struct ppc_inst instr) in execute_compute_instr() argument
1634 if (!regs || !ppc_inst_val(instr)) in execute_compute_instr()
1638 patch_instruction_site(&patch__exec_instr, instr); in execute_compute_instr()
1640 pr_info("execution failed, instruction = %s\n", ppc_inst_as_str(instr)); in execute_compute_instr()
1661 struct ppc_inst instr; in run_tests_compute() local
1673 instr = test->subtests[j].instr; in run_tests_compute()
1691 rc = emulate_compute_instr(&got, instr, negative) != 0; in run_tests_compute()
1696 } else if (rc || execute_compute_instr(&exp, instr)) { in run_tests_compute()