Lines Matching +full:3 +full:c
99 regs.gpr[3] = (unsigned long) &a; in test_ld()
102 stepped = emulate_step(®s, ppc_inst(PPC_RAW_LD(5, 3, 0))); in test_ld()
122 regs.gpr[3] = (unsigned long)&a; in test_pld()
125 stepped = emulate_step(®s, TEST_PLD(5, 3, 0, 0)); in test_pld()
140 regs.gpr[3] = (unsigned long) &a; in test_lwz()
143 stepped = emulate_step(®s, ppc_inst(PPC_RAW_LWZ(5, 3, 0))); in test_lwz()
163 regs.gpr[3] = (unsigned long)&a; in test_plwz()
167 stepped = emulate_step(®s, TEST_PLWZ(5, 3, 0, 0)); in test_plwz()
178 unsigned int a[3] = {0x0, 0x0, 0x1234}; in test_lwzx()
182 regs.gpr[3] = (unsigned long) a; in test_lwzx()
187 stepped = emulate_step(®s, ppc_inst(PPC_RAW_LWZX(5, 3, 4))); in test_lwzx()
201 regs.gpr[3] = (unsigned long) &a; in test_std()
205 stepped = emulate_step(®s, ppc_inst(PPC_RAW_STD(5, 3, 0))); in test_std()
224 regs.gpr[3] = (unsigned long)&a; in test_pstd()
228 stepped = emulate_step(®s, TEST_PSTD(5, 3, 0, 0)); in test_pstd()
248 regs.gpr[3] = (unsigned long) &a; in test_ldarx_stdcx()
253 stepped = emulate_step(®s, ppc_inst(PPC_RAW_LDARX(5, 3, 4, 0))); in test_ldarx_stdcx()
271 stepped = emulate_step(®s, ppc_inst(PPC_RAW_STDCX(5, 3, 4))); in test_ldarx_stdcx()
295 } c; in test_lfsx_stfsx() local
304 c.a = 123.45; in test_lfsx_stfsx()
305 cached_b = c.b; in test_lfsx_stfsx()
307 regs.gpr[3] = (unsigned long) &c.a; in test_lfsx_stfsx()
311 stepped = emulate_step(®s, ppc_inst(PPC_RAW_LFSX(10, 3, 4))); in test_lfsx_stfsx()
321 c.a = 678.91; in test_lfsx_stfsx()
324 stepped = emulate_step(®s, ppc_inst(PPC_RAW_STFSX(10, 3, 4))); in test_lfsx_stfsx()
326 if (stepped == 1 && c.b == cached_b) in test_lfsx_stfsx()
338 } c; in test_plfs_pstfs() local
352 c.a = 123.45; in test_plfs_pstfs()
353 cached_b = c.b; in test_plfs_pstfs()
355 regs.gpr[3] = (unsigned long)&c.a; in test_plfs_pstfs()
358 stepped = emulate_step(®s, TEST_PLFS(10, 3, 0, 0)); in test_plfs_pstfs()
368 c.a = 678.91; in test_plfs_pstfs()
371 stepped = emulate_step(®s, TEST_PSTFS(10, 3, 0, 0)); in test_plfs_pstfs()
373 if (stepped == 1 && c.b == cached_b) in test_plfs_pstfs()
385 } c; in test_lfdx_stfdx() local
394 c.a = 123456.78; in test_lfdx_stfdx()
395 cached_b = c.b; in test_lfdx_stfdx()
397 regs.gpr[3] = (unsigned long) &c.a; in test_lfdx_stfdx()
401 stepped = emulate_step(®s, ppc_inst(PPC_RAW_LFDX(10, 3, 4))); in test_lfdx_stfdx()
411 c.a = 987654.32; in test_lfdx_stfdx()
414 stepped = emulate_step(®s, ppc_inst(PPC_RAW_STFDX(10, 3, 4))); in test_lfdx_stfdx()
416 if (stepped == 1 && c.b == cached_b) in test_lfdx_stfdx()
428 } c; in test_plfd_pstfd() local
442 c.a = 123456.78; in test_plfd_pstfd()
443 cached_b = c.b; in test_plfd_pstfd()
445 regs.gpr[3] = (unsigned long)&c.a; in test_plfd_pstfd()
448 stepped = emulate_step(®s, TEST_PLFD(10, 3, 0, 0)); in test_plfd_pstfd()
458 c.a = 987654.32; in test_plfd_pstfd()
461 stepped = emulate_step(®s, TEST_PSTFD(10, 3, 0, 0)); in test_plfd_pstfd()
463 if (stepped == 1 && c.b == cached_b) in test_plfd_pstfd()
501 } c; in test_lvx_stvx() local
510 cached_b[0] = c.b[0] = 923745; in test_lvx_stvx()
511 cached_b[1] = c.b[1] = 2139478; in test_lvx_stvx()
512 cached_b[2] = c.b[2] = 9012; in test_lvx_stvx()
513 cached_b[3] = c.b[3] = 982134; in test_lvx_stvx()
515 regs.gpr[3] = (unsigned long) &c.a; in test_lvx_stvx()
519 stepped = emulate_step(®s, ppc_inst(PPC_RAW_LVX(10, 3, 4))); in test_lvx_stvx()
529 c.b[0] = 4987513; in test_lvx_stvx()
530 c.b[1] = 84313948; in test_lvx_stvx()
531 c.b[2] = 71; in test_lvx_stvx()
532 c.b[3] = 498532; in test_lvx_stvx()
535 stepped = emulate_step(®s, ppc_inst(PPC_RAW_STVX(10, 3, 4))); in test_lvx_stvx()
537 if (stepped == 1 && cached_b[0] == c.b[0] && cached_b[1] == c.b[1] && in test_lvx_stvx()
538 cached_b[2] == c.b[2] && cached_b[3] == c.b[3]) in test_lvx_stvx()
558 } c; in test_lxvd2x_stxvd2x() local
567 cached_b[0] = c.b[0] = 18233; in test_lxvd2x_stxvd2x()
568 cached_b[1] = c.b[1] = 34863571; in test_lxvd2x_stxvd2x()
569 cached_b[2] = c.b[2] = 834; in test_lxvd2x_stxvd2x()
570 cached_b[3] = c.b[3] = 6138911; in test_lxvd2x_stxvd2x()
572 regs.gpr[3] = (unsigned long) &c.a; in test_lxvd2x_stxvd2x()
590 c.b[0] = 21379463; in test_lxvd2x_stxvd2x()
591 c.b[1] = 87; in test_lxvd2x_stxvd2x()
592 c.b[2] = 374234; in test_lxvd2x_stxvd2x()
593 c.b[3] = 4; in test_lxvd2x_stxvd2x()
598 if (stepped == 1 && cached_b[0] == c.b[0] && cached_b[1] == c.b[1] && in test_lxvd2x_stxvd2x()
599 cached_b[2] == c.b[2] && cached_b[3] == c.b[3] && in test_lxvd2x_stxvd2x()
624 } c[2]; in test_lxvp_stxvp() local
638 cached_b[0] = c[0].b[0] = 18233; in test_lxvp_stxvp()
639 cached_b[1] = c[0].b[1] = 34863571; in test_lxvp_stxvp()
640 cached_b[2] = c[0].b[2] = 834; in test_lxvp_stxvp()
641 cached_b[3] = c[0].b[3] = 6138911; in test_lxvp_stxvp()
642 cached_b[4] = c[1].b[0] = 1234; in test_lxvp_stxvp()
643 cached_b[5] = c[1].b[1] = 5678; in test_lxvp_stxvp()
644 cached_b[6] = c[1].b[2] = 91011; in test_lxvp_stxvp()
645 cached_b[7] = c[1].b[3] = 121314; in test_lxvp_stxvp()
647 regs.gpr[4] = (unsigned long)&c[0].a; in test_lxvp_stxvp()
667 c[0].b[0] = 21379463; in test_lxvp_stxvp()
668 c[0].b[1] = 87; in test_lxvp_stxvp()
669 c[0].b[2] = 374234; in test_lxvp_stxvp()
670 c[0].b[3] = 4; in test_lxvp_stxvp()
671 c[1].b[0] = 90; in test_lxvp_stxvp()
672 c[1].b[1] = 122; in test_lxvp_stxvp()
673 c[1].b[2] = 555; in test_lxvp_stxvp()
674 c[1].b[3] = 32144; in test_lxvp_stxvp()
683 if (stepped == 1 && cached_b[0] == c[0].b[0] && cached_b[1] == c[0].b[1] && in test_lxvp_stxvp()
684 cached_b[2] == c[0].b[2] && cached_b[3] == c[0].b[3] && in test_lxvp_stxvp()
685 cached_b[4] == c[1].b[0] && cached_b[5] == c[1].b[1] && in test_lxvp_stxvp()
686 cached_b[6] == c[1].b[2] && cached_b[7] == c[1].b[3] && in test_lxvp_stxvp()
711 } c[2]; in test_lxvpx_stxvpx() local
725 cached_b[0] = c[0].b[0] = 18233; in test_lxvpx_stxvpx()
726 cached_b[1] = c[0].b[1] = 34863571; in test_lxvpx_stxvpx()
727 cached_b[2] = c[0].b[2] = 834; in test_lxvpx_stxvpx()
728 cached_b[3] = c[0].b[3] = 6138911; in test_lxvpx_stxvpx()
729 cached_b[4] = c[1].b[0] = 1234; in test_lxvpx_stxvpx()
730 cached_b[5] = c[1].b[1] = 5678; in test_lxvpx_stxvpx()
731 cached_b[6] = c[1].b[2] = 91011; in test_lxvpx_stxvpx()
732 cached_b[7] = c[1].b[3] = 121314; in test_lxvpx_stxvpx()
734 regs.gpr[3] = (unsigned long)&c[0].a; in test_lxvpx_stxvpx()
740 * let TX=1 Tp=1 RA=3 RB=4 in test_lxvpx_stxvpx()
742 stepped = emulate_step(®s, ppc_inst(PPC_RAW_LXVPX(34, 3, 4))); in test_lxvpx_stxvpx()
755 c[0].b[0] = 21379463; in test_lxvpx_stxvpx()
756 c[0].b[1] = 87; in test_lxvpx_stxvpx()
757 c[0].b[2] = 374234; in test_lxvpx_stxvpx()
758 c[0].b[3] = 4; in test_lxvpx_stxvpx()
759 c[1].b[0] = 90; in test_lxvpx_stxvpx()
760 c[1].b[1] = 122; in test_lxvpx_stxvpx()
761 c[1].b[2] = 555; in test_lxvpx_stxvpx()
762 c[1].b[3] = 32144; in test_lxvpx_stxvpx()
767 * let SX=1 Sp=1 RA=3 RB=4 in test_lxvpx_stxvpx()
769 stepped = emulate_step(®s, ppc_inst(PPC_RAW_STXVPX(34, 3, 4))); in test_lxvpx_stxvpx()
771 if (stepped == 1 && cached_b[0] == c[0].b[0] && cached_b[1] == c[0].b[1] && in test_lxvpx_stxvpx()
772 cached_b[2] == c[0].b[2] && cached_b[3] == c[0].b[3] && in test_lxvpx_stxvpx()
773 cached_b[4] == c[1].b[0] && cached_b[5] == c[1].b[1] && in test_lxvpx_stxvpx()
774 cached_b[6] == c[1].b[2] && cached_b[7] == c[1].b[3] && in test_lxvpx_stxvpx()
800 } c[2]; in test_plxvp_pstxvp() local
812 cached_b[0] = c[0].b[0] = 18233; in test_plxvp_pstxvp()
813 cached_b[1] = c[0].b[1] = 34863571; in test_plxvp_pstxvp()
814 cached_b[2] = c[0].b[2] = 834; in test_plxvp_pstxvp()
815 cached_b[3] = c[0].b[3] = 6138911; in test_plxvp_pstxvp()
816 cached_b[4] = c[1].b[0] = 1234; in test_plxvp_pstxvp()
817 cached_b[5] = c[1].b[1] = 5678; in test_plxvp_pstxvp()
818 cached_b[6] = c[1].b[2] = 91011; in test_plxvp_pstxvp()
819 cached_b[7] = c[1].b[3] = 121314; in test_plxvp_pstxvp()
822 regs.gpr[3] = (unsigned long)&c[0].a; in test_plxvp_pstxvp()
827 * let RA=3 R=0 D=d0||d1=0 R=0 Tp=1 TX=1 in test_plxvp_pstxvp()
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()
843 c[0].b[0] = 21379463; in test_plxvp_pstxvp()
844 c[0].b[1] = 87; in test_plxvp_pstxvp()
845 c[0].b[2] = 374234; in test_plxvp_pstxvp()
846 c[0].b[3] = 4; in test_plxvp_pstxvp()
847 c[1].b[0] = 90; in test_plxvp_pstxvp()
848 c[1].b[1] = 122; in test_plxvp_pstxvp()
849 c[1].b[2] = 555; in test_plxvp_pstxvp()
850 c[1].b[3] = 32144; in test_plxvp_pstxvp()
855 * let RA=3 D=d0||d1=0 R=0 Sp=1 SX=1 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()
861 if (stepped == 1 && cached_b[0] == c[0].b[0] && cached_b[1] == c[0].b[1] && in test_plxvp_pstxvp()
862 cached_b[2] == c[0].b[2] && cached_b[3] == c[0].b[3] && in test_plxvp_pstxvp()
863 cached_b[4] == c[1].b[0] && cached_b[5] == c[1].b[1] && in test_plxvp_pstxvp()
864 cached_b[6] == c[1].b[2] && cached_b[7] == c[1].b[3] && in test_plxvp_pstxvp()