Lines Matching refs:N32_RT5
6878 insn16 = N16_TYPE333 (ADD333, N32_RT5 (insn), N32_RA5 (insn), in nds32_convert_32_to_16_alu1()
6884 if (N32_RT5 (insn) == N32_RA5 (insn)) in nds32_convert_32_to_16_alu1()
6886 else if (N32_RT5 (insn) == N32_RB5 (insn)) in nds32_convert_32_to_16_alu1()
6896 insn16 = N16_TYPE333 (SUB333, N32_RT5 (insn), N32_RA5 (insn), in nds32_convert_32_to_16_alu1()
6900 else if (N32_IS_RT4 (insn) && N32_RT5 (insn) == N32_RA5 (insn)) in nds32_convert_32_to_16_alu1()
6913 if (N32_RT5 (insn) == N32_RA5 (insn)) in nds32_convert_32_to_16_alu1()
6914 insn16 = N16_MISC33 (AND33, N32_RT5 (insn), N32_RB5 (insn)); in nds32_convert_32_to_16_alu1()
6915 else if (N32_RT5 (insn) == N32_RB5 (insn)) in nds32_convert_32_to_16_alu1()
6916 insn16 = N16_MISC33 (AND33, N32_RT5 (insn), N32_RA5 (insn)); in nds32_convert_32_to_16_alu1()
6928 if (N32_RT5 (insn) == N32_RA5 (insn)) in nds32_convert_32_to_16_alu1()
6929 insn16 = N16_MISC33 (XOR33, N32_RT5 (insn), N32_RB5 (insn)); in nds32_convert_32_to_16_alu1()
6930 else if (N32_RT5 (insn) == N32_RB5 (insn)) in nds32_convert_32_to_16_alu1()
6931 insn16 = N16_MISC33 (XOR33, N32_RT5 (insn), N32_RA5 (insn)); in nds32_convert_32_to_16_alu1()
6943 if (N32_RT5 (insn) == N32_RA5 (insn)) in nds32_convert_32_to_16_alu1()
6944 insn16 = N16_MISC33 (OR33, N32_RT5 (insn), N32_RB5 (insn)); in nds32_convert_32_to_16_alu1()
6945 else if (N32_RT5 (insn) == N32_RB5 (insn)) in nds32_convert_32_to_16_alu1()
6946 insn16 = N16_MISC33 (OR33, N32_RT5 (insn), N32_RA5 (insn)); in nds32_convert_32_to_16_alu1()
6956 insn16 = N16_MISC33 (NOT33, N32_RT5 (insn), N32_RA5 (insn)); in nds32_convert_32_to_16_alu1()
6961 if (N32_IS_RT4 (insn) && N32_RT5 (insn) == N32_RA5 (insn)) in nds32_convert_32_to_16_alu1()
6969 if (N32_IS_RT4 (insn) && N32_RT5 (insn) == N32_RA5 (insn)) in nds32_convert_32_to_16_alu1()
6979 insn16 = N16_TYPE333 (SLLI333, N32_RT5 (insn), N32_RA5 (insn), in nds32_convert_32_to_16_alu1()
6988 insn16 = N16_BFMI333 (ZEH33, N32_RT5 (insn), N32_RA5 (insn)); in nds32_convert_32_to_16_alu1()
6996 insn16 = N16_BFMI333 (SEB33, N32_RT5 (insn), N32_RA5 (insn)); in nds32_convert_32_to_16_alu1()
7004 insn16 = N16_BFMI333 (SEH33, N32_RT5 (insn), N32_RA5 (insn)); in nds32_convert_32_to_16_alu1()
7010 if (N32_RT5 (insn) == REG_R15 && N32_IS_RA4 (insn)) in nds32_convert_32_to_16_alu1()
7019 if (N32_RT5 (insn) == REG_R15 && N32_IS_RA4 (insn)) in nds32_convert_32_to_16_alu1()
7056 if (N32_RT5 (insn) == N32_RA5 (insn)) in nds32_convert_32_to_16_alu2()
7057 insn16 = N16_MISC33 (MUL33, N32_RT5 (insn), N32_RB5 (insn)); in nds32_convert_32_to_16_alu2()
7058 else if (N32_RT5 (insn) == N32_RB5 (insn)) in nds32_convert_32_to_16_alu2()
7059 insn16 = N16_MISC33 (MUL33, N32_RT5 (insn), N32_RA5 (insn)); in nds32_convert_32_to_16_alu2()
7099 insn16 = N16_TYPE55 (MOVI55, N32_RT5 (insn), N32_IMM20S (insn)); in nds32_convert_32_to_16()
7117 || N32_RT5 (insn) != REG_SP || N32_RA5 (insn) != REG_SP) in nds32_convert_32_to_16()
7119 insn16 = N16_TYPE55 (MOV55, N32_RT5 (insn), N32_RA5 (insn)); in nds32_convert_32_to_16()
7127 insn16 = N16_TYPE333 (ADDI333, N32_RT5 (insn), N32_RA5 (insn), in nds32_convert_32_to_16()
7131 else if (N32_IS_RT4 (insn) && N32_RT5 (insn) == N32_RA5 (insn) in nds32_convert_32_to_16()
7137 else if (mach >= MACH_V2 && N32_RT5 (insn) == REG_SP in nds32_convert_32_to_16()
7138 && N32_RT5 (insn) == N32_RA5 (insn) in nds32_convert_32_to_16()
7148 insn16 = N16_TYPE36 (ADDRI36_SP, N32_RT5 (insn), in nds32_convert_32_to_16()
7158 insn16 = N16_TYPE333 (SUBI333, N32_RT5 (insn), N32_RA5 (insn), in nds32_convert_32_to_16()
7162 else if (N32_IS_RT4 (insn) && N32_RT5 (insn) == N32_RA5 (insn) in nds32_convert_32_to_16()
7169 else if (mach >= MACH_V2 && N32_RT5 (insn) == REG_SP in nds32_convert_32_to_16()
7170 && N32_RT5 (insn) == N32_RA5 (insn) in nds32_convert_32_to_16()
7185 || N32_RT5 (insn) != REG_SP || N32_RA5 (insn) != REG_SP) in nds32_convert_32_to_16()
7187 insn16 = N16_TYPE55 (MOV55, N32_RT5 (insn), N32_RA5 (insn)); in nds32_convert_32_to_16()
7197 insn16 = N16_MISC33 (NEG33, N32_RT5 (insn), N32_RA5 (insn)); in nds32_convert_32_to_16()
7207 insn16 = N16_BFMI333 (XLSB33, N32_RT5 (insn), N32_RA5 (insn)); in nds32_convert_32_to_16()
7212 insn16 = N16_BFMI333 (X11B33, N32_RT5 (insn), N32_RA5 (insn)); in nds32_convert_32_to_16()
7217 insn16 = N16_BFMI333 (ZEB33, N32_RT5 (insn), N32_RA5 (insn)); in nds32_convert_32_to_16()
7220 else if (mach >= MACH_V3 && N32_RT5 (insn) == N32_RA5 (insn) in nds32_convert_32_to_16()
7230 insn16 = N16_BFMI333 (BMSKI33, N32_RT5 (insn), imm3u); in nds32_convert_32_to_16()
7238 insn16 = N16_BFMI333 (FEXTI33, N32_RT5 (insn), imm3u); in nds32_convert_32_to_16()
7246 if (N32_RT5 (insn) == REG_R15 && N32_IS_RA4 (insn) in nds32_convert_32_to_16()
7255 if (N32_RT5 (insn) == REG_R15 && N32_IS_RA4 (insn) in nds32_convert_32_to_16()
7272 insn16 = N16_TYPE333 (LWI333, N32_RT5 (insn), N32_RA5 (insn), in nds32_convert_32_to_16()
7279 insn16 = N16_TYPE37 (XWI37, N32_RT5 (insn), 0, N32_IMM15S (insn)); in nds32_convert_32_to_16()
7285 insn16 = N16_TYPE37 (XWI37SP, N32_RT5 (insn), 0, N32_IMM15S (insn)); in nds32_convert_32_to_16()
7306 insn16 = N16_TYPE333 (SWI333, N32_RT5 (insn), N32_RA5 (insn), in nds32_convert_32_to_16()
7313 insn16 = N16_TYPE37 (XWI37, N32_RT5 (insn), 1, N32_IMM15S (insn)); in nds32_convert_32_to_16()
7319 insn16 = N16_TYPE37 (XWI37SP, N32_RT5 (insn), 1, N32_IMM15S (insn)); in nds32_convert_32_to_16()
7328 insn16 = N16_TYPE333 (LWI333_BI, N32_RT5 (insn), N32_RA5 (insn), in nds32_convert_32_to_16()
7338 insn16 = N16_TYPE333 (SWI333_BI, N32_RT5 (insn), N32_RA5 (insn), in nds32_convert_32_to_16()
7348 insn16 = N16_TYPE333 (LHI333, N32_RT5 (insn), N32_RA5 (insn), in nds32_convert_32_to_16()
7358 insn16 = N16_TYPE333 (SHI333, N32_RT5 (insn), N32_RA5 (insn), in nds32_convert_32_to_16()
7368 insn16 = N16_TYPE333 (LBI333, N32_RT5 (insn), N32_RA5 (insn), in nds32_convert_32_to_16()
7378 insn16 = N16_TYPE333 (SBI333, N32_RT5 (insn), N32_RA5 (insn), in nds32_convert_32_to_16()
7398 && N32_RT5 (insn) != REG_R5) in nds32_convert_32_to_16()
7399 insn16 = N16_TYPE38 (BEQS38, N32_RT5 (insn), N32_IMM14S (insn)); in nds32_convert_32_to_16()
7400 else if (N32_IS_RA3 (insn) && N32_RT5 (insn) == REG_R5 in nds32_convert_32_to_16()
7410 && N32_RT5 (insn) != REG_R5) in nds32_convert_32_to_16()
7411 insn16 = N16_TYPE38 (BNES38, N32_RT5 (insn), N32_IMM14S (insn)); in nds32_convert_32_to_16()
7412 else if (N32_IS_RA3 (insn) && N32_RT5 (insn) == REG_R5 in nds32_convert_32_to_16()
7426 insn16 = N16_TYPE38 (BEQZ38, N32_RT5 (insn), N32_IMM16S (insn)); in nds32_convert_32_to_16()
7429 else if (N32_RT5 (insn) == REG_R15 in nds32_convert_32_to_16()
7440 insn16 = N16_TYPE38 (BNEZ38, N32_RT5 (insn), N32_IMM16S (insn)); in nds32_convert_32_to_16()
7443 else if (N32_RT5 (insn) == REG_R15 in nds32_convert_32_to_16()
7503 if (N32_RT5 (insn) == REG_LP && N32_JREG_HINT (insn) == 0) in nds32_convert_32_to_16()
7555 insn16 = N16_TYPE37 (XWI37, N32_RT5 (insn), 0, N32_IMM15S (insn)); in special_convert_32_to_16()
7559 insn16 = N16_TYPE37 (XWI37, N32_RT5 (insn), 1, N32_IMM15S (insn)); in special_convert_32_to_16()
7566 insn16 = N16_TYPE37 (XWI37, N32_RT5 (insn), 0, N32_IMM17S (insn)); in special_convert_32_to_16()
7568 insn16 = N16_TYPE37 (XWI37, N32_RT5 (insn), 1, N32_IMM17S (insn)); in special_convert_32_to_16()
7897 oinsn = N32_TYPE1 (LBGP, N32_RT5 (insn), 0); in turn_insn_to_sda_access()
7901 oinsn = N32_TYPE1 (LBGP, N32_RT5 (insn), __BIT (19)); in turn_insn_to_sda_access()
7905 oinsn = N32_TYPE1 (SBGP, N32_RT5 (insn), 0); in turn_insn_to_sda_access()
7909 oinsn = N32_TYPE1 (SBGP, N32_RT5 (insn), __BIT (19)); in turn_insn_to_sda_access()
7919 oinsn = N32_TYPE1 (HWGP, N32_RT5 (insn), 0); in turn_insn_to_sda_access()
7923 oinsn = N32_TYPE1 (HWGP, N32_RT5 (insn), __BIT (18)); in turn_insn_to_sda_access()
7927 oinsn = N32_TYPE1 (HWGP, N32_RT5 (insn), __BIT (19)); in turn_insn_to_sda_access()
7937 oinsn = N32_TYPE1 (HWGP, N32_RT5 (insn), __MF (6, 17, 3)); in turn_insn_to_sda_access()
7941 oinsn = N32_TYPE1 (HWGP, N32_RT5 (insn), __MF (7, 17, 3)); in turn_insn_to_sda_access()
9485 comp_insn16 |= (N32_RT5 (insn) & 0x7) << 8; in nds32_elf_convert_branch()
9504 comp_insn16 |= (N32_RT5 (insn) & 0x7) << 8; in nds32_elf_convert_branch()
9506 else if (N32_RT5 (insn) == REG_R15) in nds32_elf_convert_branch()
10742 re_insn = N32_BR3 (BNEC, N32_RT5 (insn), imm11, 0); in nds32_elf_relax_longjump7()
10744 re_insn = N32_BR3 (BEQC, N32_RT5 (insn), imm11, 0); in nds32_elf_relax_longjump7()
10861 if (N32_RT5 (insn) == REG_GP) in nds32_elf_relax_loadstore()
10987 insn = N32_TYPE1 (MOVI, N32_RT5 (insn), 0); in nds32_elf_relax_lo12()
11029 if (N32_OP6 (insn) == N32_OP6_ORI && N32_RT5 (insn) == REG_GP) in nds32_elf_relax_lo12()
11107 insn = N32_TYPE1 (MOVI, N32_RT5 (insn), 0); in nds32_elf_relax_piclo12()
11137 insn = N32_TYPE1 (MOVI, N32_RT5 (insn), 0); in nds32_elf_relax_letlslo12()
11175 insn = N32_TYPE2 (ADDI, N32_RT5 (insn), N32_RB5 (insn), 0); in nds32_elf_relax_letlsadd()
11381 insn = N32_TYPE1 (SBGP, N32_RT5 (insn), __BIT (19)); in nds32_elf_relax_pltgot_suff()
11443 insn = N32_TYPE1 (HWGP, N32_RT5 (insn), __MF (6, 17, 3)); in nds32_elf_relax_got_suff()
11498 insn = N32_TYPE1 (HWGP, N32_RT5 (insn), __MF (6, 17, 3)); in nds32_elf_relax_gotoff_suff()
11503 insn = N32_TYPE1 (HWGP, N32_RT5 (insn), __MF (7, 17, 3)); in nds32_elf_relax_gotoff_suff()
11509 insn = N32_TYPE1 (HWGP, N32_RT5 (insn), 0); in nds32_elf_relax_gotoff_suff()
11514 insn = N32_TYPE1 (HWGP, N32_RT5 (insn), __BIT (18)); in nds32_elf_relax_gotoff_suff()
11519 insn = N32_TYPE1 (HWGP, N32_RT5 (insn), __BIT (19)); in nds32_elf_relax_gotoff_suff()
11525 insn = N32_TYPE1 (LBGP, N32_RT5 (insn), 0); in nds32_elf_relax_gotoff_suff()
11530 insn = N32_TYPE1 (LBGP, N32_RT5 (insn), __BIT (19)); in nds32_elf_relax_gotoff_suff()
11535 insn = N32_TYPE1 (SBGP, N32_RT5 (insn), 0); in nds32_elf_relax_gotoff_suff()
11540 insn = N32_TYPE1 (SBGP, N32_RT5 (insn), __BIT (19)); in nds32_elf_relax_gotoff_suff()