Lines Matching +full:3 +full:c
96 regs.gpr[3] = (unsigned long) &a; in test_ld()
99 stepped = emulate_step(®s, ppc_inst(PPC_RAW_LD(5, 3, 0))); in test_ld()
119 regs.gpr[3] = (unsigned long)&a; in test_pld()
122 stepped = emulate_step(®s, TEST_PLD(5, 3, 0, 0)); in test_pld()
137 regs.gpr[3] = (unsigned long) &a; in test_lwz()
140 stepped = emulate_step(®s, ppc_inst(PPC_RAW_LWZ(5, 3, 0))); in test_lwz()
160 regs.gpr[3] = (unsigned long)&a; in test_plwz()
164 stepped = emulate_step(®s, TEST_PLWZ(5, 3, 0, 0)); in test_plwz()
175 unsigned int a[3] = {0x0, 0x0, 0x1234}; in test_lwzx()
179 regs.gpr[3] = (unsigned long) a; in test_lwzx()
184 stepped = emulate_step(®s, ppc_inst(PPC_RAW_LWZX(5, 3, 4))); in test_lwzx()
198 regs.gpr[3] = (unsigned long) &a; in test_std()
202 stepped = emulate_step(®s, ppc_inst(PPC_RAW_STD(5, 3, 0))); in test_std()
221 regs.gpr[3] = (unsigned long)&a; in test_pstd()
225 stepped = emulate_step(®s, TEST_PSTD(5, 3, 0, 0)); in test_pstd()
245 regs.gpr[3] = (unsigned long) &a; in test_ldarx_stdcx()
250 stepped = emulate_step(®s, ppc_inst(PPC_RAW_LDARX(5, 3, 4, 0))); in test_ldarx_stdcx()
268 stepped = emulate_step(®s, ppc_inst(PPC_RAW_STDCX(5, 3, 4))); in test_ldarx_stdcx()
292 } c; in test_lfsx_stfsx() local
301 c.a = 123.45; in test_lfsx_stfsx()
302 cached_b = c.b; in test_lfsx_stfsx()
304 regs.gpr[3] = (unsigned long) &c.a; in test_lfsx_stfsx()
308 stepped = emulate_step(®s, ppc_inst(PPC_RAW_LFSX(10, 3, 4))); in test_lfsx_stfsx()
318 c.a = 678.91; in test_lfsx_stfsx()
321 stepped = emulate_step(®s, ppc_inst(PPC_RAW_STFSX(10, 3, 4))); in test_lfsx_stfsx()
323 if (stepped == 1 && c.b == cached_b) in test_lfsx_stfsx()
335 } c; in test_plfs_pstfs() local
349 c.a = 123.45; in test_plfs_pstfs()
350 cached_b = c.b; in test_plfs_pstfs()
352 regs.gpr[3] = (unsigned long)&c.a; in test_plfs_pstfs()
355 stepped = emulate_step(®s, TEST_PLFS(10, 3, 0, 0)); in test_plfs_pstfs()
365 c.a = 678.91; in test_plfs_pstfs()
368 stepped = emulate_step(®s, TEST_PSTFS(10, 3, 0, 0)); in test_plfs_pstfs()
370 if (stepped == 1 && c.b == cached_b) in test_plfs_pstfs()
382 } c; in test_lfdx_stfdx() local
391 c.a = 123456.78; in test_lfdx_stfdx()
392 cached_b = c.b; in test_lfdx_stfdx()
394 regs.gpr[3] = (unsigned long) &c.a; in test_lfdx_stfdx()
398 stepped = emulate_step(®s, ppc_inst(PPC_RAW_LFDX(10, 3, 4))); in test_lfdx_stfdx()
408 c.a = 987654.32; in test_lfdx_stfdx()
411 stepped = emulate_step(®s, ppc_inst(PPC_RAW_STFDX(10, 3, 4))); in test_lfdx_stfdx()
413 if (stepped == 1 && c.b == cached_b) in test_lfdx_stfdx()
425 } c; in test_plfd_pstfd() local
439 c.a = 123456.78; in test_plfd_pstfd()
440 cached_b = c.b; in test_plfd_pstfd()
442 regs.gpr[3] = (unsigned long)&c.a; in test_plfd_pstfd()
445 stepped = emulate_step(®s, TEST_PLFD(10, 3, 0, 0)); in test_plfd_pstfd()
455 c.a = 987654.32; in test_plfd_pstfd()
458 stepped = emulate_step(®s, TEST_PSTFD(10, 3, 0, 0)); in test_plfd_pstfd()
460 if (stepped == 1 && c.b == cached_b) in test_plfd_pstfd()
498 } c; in test_lvx_stvx() local
507 cached_b[0] = c.b[0] = 923745; in test_lvx_stvx()
508 cached_b[1] = c.b[1] = 2139478; in test_lvx_stvx()
509 cached_b[2] = c.b[2] = 9012; in test_lvx_stvx()
510 cached_b[3] = c.b[3] = 982134; in test_lvx_stvx()
512 regs.gpr[3] = (unsigned long) &c.a; in test_lvx_stvx()
516 stepped = emulate_step(®s, ppc_inst(PPC_RAW_LVX(10, 3, 4))); in test_lvx_stvx()
526 c.b[0] = 4987513; in test_lvx_stvx()
527 c.b[1] = 84313948; in test_lvx_stvx()
528 c.b[2] = 71; in test_lvx_stvx()
529 c.b[3] = 498532; in test_lvx_stvx()
532 stepped = emulate_step(®s, ppc_inst(PPC_RAW_STVX(10, 3, 4))); in test_lvx_stvx()
534 if (stepped == 1 && cached_b[0] == c.b[0] && cached_b[1] == c.b[1] && in test_lvx_stvx()
535 cached_b[2] == c.b[2] && cached_b[3] == c.b[3]) in test_lvx_stvx()
555 } c; in test_lxvd2x_stxvd2x() local
564 cached_b[0] = c.b[0] = 18233; in test_lxvd2x_stxvd2x()
565 cached_b[1] = c.b[1] = 34863571; in test_lxvd2x_stxvd2x()
566 cached_b[2] = c.b[2] = 834; in test_lxvd2x_stxvd2x()
567 cached_b[3] = c.b[3] = 6138911; in test_lxvd2x_stxvd2x()
569 regs.gpr[3] = (unsigned long) &c.a; in test_lxvd2x_stxvd2x()
587 c.b[0] = 21379463; in test_lxvd2x_stxvd2x()
588 c.b[1] = 87; in test_lxvd2x_stxvd2x()
589 c.b[2] = 374234; in test_lxvd2x_stxvd2x()
590 c.b[3] = 4; in test_lxvd2x_stxvd2x()
595 if (stepped == 1 && cached_b[0] == c.b[0] && cached_b[1] == c.b[1] && in test_lxvd2x_stxvd2x()
596 cached_b[2] == c.b[2] && cached_b[3] == c.b[3] && in test_lxvd2x_stxvd2x()
621 } c[2]; in test_lxvp_stxvp() local
635 cached_b[0] = c[0].b[0] = 18233; in test_lxvp_stxvp()
636 cached_b[1] = c[0].b[1] = 34863571; in test_lxvp_stxvp()
637 cached_b[2] = c[0].b[2] = 834; in test_lxvp_stxvp()
638 cached_b[3] = c[0].b[3] = 6138911; in test_lxvp_stxvp()
639 cached_b[4] = c[1].b[0] = 1234; in test_lxvp_stxvp()
640 cached_b[5] = c[1].b[1] = 5678; in test_lxvp_stxvp()
641 cached_b[6] = c[1].b[2] = 91011; in test_lxvp_stxvp()
642 cached_b[7] = c[1].b[3] = 121314; in test_lxvp_stxvp()
644 regs.gpr[4] = (unsigned long)&c[0].a; in test_lxvp_stxvp()
664 c[0].b[0] = 21379463; in test_lxvp_stxvp()
665 c[0].b[1] = 87; in test_lxvp_stxvp()
666 c[0].b[2] = 374234; in test_lxvp_stxvp()
667 c[0].b[3] = 4; in test_lxvp_stxvp()
668 c[1].b[0] = 90; in test_lxvp_stxvp()
669 c[1].b[1] = 122; in test_lxvp_stxvp()
670 c[1].b[2] = 555; in test_lxvp_stxvp()
671 c[1].b[3] = 32144; in test_lxvp_stxvp()
680 if (stepped == 1 && cached_b[0] == c[0].b[0] && cached_b[1] == c[0].b[1] && in test_lxvp_stxvp()
681 cached_b[2] == c[0].b[2] && cached_b[3] == c[0].b[3] && in test_lxvp_stxvp()
682 cached_b[4] == c[1].b[0] && cached_b[5] == c[1].b[1] && in test_lxvp_stxvp()
683 cached_b[6] == c[1].b[2] && cached_b[7] == c[1].b[3] && in test_lxvp_stxvp()
708 } c[2]; in test_lxvpx_stxvpx() local
722 cached_b[0] = c[0].b[0] = 18233; in test_lxvpx_stxvpx()
723 cached_b[1] = c[0].b[1] = 34863571; in test_lxvpx_stxvpx()
724 cached_b[2] = c[0].b[2] = 834; in test_lxvpx_stxvpx()
725 cached_b[3] = c[0].b[3] = 6138911; in test_lxvpx_stxvpx()
726 cached_b[4] = c[1].b[0] = 1234; in test_lxvpx_stxvpx()
727 cached_b[5] = c[1].b[1] = 5678; in test_lxvpx_stxvpx()
728 cached_b[6] = c[1].b[2] = 91011; in test_lxvpx_stxvpx()
729 cached_b[7] = c[1].b[3] = 121314; in test_lxvpx_stxvpx()
731 regs.gpr[3] = (unsigned long)&c[0].a; in test_lxvpx_stxvpx()
737 * let TX=1 Tp=1 RA=3 RB=4 in test_lxvpx_stxvpx()
739 stepped = emulate_step(®s, ppc_inst(PPC_RAW_LXVPX(34, 3, 4))); in test_lxvpx_stxvpx()
752 c[0].b[0] = 21379463; in test_lxvpx_stxvpx()
753 c[0].b[1] = 87; in test_lxvpx_stxvpx()
754 c[0].b[2] = 374234; in test_lxvpx_stxvpx()
755 c[0].b[3] = 4; in test_lxvpx_stxvpx()
756 c[1].b[0] = 90; in test_lxvpx_stxvpx()
757 c[1].b[1] = 122; in test_lxvpx_stxvpx()
758 c[1].b[2] = 555; in test_lxvpx_stxvpx()
759 c[1].b[3] = 32144; in test_lxvpx_stxvpx()
764 * let SX=1 Sp=1 RA=3 RB=4 in test_lxvpx_stxvpx()
766 stepped = emulate_step(®s, ppc_inst(PPC_RAW_STXVPX(34, 3, 4))); in test_lxvpx_stxvpx()
768 if (stepped == 1 && cached_b[0] == c[0].b[0] && cached_b[1] == c[0].b[1] && in test_lxvpx_stxvpx()
769 cached_b[2] == c[0].b[2] && cached_b[3] == c[0].b[3] && in test_lxvpx_stxvpx()
770 cached_b[4] == c[1].b[0] && cached_b[5] == c[1].b[1] && in test_lxvpx_stxvpx()
771 cached_b[6] == c[1].b[2] && cached_b[7] == c[1].b[3] && in test_lxvpx_stxvpx()
797 } c[2]; in test_plxvp_pstxvp() local
809 cached_b[0] = c[0].b[0] = 18233; in test_plxvp_pstxvp()
810 cached_b[1] = c[0].b[1] = 34863571; in test_plxvp_pstxvp()
811 cached_b[2] = c[0].b[2] = 834; in test_plxvp_pstxvp()
812 cached_b[3] = c[0].b[3] = 6138911; in test_plxvp_pstxvp()
813 cached_b[4] = c[1].b[0] = 1234; in test_plxvp_pstxvp()
814 cached_b[5] = c[1].b[1] = 5678; in test_plxvp_pstxvp()
815 cached_b[6] = c[1].b[2] = 91011; in test_plxvp_pstxvp()
816 cached_b[7] = c[1].b[3] = 121314; in test_plxvp_pstxvp()
819 regs.gpr[3] = (unsigned long)&c[0].a; in test_plxvp_pstxvp()
824 * let RA=3 R=0 D=d0||d1=0 R=0 Tp=1 TX=1 in test_plxvp_pstxvp()
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()
840 c[0].b[0] = 21379463; in test_plxvp_pstxvp()
841 c[0].b[1] = 87; in test_plxvp_pstxvp()
842 c[0].b[2] = 374234; in test_plxvp_pstxvp()
843 c[0].b[3] = 4; in test_plxvp_pstxvp()
844 c[1].b[0] = 90; in test_plxvp_pstxvp()
845 c[1].b[1] = 122; in test_plxvp_pstxvp()
846 c[1].b[2] = 555; in test_plxvp_pstxvp()
847 c[1].b[3] = 32144; in test_plxvp_pstxvp()
852 * let RA=3 D=d0||d1=0 R=0 Sp=1 SX=1 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()
858 if (stepped == 1 && cached_b[0] == c[0].b[0] && cached_b[1] == c[0].b[1] && in test_plxvp_pstxvp()
859 cached_b[2] == c[0].b[2] && cached_b[3] == c[0].b[3] && in test_plxvp_pstxvp()
860 cached_b[4] == c[1].b[0] && cached_b[5] == c[1].b[1] && in test_plxvp_pstxvp()
861 cached_b[6] == c[1].b[2] && cached_b[7] == c[1].b[3] && in test_plxvp_pstxvp()