fix tests

This commit is contained in:
billow 2023-04-09 23:54:52 +08:00
parent dd04f4d98b
commit e843a8df56
10 changed files with 4151 additions and 4147 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1650,7 +1650,7 @@
#endif #endif
}, },
{ {
TriCore_ADDS_B_rr_v110 /* 274 */, TriCore_INS_ADDS_B, TriCore_ADDS_B_rr /* 274 */, TriCore_INS_ADDS_B,
#ifndef CAPSTONE_DIET #ifndef CAPSTONE_DIET
{ 0 }, { 0 }, { TriCore_FEATURE_HasV110, 0 }, 0, 0 { 0 }, { 0 }, { TriCore_FEATURE_HasV110, 0 }, 0, 0
#endif #endif
@ -5478,25 +5478,25 @@
#endif #endif
}, },
{ {
TriCore_MSUBS_U_rcr /* 912 */, TriCore_INS_MADDS_U, TriCore_MSUBS_U_rcr /* 912 */, TriCore_INS_MSUBS_U,
#ifndef CAPSTONE_DIET #ifndef CAPSTONE_DIET
{ 0 }, { 0 }, { TriCore_FEATURE_HasV120_UP, 0 }, 0, 0 { 0 }, { 0 }, { TriCore_FEATURE_HasV120_UP, 0 }, 0, 0
#endif #endif
}, },
{ {
TriCore_MSUBS_U_rcr_e /* 913 */, TriCore_INS_MADDS_U, TriCore_MSUBS_U_rcr_e /* 913 */, TriCore_INS_MSUBS_U,
#ifndef CAPSTONE_DIET #ifndef CAPSTONE_DIET
{ 0 }, { 0 }, { TriCore_FEATURE_HasV120_UP, 0 }, 0, 0 { 0 }, { 0 }, { TriCore_FEATURE_HasV120_UP, 0 }, 0, 0
#endif #endif
}, },
{ {
TriCore_MSUBS_U_rrr2 /* 914 */, TriCore_INS_MADDS_U, TriCore_MSUBS_U_rrr2 /* 914 */, TriCore_INS_MSUBS_U,
#ifndef CAPSTONE_DIET #ifndef CAPSTONE_DIET
{ 0 }, { 0 }, { TriCore_FEATURE_HasV120_UP, 0 }, 0, 0 { 0 }, { 0 }, { TriCore_FEATURE_HasV120_UP, 0 }, 0, 0
#endif #endif
}, },
{ {
TriCore_MSUBS_U_rrr2_e /* 915 */, TriCore_INS_MADDS_U, TriCore_MSUBS_U_rrr2_e /* 915 */, TriCore_INS_MSUBS_U,
#ifndef CAPSTONE_DIET #ifndef CAPSTONE_DIET
{ 0 }, { 0 }, { TriCore_FEATURE_HasV120_UP, 0 }, 0, 0 { 0 }, { 0 }, { TriCore_FEATURE_HasV120_UP, 0 }, 0, 0
#endif #endif
@ -5628,13 +5628,13 @@
#endif #endif
}, },
{ {
TriCore_MSUB_U_rcr /* 937 */, TriCore_INS_MADD_U, TriCore_MSUB_U_rcr /* 937 */, TriCore_INS_MSUB_U,
#ifndef CAPSTONE_DIET #ifndef CAPSTONE_DIET
{ 0 }, { 0 }, { TriCore_FEATURE_HasV120_UP, 0 }, 0, 0 { 0 }, { 0 }, { TriCore_FEATURE_HasV120_UP, 0 }, 0, 0
#endif #endif
}, },
{ {
TriCore_MSUB_U_rrr2 /* 938 */, TriCore_INS_MADD_U, TriCore_MSUB_U_rrr2 /* 938 */, TriCore_INS_MSUB_U,
#ifndef CAPSTONE_DIET #ifndef CAPSTONE_DIET
{ 0 }, { 0 }, { TriCore_FEATURE_HasV120_UP, 0 }, 0, 0 { 0 }, { 0 }, { TriCore_FEATURE_HasV120_UP, 0 }, 0, 0
#endif #endif

View File

@ -256,10 +256,12 @@
"msubr_q", // TriCore_INS_MSUBR_Q "msubr_q", // TriCore_INS_MSUBR_Q
"msubs_h", // TriCore_INS_MSUBS_H "msubs_h", // TriCore_INS_MSUBS_H
"msubs_q", // TriCore_INS_MSUBS_Q "msubs_q", // TriCore_INS_MSUBS_Q
"msubs_u", // TriCore_INS_MSUBS_U
"msubs", // TriCore_INS_MSUBS "msubs", // TriCore_INS_MSUBS
"msub_f", // TriCore_INS_MSUB_F "msub_f", // TriCore_INS_MSUB_F
"msub_h", // TriCore_INS_MSUB_H "msub_h", // TriCore_INS_MSUB_H
"msub_q", // TriCore_INS_MSUB_Q "msub_q", // TriCore_INS_MSUB_Q
"msub_u", // TriCore_INS_MSUB_U
"msub", // TriCore_INS_MSUB "msub", // TriCore_INS_MSUB
"mtcr", // TriCore_INS_MTCR "mtcr", // TriCore_INS_MTCR
"mulms_h", // TriCore_INS_MULMS_H "mulms_h", // TriCore_INS_MULMS_H

View File

@ -930,7 +930,7 @@
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s2 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s2 */
{ 0 } { 0 }
}}, }},
{ /* TriCore_ADDS_B_rr_v110 (274) - TriCore_INS_ADDS_B - adds.b $d, $s1, $s2 */ { /* TriCore_ADDS_B_rr (274) - TriCore_INS_ADDS_B - adds.b $d, $s1, $s2 */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */
@ -1350,7 +1350,7 @@
}}, }},
{ /* TriCore_CACHEA_I_bo_r (336) - TriCore_INS_CACHEA_I - cachea.i [${s2}+r] */ { /* TriCore_CACHEA_I_bo_r (336) - TriCore_INS_CACHEA_I - cachea.i [${s2}+r] */
{ {
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s2 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s2 */
{ 0 } { 0 }
}}, }},
{ /* TriCore_CACHEA_WI_bo_bso (337) - TriCore_INS_CACHEA_WI - cachea.wi [$s2]$off10 */ { /* TriCore_CACHEA_WI_bo_bso (337) - TriCore_INS_CACHEA_WI - cachea.wi [$s2]$off10 */
@ -1379,7 +1379,7 @@
}}, }},
{ /* TriCore_CACHEA_WI_bo_r (341) - TriCore_INS_CACHEA_WI - cachea.wi [${s2}+r] */ { /* TriCore_CACHEA_WI_bo_r (341) - TriCore_INS_CACHEA_WI - cachea.wi [${s2}+r] */
{ {
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s2 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s2 */
{ 0 } { 0 }
}}, }},
{ /* TriCore_CACHEA_W_bo_bso (342) - TriCore_INS_CACHEA_W - cachea.w [$s2]$off10 */ { /* TriCore_CACHEA_W_bo_bso (342) - TriCore_INS_CACHEA_W - cachea.w [$s2]$off10 */
@ -1408,7 +1408,7 @@
}}, }},
{ /* TriCore_CACHEA_W_bo_r (346) - TriCore_INS_CACHEA_W - cachea.w [${s2}+r] */ { /* TriCore_CACHEA_W_bo_r (346) - TriCore_INS_CACHEA_W - cachea.w [${s2}+r] */
{ {
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s2 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s2 */
{ 0 } { 0 }
}}, }},
{ /* TriCore_CACHEI_I_bo_bso (347) - TriCore_INS_CACHEI_I - cachei.i [$s2]$off10 */ { /* TriCore_CACHEI_I_bo_bso (347) - TriCore_INS_CACHEI_I - cachei.i [$s2]$off10 */
@ -3417,7 +3417,7 @@
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* off16 */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* off16 */
{ 0 } { 0 }
}}, }},
{ /* TriCore_LD_W_sc (655) - TriCore_INS_LD_W - ld.w %a15, [%sp]$const8 */ { /* TriCore_LD_W_sc (655) - TriCore_INS_LD_W - ld.w %d15, [%sp]$const8 */
{ {
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* const8 */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* const8 */
{ 0 } { 0 }
@ -4301,8 +4301,8 @@
{ /* TriCore_MADDS_U_rcr_e (763) - TriCore_INS_MADDS_U - madds.u $d, $s3, $s1, $const9 */ { /* TriCore_MADDS_U_rcr_e (763) - TriCore_INS_MADDS_U - madds.u $d, $s3, $s1, $const9 */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s3 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s3 */
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* const9 */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* const9 */
{ 0 } { 0 }
}}, }},
@ -4333,8 +4333,8 @@
{ /* TriCore_MADDS_rcr_e (767) - TriCore_INS_MADDS - madds $d, $s3, $s1, $const9 */ { /* TriCore_MADDS_rcr_e (767) - TriCore_INS_MADDS - madds $d, $s3, $s1, $const9 */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s3 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s3 */
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* const9 */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* const9 */
{ 0 } { 0 }
}}, }},
@ -4533,8 +4533,8 @@
{ /* TriCore_MADD_rcr_e (790) - TriCore_INS_MADD - madd $d, $s3, $s1, $const9 */ { /* TriCore_MADD_rcr_e (790) - TriCore_INS_MADD - madd $d, $s3, $s1, $const9 */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s3 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s3 */
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* const9 */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* const9 */
{ 0 } { 0 }
}}, }},
@ -5513,7 +5513,7 @@
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* n */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* n */
{ 0 } { 0 }
}}, }},
{ /* TriCore_MSUBS_U_rcr (912) - TriCore_INS_MADDS_U - madds.u $d, $s3, $s1, $const9 */ { /* TriCore_MSUBS_U_rcr (912) - TriCore_INS_MSUBS_U - msubs.u $d, $s3, $s1, $const9 */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */
@ -5521,15 +5521,15 @@
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* const9 */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* const9 */
{ 0 } { 0 }
}}, }},
{ /* TriCore_MSUBS_U_rcr_e (913) - TriCore_INS_MADDS_U - madds.u $d, $s3, $s1, $const9 */ { /* TriCore_MSUBS_U_rcr_e (913) - TriCore_INS_MSUBS_U - msubs.u $d, $s3, $s1, $const9 */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s3 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s3 */
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* const9 */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* const9 */
{ 0 } { 0 }
}}, }},
{ /* TriCore_MSUBS_U_rrr2 (914) - TriCore_INS_MADDS_U - madds.u $d, $s3, $s1, $s2 */ { /* TriCore_MSUBS_U_rrr2 (914) - TriCore_INS_MSUBS_U - msubs.u $d, $s3, $s1, $s2 */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */
@ -5537,7 +5537,7 @@
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s3 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s3 */
{ 0 } { 0 }
}}, }},
{ /* TriCore_MSUBS_U_rrr2_e (915) - TriCore_INS_MADDS_U - madds.u $d, $s3, $s1, $s2 */ { /* TriCore_MSUBS_U_rrr2_e (915) - TriCore_INS_MSUBS_U - msubs.u $d, $s3, $s1, $s2 */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */
@ -5556,8 +5556,8 @@
{ /* TriCore_MSUBS_rcr_e (917) - TriCore_INS_MSUBS - msubs $d, $s3, $s1, $const9 */ { /* TriCore_MSUBS_rcr_e (917) - TriCore_INS_MSUBS - msubs $d, $s3, $s1, $const9 */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s3 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s3 */
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* const9 */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* const9 */
{ 0 } { 0 }
}}, }},
@ -5729,7 +5729,7 @@
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* n */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* n */
{ 0 } { 0 }
}}, }},
{ /* TriCore_MSUB_U_rcr (937) - TriCore_INS_MADD_U - madd.u $d, $s3, $s1, $const9 */ { /* TriCore_MSUB_U_rcr (937) - TriCore_INS_MSUB_U - msub.u $d, $s3, $s1, $const9 */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */
@ -5737,7 +5737,7 @@
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* const9 */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* const9 */
{ 0 } { 0 }
}}, }},
{ /* TriCore_MSUB_U_rrr2 (938) - TriCore_INS_MADD_U - madd.u $d, $s3, $s1, $s2 */ { /* TriCore_MSUB_U_rrr2 (938) - TriCore_INS_MSUB_U - msub.u $d, $s3, $s1, $s2 */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */
@ -5756,8 +5756,8 @@
{ /* TriCore_MSUB_rcr_e (940) - TriCore_INS_MSUB - msub $d, $s3, $s1, $const9 */ { /* TriCore_MSUB_rcr_e (940) - TriCore_INS_MSUB - msub $d, $s3, $s1, $const9 */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s3 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s3 */
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* const9 */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* const9 */
{ 0 } { 0 }
}}, }},
@ -5877,7 +5877,7 @@
}}, }},
{ /* TriCore_MULR_H_rr1_LL2e (956) - TriCore_INS_MULR_H - mulr.h $d, ${s1}, ${s2}ll, $n */ { /* TriCore_MULR_H_rr1_LL2e (956) - TriCore_INS_MULR_H - mulr.h $d, ${s1}, ${s2}ll, $n */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s2 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s2 */
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* n */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* n */
@ -5885,7 +5885,7 @@
}}, }},
{ /* TriCore_MULR_H_rr1_LU2e (957) - TriCore_INS_MULR_H - mulr.h $d, ${s1}, ${s2}lu, $n */ { /* TriCore_MULR_H_rr1_LU2e (957) - TriCore_INS_MULR_H - mulr.h $d, ${s1}, ${s2}lu, $n */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s2 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s2 */
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* n */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* n */
@ -5893,7 +5893,7 @@
}}, }},
{ /* TriCore_MULR_H_rr1_UL2e (958) - TriCore_INS_MULR_H - mulr.h $d, ${s1}, ${s2}ul, $n */ { /* TriCore_MULR_H_rr1_UL2e (958) - TriCore_INS_MULR_H - mulr.h $d, ${s1}, ${s2}ul, $n */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s2 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s2 */
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* n */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* n */
@ -5901,7 +5901,7 @@
}}, }},
{ /* TriCore_MULR_H_rr1_UU2e (959) - TriCore_INS_MULR_H - mulr.h $d, ${s1}, ${s2}uu, $n */ { /* TriCore_MULR_H_rr1_UU2e (959) - TriCore_INS_MULR_H - mulr.h $d, ${s1}, ${s2}uu, $n */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s2 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s2 */
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* n */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* n */
@ -6478,8 +6478,9 @@
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */
{ 0 } { 0 }
}}, }},
{ /* TriCore_RESTORE_sys (1040) - TriCore_INS_RESTORE - restore */ { /* TriCore_RESTORE_sys (1040) - TriCore_INS_RESTORE - restore $s1 */
{ {
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */
{ 0 } { 0 }
}}, }},
{ /* TriCore_RET_sr (1041) - TriCore_INS_RET - ret */ { /* TriCore_RET_sr (1041) - TriCore_INS_RET - ret */
@ -7646,28 +7647,28 @@
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* off10 */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* off10 */
{ 0 } { 0 }
}}, }},
{ /* TriCore_SWAPMSK_W_bo_c (1221) - TriCore_INS_SWAPMSK_W - swapmsk.w $d, [${s1}+c]$off10 */ { /* TriCore_SWAPMSK_W_bo_c (1221) - TriCore_INS_SWAPMSK_W - swapmsk.w [${d}+c]$off10, $s1 */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s1 */
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* off10 */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* off10 */
{ 0 } { 0 }
}}, }},
{ /* TriCore_SWAPMSK_W_bo_pos (1222) - TriCore_INS_SWAPMSK_W - swapmsk.w $s2, [${s1}+]$off10 */ { /* TriCore_SWAPMSK_W_bo_pos (1222) - TriCore_INS_SWAPMSK_W - swapmsk.w [${s2}+]$off10, $s1 */
{ {
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s1 */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s2 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s2 */
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* off10 */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* off10 */
{ 0 } { 0 }
}}, }},
{ /* TriCore_SWAPMSK_W_bo_pre (1223) - TriCore_INS_SWAPMSK_W - swapmsk.w $s2, [+${s1}]$off10 */ { /* TriCore_SWAPMSK_W_bo_pre (1223) - TriCore_INS_SWAPMSK_W - swapmsk.w [+${s2}]$off10, $s1 */
{ {
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s1 */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s2 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s2 */
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* off10 */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* off10 */
{ 0 } { 0 }
}}, }},
{ /* TriCore_SWAPMSK_W_bo_r (1224) - TriCore_INS_SWAPMSK_W - swapmsk.w $d, [${s1}+r] */ { /* TriCore_SWAPMSK_W_bo_r (1224) - TriCore_INS_SWAPMSK_W - swapmsk.w [${d}+r], $s1 */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s1 */
@ -7736,7 +7737,7 @@
{ /* TriCore_SWAP_W_bo_indexed (1234) - TriCore_INS_SWAP_W - swap.w [${s1}+i], $d */ { /* TriCore_SWAP_W_bo_indexed (1234) - TriCore_INS_SWAP_W - swap.w [${s1}+i], $d */
{ {
{ CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* d */ { CS_OP_REG, CS_AC_WRITE, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* d */
{ CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* s1 */ { CS_OP_REG, CS_AC_READ, { CS_DATA_TYPE_i64, CS_DATA_TYPE_LAST } }, /* s1 */
{ CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* off10 */ { CS_OP_IMM, CS_AC_READ, { CS_DATA_TYPE_i32, CS_DATA_TYPE_LAST } }, /* off10 */
{ 0 } { 0 }
}}, }},

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -222,6 +222,10 @@ class ISC_A15A10C<bits<8> op1, string asmstr, Operand TypeC=u8imm>
: SC<op1, (outs), (ins TypeC:$const8), : SC<op1, (outs), (ins TypeC:$const8),
asmstr # " %a15, [%sp]$const8", []>; asmstr # " %a15, [%sp]$const8", []>;
class ISC_D15A10C<bits<8> op1, string asmstr, Operand TypeC=u8imm>
: SC<op1, (outs), (ins TypeC:$const8),
asmstr # " %d15, [%sp]$const8", []>;
class ISC_A10CA15<bits<8> op1, string asmstr, Operand TypeC=u8imm> class ISC_A10CA15<bits<8> op1, string asmstr, Operand TypeC=u8imm>
: SC<op1, (outs), (ins TypeC:$const8), : SC<op1, (outs), (ins TypeC:$const8),
asmstr # " [%sp]$const8, %a15", []>; asmstr # " [%sp]$const8, %a15", []>;
@ -473,6 +477,7 @@ defm ADDS : mIRR_RC<0x0B, 0x02, 0x8B, 0x02, "adds">,
mISRR_s<0x22, "adds">, mISRR_s<0x22, "adds">,
mIH_HU_U<0x0B, 0x62, 0x0B, 0x63, 0x0B, 0x03, "adds">; mIH_HU_U<0x0B, 0x62, 0x0B, 0x63, 0x0B, 0x03, "adds">;
def ADDS_U_rc : IRC<0x8B, 0x03, "adds.u">; def ADDS_U_rc : IRC<0x8B, 0x03, "adds.u">;
def ADDS_B_rr : IRR_dab<0x0B, 0x42, "adds.b">, NsRequires<[HasV110]>;
def ADDSC_A_srrs_v110 : SRRS<0x10, (outs RA:$d), (ins RD:$s2, u2imm:$n), def ADDSC_A_srrs_v110 : SRRS<0x10, (outs RA:$d), (ins RD:$s2, u2imm:$n),
"addsc.a $d, $s2, $n", []> "addsc.a $d, $s2, $n", []>
@ -485,9 +490,8 @@ def ADDSC_A_rr_v110: IRR_dabn<0x01, 0x60, "addsc.a", RA, RA, RD>, NsRequires<[Ha
def ADDSC_A_rr : IRR_dban<0x01, 0x60, "addsc.a", RA, RD, RA>, Requires<[HasV120_UP]>; def ADDSC_A_rr : IRR_dban<0x01, 0x60, "addsc.a", RA, RD, RA>, Requires<[HasV120_UP]>;
def ADDSC_AT_rr_v110 : IRR_dab<0x01, 0x62, "addsc.at", RA, RA>, NsRequires<[HasV110]>; def ADDSC_AT_rr_v110 : IRR_dab<0x01, 0x62, "addsc.at", RA, RA>, NsRequires<[HasV110]>;
def ADDSC_AT_rr : IRR_dba<0x01, 0x62, "addsc.at", RA, RA>, Requires<[HasV120_UP]>; def ADDSC_AT_rr : IRR_dba<0x01, 0x62, "addsc.at", RA, RD, RA>, Requires<[HasV120_UP]>;
def ADDS_B_rr_v110 : IRR_dab<0x0B, 0x42, "adds.b">, Requires<[HasV110]>;
def ADDS_BU_rr_v110 : IRR_dab<0x0B, 0x43, "adds.bu">, Requires<[HasV110]>; def ADDS_BU_rr_v110 : IRR_dab<0x0B, 0x43, "adds.bu">, Requires<[HasV110]>;
defm ADDX : mIRR_RC<0x0B, 0x04, 0x8B, 0x04, "addx">; defm ADDX : mIRR_RC<0x0B, 0x04, 0x8B, 0x04, "addx">;
@ -539,7 +543,7 @@ class IBO_bso<bits<8> op1, bits<6> op2, string asmstr>
asmstr # " [$s2]$off10", []>; asmstr # " [$s2]$off10", []>;
// P[b] (BO) (Bit Reverse Addressing Mode) // P[b] (BO) (Bit Reverse Addressing Mode)
class IBO_r<bits<8> op1, bits<6> op2, string asmstr> class IBO_r<bits<8> op1, bits<6> op2, string asmstr>
: BO<op1, op2, (outs), (ins RA:$s2), : BO<op1, op2, (outs), (ins RP:$s2),
asmstr # " [${s2}+r]", []>; asmstr # " [${s2}+r]", []>;
// P[b], off10 (BO) (Circular Addressing Mode) // P[b], off10 (BO) (Circular Addressing Mode)
class IBO_c<bits<8> op1, bits<6> op2, string asmstr> class IBO_c<bits<8> op1, bits<6> op2, string asmstr>
@ -603,7 +607,7 @@ class IRCR<bits<8> op1, bits<3> op2, string asmstr,
multiclass mIRCR<bits<8>op1, bits<3> op2, bits<8>op3, bits<3> op4, string asmstr>{ multiclass mIRCR<bits<8>op1, bits<3> op2, bits<8>op3, bits<3> op4, string asmstr>{
def _rcr : IRCR<op1, op2, asmstr>; def _rcr : IRCR<op1, op2, asmstr>;
def _rcr_e : IRCR<op3, op4, asmstr, RE, RE, RD, s9imm>, Requires<[HasV120_UP]>; def _rcr_e : IRCR<op3, op4, asmstr, RE, RD, RE, s9imm>, Requires<[HasV120_UP]>;
} }
/// CADD Instructions /// CADD Instructions
@ -1182,7 +1186,7 @@ defm LD_W: mI_LD_<0x85, 0x00, 0x09, 0x29, 0x24, 0x04, 0x14, "ld.w", RD>;
defm LD_W: mI_LD_2_<0x38, 0xA4, 0xF4, 0xC8, "ld.w", RD, "_v110">, NsRequires<[HasV110]>; defm LD_W: mI_LD_2_<0x38, 0xA4, 0xF4, 0xC8, "ld.w", RD, "_v110">, NsRequires<[HasV110]>;
defm LD_W: mI_LD_2_<0x54, 0x44, 0x48, 0x4C, "ld.w", RD>, Requires<[HasV120_UP]>; defm LD_W: mI_LD_2_<0x54, 0x44, 0x48, 0x4C, "ld.w", RD>, Requires<[HasV120_UP]>;
def LD_W_bol : IBOL_RAaO<0x19, "ld.w", RD>; def LD_W_bol : IBOL_RAaO<0x19, "ld.w", RD>;
def LD_W_sc : ISC_A15A10C<0x58, "ld.w">, Requires<[HasV120_UP]>; def LD_W_sc : ISC_D15A10C<0x58, "ld.w">, Requires<[HasV120_UP]>;
def LDLCX_abs : IABS_off18<0x15, 0x02, "ldlcx">; def LDLCX_abs : IABS_off18<0x15, 0x02, "ldlcx">;
@ -1409,9 +1413,9 @@ defm MSUBS_H : mI_MADD_H_MSUB_H_<0xA3, 0x3A, 0x39, 0x38, 0x3B, "msubs.h">;
defm MSUB_Q : mI_MADDsQ_MSUBsQ_<0x63, 0x02, 0x1B, 0x01, 0x19, 0x00, 0x18, 0x05, 0x1D, 0x04, 0x1C, "msub.q">; defm MSUB_Q : mI_MADDsQ_MSUBsQ_<0x63, 0x02, 0x1B, 0x01, 0x19, 0x00, 0x18, 0x05, 0x1D, 0x04, 0x1C, "msub.q">;
defm MSUBS_Q : mI_MADDsQ_MSUBsQ_<0x63, 0x22, 0x3B, 0x21, 0x39, 0x20, 0x38, 0x25, 0x3D, 0x24, 0x3C, "msubs.q">; defm MSUBS_Q : mI_MADDsQ_MSUBsQ_<0x63, 0x22, 0x3B, 0x21, 0x39, 0x20, 0x38, 0x25, 0x3D, 0x24, 0x3C, "msubs.q">;
defm MSUB_U: mIRCR_RRR2<0x33, 0x02, 0x23, 0x68, "madd.u", "", u9imm>, Requires<[HasV120_UP]>; defm MSUB_U: mIRCR_RRR2<0x33, 0x02, 0x23, 0x68, "msub.u", "", u9imm>, Requires<[HasV120_UP]>;
defm MSUBS_U : mIRCR<0x33, 0x04, 0x33, 0x06, "madds.u"> defm MSUBS_U : mIRCR<0x33, 0x04, 0x33, 0x06, "msubs.u">
, mIRRR2<0x23, 0x88, 0x23, 0xE8, "madds.u">; , mIRRR2<0x23, 0x88, 0x23, 0xE8, "msubs.u">;
defm MSUBAD_H : mI_MADD_H_MSUB_H_<0xE3, 0x1A, 0x19, 0x18, 0x1B, "msubad.h", false>; defm MSUBAD_H : mI_MADD_H_MSUB_H_<0xE3, 0x1A, 0x19, 0x18, 0x1B, "msubad.h", false>;
defm MSUBADS_H : mI_MADD_H_MSUB_H_<0xE3, 0x3A, 0x39, 0x38, 0x3B, "msubads.h", false>; defm MSUBADS_H : mI_MADD_H_MSUB_H_<0xE3, 0x3A, 0x39, 0x38, 0x3B, "msubads.h", false>;
@ -1481,10 +1485,10 @@ multiclass mI_MUL_H_<bits<8> pre, bits<10> ll, bits<10> lu, bits<10> ul, bits<10
, bit hasv110=false, bits<8> rr=0, RegisterClass RCd=RE>{ , bit hasv110=false, bits<8> rr=0, RegisterClass RCd=RE>{
if hasv110 then if hasv110 then
def _rr_v110 : IRR_dabn<pre, rr, asmstr, RCd>, NsRequires<[HasV110]>; def _rr_v110 : IRR_dabn<pre, rr, asmstr, RCd>, NsRequires<[HasV110]>;
def _rr1_LL2e : IRR1<pre, ll, asmstr, RE, "", "ll">, Requires<[HasV120_UP]>; def _rr1_LL2e : IRR1<pre, ll, asmstr, RCd, "", "ll">, Requires<[HasV120_UP]>;
def _rr1_LU2e : IRR1<pre, lu, asmstr, RE, "", "lu">, Requires<[HasV120_UP]>; def _rr1_LU2e : IRR1<pre, lu, asmstr, RCd, "", "lu">, Requires<[HasV120_UP]>;
def _rr1_UL2e : IRR1<pre, ul, asmstr, RE, "", "ul">, Requires<[HasV120_UP]>; def _rr1_UL2e : IRR1<pre, ul, asmstr, RCd, "", "ul">, Requires<[HasV120_UP]>;
def _rr1_UU2e : IRR1<pre, uu, asmstr, RE, "", "uu">, Requires<[HasV120_UP]>; def _rr1_UU2e : IRR1<pre, uu, asmstr, RCd, "", "uu">, Requires<[HasV120_UP]>;
} }
defm MUL_H : mI_MUL_H_<0xB3, 0x1A, 0x19, 0x18, 0x1B, "mul.h", true, 0x18>; defm MUL_H : mI_MUL_H_<0xB3, 0x1A, 0x19, 0x18, 0x1B, "mul.h", true, 0x18>;
@ -1582,7 +1586,7 @@ def PARITY_rr_v110 : IRR_a<0x4B, 0x08, "parity">, NsRequires<[HasV110]>;
def POPCNT_W_rr : IRR_a<0x4B, 0x22, "popcnt.w">, NsRequires<[HasV162]>; def POPCNT_W_rr : IRR_a<0x4B, 0x22, "popcnt.w">, NsRequires<[HasV162]>;
def RESTORE_sys : ISYS_0<0x0D, 0x0E, "restore">, Requires<[HasV160_UP]>; def RESTORE_sys : ISYS_1<0x0D, 0x0E, "restore">, Requires<[HasV160_UP]>;
def RET_sr : ISR_0<0x00, 0x09, "ret">; def RET_sr : ISR_0<0x00, 0x09, "ret">;
defm RET : mISYS_0<0x0D, 0x06, 0x0D, 0x05, "ret">; defm RET : mISYS_0<0x0D, 0x06, 0x0D, 0x05, "ret">;
@ -1793,26 +1797,11 @@ def SUBX_rr : IRR_dab<0x0B, 0x0C, "subx">;
def SVLCX_sys : ISYS_0<0x0D, 0x08, "svlcx">; def SVLCX_sys : ISYS_0<0x0D, 0x08, "svlcx">;
// multiclass mIBO_st<bits<8> prefix1, bits<8> prefix2, multiclass mI_SWAP_1<bits<8> prefix_bso_pos_pre, bits<8> prefix_r_c,
// bits<6> bso2, ///_bso
// bits<6> pos_r, ///_pos|_r
// bits<6> pre_c, ///_pre|_c
// string asmstr, RegisterClass RC>{
// def _bo_bso : IBO_bso_st<prefix1, bso2, asmstr, RC>;
// def _bo_pos : IBO_pos_st<prefix1, pos_r, asmstr, RC>;
// def _bo_pre : IBO_pre_st<prefix1, pre_c, asmstr, RC>;
// def _bo_r : IBO_r_st<prefix2, pos_r, asmstr, RC>;
// def _bo_c : IBO_c_st<prefix2, pre_c, asmstr, RC>;
// }
multiclass mI_SWAP_<bits<8> abs1, bits<2> abs2, ///_abs
bits<8> prefix_bso_pos_pre, bits<8> prefix_prefix_r_c,
bits<6> bso, ///_bso bits<6> bso, ///_bso
bits<6> pos_r, ///_pos|_r bits<6> pos_r, ///_pos|_r
bits<6> pre_c, ///_pre|_c bits<6> pre_c, ///_pre|_c
string asmstr, RegisterClass RC=RA>{ string asmstr, RegisterClass RC=RA>{
def _abs : IABS_OR<abs1, abs2, asmstr, RC>;
def _bo_bso: BO<prefix_bso_pos_pre, bso, (outs RC:$d), (ins RA:$s1, s10imm:$off10), def _bo_bso: BO<prefix_bso_pos_pre, bso, (outs RC:$d), (ins RA:$s1, s10imm:$off10),
asmstr # " [$s1]$off10, $d", []>; asmstr # " [$s1]$off10, $d", []>;
def _bo_pos: BO<prefix_bso_pos_pre, pos_r, (outs), (ins RC:$s1, RA:$s2, s10imm:$off10), def _bo_pos: BO<prefix_bso_pos_pre, pos_r, (outs), (ins RC:$s1, RA:$s2, s10imm:$off10),
@ -1820,18 +1809,28 @@ multiclass mI_SWAP_<bits<8> abs1, bits<2> abs2, ///_abs
def _bo_pre: BO<prefix_bso_pos_pre, pre_c, (outs), (ins RC:$s1, RA:$s2, s10imm:$off10), def _bo_pre: BO<prefix_bso_pos_pre, pre_c, (outs), (ins RC:$s1, RA:$s2, s10imm:$off10),
asmstr # " [+${s2}]$off10, $s1", []>; asmstr # " [+${s2}]$off10, $s1", []>;
def _bo_r : BO<prefix_prefix_r_c, pos_r, (outs RP:$d), (ins RC:$s1), def _bo_r : BO<prefix_r_c, pos_r, (outs RP:$d), (ins RC:$s1),
asmstr # " [${d}+r], $s1", []>; asmstr # " [${d}+r], $s1", []>;
def _bo_c : BO<prefix_prefix_r_c, pre_c, (outs RP:$d), (ins RC:$s1, s10imm:$off10), def _bo_c : BO<prefix_r_c, pre_c, (outs RP:$d), (ins RC:$s1, s10imm:$off10),
asmstr # " [${d}+c]$off10, $s1", []>; asmstr # " [${d}+c]$off10, $s1", []>;
} }
multiclass mI_SWAP_<bits<8> abs1, bits<2> abs2, ///_abs
bits<8> prefix_bso_pos_pre, bits<8> prefix_r_c,
bits<6> bso, ///_bso
bits<6> pos_r, ///_pos|_r
bits<6> pre_c, ///_pre|_c
string asmstr, RegisterClass RC=RA>{
def _abs: IABS_OR<abs1, abs2, asmstr, RC>;
defm "" : mI_SWAP_1<prefix_bso_pos_pre, prefix_r_c, bso, pos_r, pre_c, asmstr, RC>;
}
defm SWAP_A : mI_SWAP_<0xE5, 0x02, 0x49, 0x69, 0x22, 0x02, 0x12, "swap.a">, NsRequires<[HasV110]>; defm SWAP_A : mI_SWAP_<0xE5, 0x02, 0x49, 0x69, 0x22, 0x02, 0x12, "swap.a">, NsRequires<[HasV110]>;
defm SWAP_W : mI_SWAP_<0xE5, 0x00, 0x49, 0x69, 0x20, 0x00, 0x10, "swap.w">; defm SWAP_W : mI_SWAP_<0xE5, 0x00, 0x49, 0x69, 0x20, 0x00, 0x10, "swap.w">;
def SWAP_W_bo_indexed: BO<0x69, 0x20, (outs RD:$d), (ins RA:$s1, s10imm:$off10), def SWAP_W_bo_indexed: BO<0x69, 0x20, (outs RD:$d), (ins RP:$s1, s10imm:$off10),
"swap.w [${s1}+i], $d", []>, Requires<[HasV160_UP]>; "swap.w [${s1}+i], $d", []>, Requires<[HasV160_UP]>;
defm SWAPMSK_W : mIBO_st<0x49, 0x69, 0x22, 0x02, 0x12, "swapmsk.w", RE>, Requires<[HasV161_UP]>; defm SWAPMSK_W : mI_SWAP_1<0x49, 0x69, 0x22, 0x02, 0x12, "swapmsk.w", RE>, Requires<[HasV161_UP]>;
def SYSCALL_rc : IRC_C<0xAD, 0x04, "syscall">; def SYSCALL_rc : IRC_C<0xAD, 0x04, "syscall">;

View File

@ -256,10 +256,12 @@
TriCore_INS_MSUBR_Q, TriCore_INS_MSUBR_Q,
TriCore_INS_MSUBS_H, TriCore_INS_MSUBS_H,
TriCore_INS_MSUBS_Q, TriCore_INS_MSUBS_Q,
TriCore_INS_MSUBS_U,
TriCore_INS_MSUBS, TriCore_INS_MSUBS,
TriCore_INS_MSUB_F, TriCore_INS_MSUB_F,
TriCore_INS_MSUB_H, TriCore_INS_MSUB_H,
TriCore_INS_MSUB_Q, TriCore_INS_MSUB_Q,
TriCore_INS_MSUB_U,
TriCore_INS_MSUB, TriCore_INS_MSUB,
TriCore_INS_MTCR, TriCore_INS_MTCR,
TriCore_INS_MULMS_H, TriCore_INS_MULMS_H,

View File

@ -45,7 +45,6 @@
0x69, 0x00, 0xc0, 0x04 = cmpswap.w [%p0+c]0, %e0 0x69, 0x00, 0xc0, 0x04 = cmpswap.w [%p0+c]0, %e0
0x49, 0x00, 0xc0, 0x00 = cmpswap.w [%a0+]0, %e0 0x49, 0x00, 0xc0, 0x00 = cmpswap.w [%a0+]0, %e0
0x49, 0x00, 0xc0, 0x04 = cmpswap.w [+%a0]0, %e0 0x49, 0x00, 0xc0, 0x04 = cmpswap.w [+%a0]0, %e0
0x4b, 0x00, 0x30, 0x00 = crc32 %d0, %d0, %d0
0x0d, 0x00, 0xc0, 0x03 = disable %d0 0x0d, 0x00, 0xc0, 0x03 = disable %d0
0x4b, 0x00, 0x01, 0x02 = div %e0, %d0, %d0 0x4b, 0x00, 0x01, 0x02 = div %e0, %d0, %d0
0x4b, 0x00, 0x11, 0x02 = div.u %e0, %d0, %d0 0x4b, 0x00, 0x11, 0x02 = div.u %e0, %d0, %d0

View File

@ -48,7 +48,6 @@
0x4b, 0x00, 0x30, 0x00 = crc32b.w %d0, %d0, %d0 0x4b, 0x00, 0x30, 0x00 = crc32b.w %d0, %d0, %d0
0x4b, 0x00, 0x70, 0x00 = crc32l.w %d0, %d0, %d0 0x4b, 0x00, 0x70, 0x00 = crc32l.w %d0, %d0, %d0
0x6b, 0x00, 0x10, 0x00 = crcn %d0, %d0, %d0, %d0 0x6b, 0x00, 0x10, 0x00 = crcn %d0, %d0, %d0, %d0
0x4b, 0x00, 0x30, 0x00 = crc32 %d0, %d0, %d0
0x0d, 0x00, 0xc0, 0x03 = disable %d0 0x0d, 0x00, 0xc0, 0x03 = disable %d0
0x4b, 0x00, 0x01, 0x02 = div %e0, %d0, %d0 0x4b, 0x00, 0x01, 0x02 = div %e0, %d0, %d0
0x4b, 0x00, 0x11, 0x02 = div.u %e0, %d0, %d0 0x4b, 0x00, 0x11, 0x02 = div.u %e0, %d0, %d0