Lines Matching refs:rd
146 (dnf f-rd "register field Rd" () 15 5)
155 (name f-rd-rs)
159 (subfields f-rd f-rs)
161 (set (ifield f-rd) (ifield f-rd-rs))
162 (set (ifield f-rs) (ifield f-rd-rs))
165 (set (ifield f-rd-rs) (ifield f-rs))
170 (name f-rd-rt)
174 (subfields f-rd f-rt)
176 (set (ifield f-rd) (ifield f-rd-rt))
177 (set (ifield f-rt) (ifield f-rd-rt))
180 (set (ifield f-rd-rt) (ifield f-rt))
195 (set (ifield f-rd-rs) (ifield f-rs))
336 (comment "insn requires an even numbered register in rt(2000) or rd(10)")
353 (define-reg-use-attr "rd")
363 (dnop rd "register Rd" () h-gr f-rd)
364 (dnop rd-rs "register Rd from Rs" () h-gr f-rd-rs)
365 (dnop rd-rt "register Rd from Rt" () h-gr f-rd-rt)
451 "add ${rd-rs},$rt"
452 (+ OP_SPECIAL rt rd-rs (f-shamt 0) FUNC_ADD)
453 (set rd-rs (add rt rd-rs))
457 "add $rd,$rs,$rt"
458 (+ OP_SPECIAL rs rt rd (f-shamt 0) FUNC_ADD)
459 (set rd (add rs rt))
488 "addu ${rd-rs},$rt"
489 (+ OP_SPECIAL rd-rs rt (f-shamt 0) FUNC_ADDU)
490 (set rd-rs (add rd-rs rt))
494 "addu $rd,$rs,$rt"
495 (+ OP_SPECIAL rs rt rd (f-shamt 0) FUNC_ADDU)
496 (set rd (add rs rt))
500 "ado16 ${rd-rs},$rt"
501 (+ OP_SPECIAL rd-rs rt (f-shamt 0) FUNC_ADO16)
503 (set low (add HI (and HI rd-rs #xFFFF) (and HI rt #xFFFF)))
504 (set high (add HI (srl rd-rs 16) (srl rt 16)))
505 (set rd-rs (or SI (sll SI high 16) low)))
509 "ado16 $rd,$rs,$rt"
510 (+ OP_SPECIAL rs rt rd (f-shamt 0) FUNC_ADO16)
514 (set rd (or SI (sll SI high 16) low)))
518 "and ${rd-rs},$rt"
519 (+ OP_SPECIAL rd-rs rt (f-shamt 0) FUNC_AND)
520 (set rd-rs (and rd-rs rt))
524 "and $rd,$rs,$rt"
525 (+ OP_SPECIAL rs rt rd (f-shamt 0) FUNC_AND)
526 (set rd (and rs rt))
554 "nor ${rd-rs},$rt"
555 (+ OP_SPECIAL rd-rs rt (f-shamt 0) FUNC_NOR)
556 (set rd-rs (inv (or rd-rs rt)))
560 "nor $rd,$rs,$rt"
561 (+ OP_SPECIAL rs rt rd (f-shamt 0) FUNC_NOR)
562 (set rd (inv (or rs rt)))
566 "or ${rd-rs},$rt"
567 (+ OP_SPECIAL rd-rs rt (f-shamt 0) FUNC_OR)
568 (set rd-rs (or rd-rs rt))
572 "or $rd,$rs,$rt"
573 (+ OP_SPECIAL rs rt rd (f-shamt 0) FUNC_OR)
574 (set rd (or rs rt))
590 "ram $rd,$rt,$shamt,$maskl,$maskr"
591 (+ OP_RAM maskr rt rd shamt (f-5 0) maskl)
593 (set rd (ror rt shamt))
594 (set rd (and rd (srl #xFFFFFFFF maskl)))
595 (set rd (and rd (sll #xFFFFFFFF maskr))))
599 "sll $rd,$rt,$shamt"
600 (+ OP_SPECIAL (f-rs 0) rt rd shamt (f-func 0))
601 (set rd (sll rt shamt))
605 "sllv ${rd-rt},$rs"
606 (+ OP_SPECIAL rs rd-rt (f-shamt 0) FUNC_SLLV)
607 (set rd-rt (sll rd-rt (and rs #x1F)))
611 "sllv $rd,$rt,$rs"
612 (+ OP_SPECIAL rs rt rd (f-shamt 0) FUNC_SLLV)
613 (set rd (sll rt (and rs #x1F)))
617 "slmv ${rd-rt},$rs,$shamt"
618 (+ OP_SPECIAL rs rd-rt shamt FUNC_SLMV)
619 (set rd-rt (and (sll rd-rt shamt) (srl #xFFFFFFFF rs)))
623 "slmv $rd,$rt,$rs,$shamt"
624 (+ OP_SPECIAL rs rt rd shamt FUNC_SLMV)
625 (set rd (and (sll rt shamt) (srl #xFFFFFFFF rs)))
629 "slt ${rd-rs},$rt"
630 (+ OP_SPECIAL rt rd-rs (f-shamt 0) FUNC_SLT)
631 (if (lt rd-rs rt)
632 (set rd-rs 1)
633 (set rd-rs 0))
637 "slt $rd,$rs,$rt"
638 (+ OP_SPECIAL rs rt rd (f-shamt 0) FUNC_SLT)
640 (set rd 1)
641 (set rd 0))
677 "sltu ${rd-rs},$rt"
678 (+ OP_SPECIAL rd-rs rt (f-shamt 0) FUNC_SLTU)
679 (if (ltu rd-rs rt)
680 (set rd-rs 1)
681 (set rd-rs 0))
685 "sltu $rd,$rs,$rt"
686 (+ OP_SPECIAL rs rt rd (f-shamt 0) FUNC_SLTU)
688 (set rd 1)
689 (set rd 0))
693 "sra ${rd-rt},$shamt"
694 (+ OP_SPECIAL (f-rs 0) rd-rt shamt FUNC_SRA)
695 (set rd-rt (sra rd-rt shamt))
699 "sra $rd,$rt,$shamt"
700 (+ OP_SPECIAL (f-rs 0) rt rd shamt FUNC_SRA)
701 (set rd (sra rt shamt))
705 "srav ${rd-rt},$rs"
706 (+ OP_SPECIAL rs rd-rt (f-shamt 0) FUNC_SRAV)
707 (set rd-rt (sra rd-rt (and rs #x1F)))
711 "srav $rd,$rt,$rs"
712 (+ OP_SPECIAL rs rt rd (f-shamt 0) FUNC_SRAV)
713 (set rd (sra rt (and rs #x1F)))
717 "srl $rd,$rt,$shamt"
718 (+ OP_SPECIAL (f-rs 0) rt rd shamt FUNC_SRL)
719 (set rd (srl rt shamt))
723 "srlv ${rd-rt},$rs"
724 (+ OP_SPECIAL rs rd-rt (f-shamt 0) FUNC_SRLV)
725 (set rd-rt (srl rd-rt (and rs #x1F)))
729 "srlv $rd,$rt,$rs"
730 (+ OP_SPECIAL rs rt rd (f-shamt 0) FUNC_SRLV)
731 (set rd (srl rt (and rs #x1F)))
735 "srmv ${rd-rt},$rs,$shamt"
736 (+ OP_SPECIAL rs rd-rt shamt FUNC_SRMV)
737 (set rd-rt (and (srl rd-rt shamt) (sll #xFFFFFFFF rs)))
741 "srmv $rd,$rt,$rs,$shamt"
742 (+ OP_SPECIAL rs rt rd shamt FUNC_SRMV)
743 (set rd (and (srl rt shamt) (sll #xFFFFFFFF rs)))
747 "sub ${rd-rs},$rt"
748 (+ OP_SPECIAL rt rd-rs (f-shamt 0) FUNC_SUB)
749 (set rd-rs (sub rd-rs rt))
753 "sub $rd,$rs,$rt"
754 (+ OP_SPECIAL rs rt rd (f-shamt 0) FUNC_SUB)
755 (set rd (sub rs rt))
759 "subu ${rd-rs},$rt"
760 (+ OP_SPECIAL rt rd-rs (f-shamt 0) FUNC_SUBU)
761 (set rd-rs (sub rd-rs rt))
765 "subu $rd,$rs,$rt"
766 (+ OP_SPECIAL rs rt rd (f-shamt 0) FUNC_SUBU)
767 (set rd (sub rs rt))
771 "xor ${rd-rs},$rt"
772 (+ OP_SPECIAL rt rd-rs (f-shamt 0) FUNC_XOR)
773 (set rd-rs (xor rd-rs rt))
777 "xor $rd,$rs,$rt"
778 (+ OP_SPECIAL rs rt rd (f-shamt 0) FUNC_XOR)
779 (set rd (xor rs rt))
959 "jalr $rd,$rs"
960 (+ OP_SPECIAL rs (f-rt 0) rd (f-shamt 0) FUNC_JALR)
963 (set rd (add pc 8))
969 (+ OP_SPECIAL rs (f-rt 0) (f-rd 0) (f-shamt 0) FUNC_JR)
1055 (+ OP_SPECIAL (f-rs 0) (f-rt 0) (f-rd 0) (f-shamt 0) FUNC_BREAK)
1069 (emit sll (rd 0) (rt 0) (shamt 0))
1078 "move $rd,$rt"
1079 (emit or rd (rs 0) rt)
1127 "sll $rd,$rt,$rs"
1128 (emit sllv rd rt rs)
1142 "sra $rd,$rt,$rs"
1143 (emit srav rd rt rs)
1147 "srl $rd,$rt,$rs"
1148 (emit srlv rd rt rs)
1152 "not $rd,$rt"
1153 (emit nor rd (rs 0) rt)