Home | History | Annotate | Download | only in rtasm

Lines Matching refs:rA

454       unsigned ra:5;
462 emit_x(struct ppc_function *p, uint op, uint vrs, uint ra, uint rb, uint op2,
468 inst.inst.ra = ra;
475 printf(format, vrs, ra, rb);
485 unsigned ra:5;
491 emit_d(struct ppc_function *p, uint op, uint rt, uint ra, int si,
499 inst.inst.ra = ra;
505 printf(format, rt, si, ra);
507 printf(format, rt, ra, si);
550 unsigned ra:5;
559 emit_xo(struct ppc_function *p, uint op, uint rt, uint ra, uint rb, uint oe,
565 inst.inst.ra = ra;
573 printf(format, rt, ra, rb);
706 /** vector store: store vR at mem[rA+rB] */
708 ppc_stvx(struct ppc_function *p, uint vR, uint rA, uint rB)
710 emit_x(p, 31, vR, rA, rB, 231, "stvx\tv%u, r%u, r%u\n");
713 /** vector load: vR = mem[rA+rB] */
715 ppc_lvx(struct ppc_function *p, uint vR, uint rA, uint rB)
717 emit_x(p, 31, vR, rA, rB, 103, "lvx\tv%u, r%u, r%u\n");
720 /** load vector element word: vR = mem_word[ra+rb] */
722 ppc_lvewx(struct ppc_function *p, uint vR, uint rA, uint rB)
724 emit_x(p, 31, vR, rA, rB, 71, "lvewx\tv%u, r%u, r%u\n");
862 /** rt = ra + imm */
864 ppc_addi(struct ppc_function *p, uint rt, uint ra, int imm)
866 emit_d(p, 14, rt, ra, imm, "addi\tr%u, r%u, %d\n", FALSE);
869 /** rt = ra + (imm << 16) */
871 ppc_addis(struct ppc_function *p, uint rt, uint ra, int imm)
873 emit_d(p, 15, rt, ra, imm, "addis\tr%u, r%u, %d\n", FALSE);
876 /** rt = ra + rb */
878 ppc_add(struct ppc_function *p, uint rt, uint ra, uint rb)
880 emit_xo(p, 31, rt, ra, rb, 0, 266, 0, "add\tr%u, r%u, r%u\n");
883 /** rt = ra AND ra */
885 ppc_and(struct ppc_function *p, uint rt, uint ra, uint rb)
887 emit_x(p, 31, ra, rt, rb, 28, "and\tr%u, r%u, r%u\n"); /* note argument order */
890 /** rt = ra AND imm */
892 ppc_andi(struct ppc_function *p, uint rt, uint ra, int imm)
895 emit_d(p, 28, ra, rt, imm, "andi\tr%u, r%u, %d\n", FALSE);
898 /** rt = ra OR ra */
900 ppc_or(struct ppc_function *p, uint rt, uint ra, uint rb)
902 emit_x(p, 31, ra, rt, rb, 444, "or\tr%u, r%u, r%u\n"); /* note argument order */
905 /** rt = ra OR imm */
907 ppc_ori(struct ppc_function *p, uint rt, uint ra, int imm)
910 emit_d(p, 24, ra, rt, imm, "ori\tr%u, r%u, %d\n", FALSE);
913 /** rt = ra XOR ra */
915 ppc_xor(struct ppc_function *p, uint rt, uint ra, uint rb)
917 emit_x(p, 31, ra, rt, rb, 316, "xor\tr%u, r%u, r%u\n"); /* note argument order */
920 /** rt = ra XOR imm */
922 ppc_xori(struct ppc_function *p, uint rt, uint ra, int imm)
925 emit_d(p, 26, ra, rt, imm, "xori\tr%u, r%u, %d\n", FALSE);
928 /** pseudo instruction: move: rt = ra */
930 ppc_mr(struct ppc_function *p, uint rt, uint ra)
932 ppc_or(p, rt, ra, ra);
971 /** store rs at memory[(ra)+d],
972 * then update ra = (ra)+d
975 ppc_stwu(struct ppc_function *p, uint rs, uint ra, int d)
977 emit_d(p, 37, rs, ra, d, "stwu\tr%u, %d(r%u)\n", TRUE);
980 /** store rs at memory[(ra)+d] */
982 ppc_stw(struct ppc_function *p, uint rs, uint ra, int d)
984 emit_d(p, 36, rs, ra, d, "stw\tr%u, %d(r%u)\n", TRUE);
987 /** Load rt = mem[(ra)+d]; then zero set high 32 bits to zero. */
989 ppc_lwz(struct ppc_function *p, uint rt, uint ra, int d)
991 emit_d(p, 32, rt, ra, d, "lwz\tr%u, %d(r%u)\n", TRUE);
1014 /** convert to int: rt = (int) ra */
1021 /** store frs at mem[(ra)+offset] */
1023 ppc_stfs(struct ppc_function *p, uint frs, uint ra, int offset)
1025 emit_d(p, 52, frs, ra, offset, "stfs\tr%u, %d(r%u)\n", TRUE);
1028 /** store frs at mem[(ra)+(rb)] */
1030 ppc_stfiwx(struct ppc_function *p, uint frs, uint ra, uint rb)
1032 emit_x(p, 31, frs, ra, rb, 983, "stfiwx\tr%u, r%u, r%u\n");
1035 /** load frt = mem[(ra)+offset] */
1037 ppc_lfs(struct ppc_function *p, uint frt, uint ra, int offset)
1039 emit_d(p, 48, frt, ra, offset, "stfs\tr%u, %d(r%u)\n", TRUE);