master
inc 125 lines 6.68 KB
Raw
1 /* XTheadBa */
2 OP(th_addsl, "th.addsl", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
3
4 /* XTheadBb */
5 OP(th_srri, "th.srri", rv_codec_r2_imm6, rv_fmt_rd_rs1_imm)
6 OP(th_srriw, "th.srriw", rv_codec_r2_imm5, rv_fmt_rd_rs1_imm)
7 OP(th_ext, "th.ext", rv_codec_r2_immhl, rv_fmt_rd_rs1_immh_imml)
8 OP(th_extu, "th.extu", rv_codec_r2_immhl, rv_fmt_rd_rs1_immh_imml)
9 OP(th_ff0, "th.ff0", rv_codec_r2, rv_fmt_rd_rs1)
10 OP(th_ff1, "th.ff1", rv_codec_r2, rv_fmt_rd_rs1)
11 OP(th_rev, "th.rev", rv_codec_r2, rv_fmt_rd_rs1)
12 OP(th_revw, "th.revw", rv_codec_r2, rv_fmt_rd_rs1)
13 OP(th_tstnbz, "th.tstnbz", rv_codec_r2, rv_fmt_rd_rs1)
14
15 /* XTheadBs */
16 OP(th_tst, "th.tst", rv_codec_r2_imm6, rv_fmt_rd_rs1_imm)
17
18 /* XTheadCmo */
19 OP(th_dcache_call, "th.dcache.call", rv_codec_none, rv_fmt_none)
20 OP(th_dcache_ciall, "th.dcache.ciall", rv_codec_none, rv_fmt_none)
21 OP(th_dcache_iall, "th.dcache.iall", rv_codec_none, rv_fmt_none)
22 OP(th_dcache_cpa, "th.dcache.cpa", rv_codec_r, rv_fmt_rs1)
23 OP(th_dcache_cipa, "th.dcache.cipa", rv_codec_r, rv_fmt_rs1)
24 OP(th_dcache_ipa, "th.dcache.ipa", rv_codec_r, rv_fmt_rs1)
25 OP(th_dcache_cva, "th.dcache.cva", rv_codec_r, rv_fmt_rs1)
26 OP(th_dcache_civa, "th.dcache.civa", rv_codec_r, rv_fmt_rs1)
27 OP(th_dcache_iva, "th.dcache.iva", rv_codec_r, rv_fmt_rs1)
28 OP(th_dcache_csw, "th.dcache.csw", rv_codec_r, rv_fmt_rs1)
29 OP(th_dcache_cisw, "th.dcache.cisw", rv_codec_r, rv_fmt_rs1)
30 OP(th_dcache_isw, "th.dcache.isw", rv_codec_r, rv_fmt_rs1)
31 OP(th_dcache_cpal1, "th.dcache.cpal1", rv_codec_r, rv_fmt_rs1)
32 OP(th_dcache_cval1, "th.dcache.cval1", rv_codec_r, rv_fmt_rs1)
33 OP(th_icache_iall, "th.icache.iall", rv_codec_none, rv_fmt_none)
34 OP(th_icache_ialls, "th.icache.ialls", rv_codec_none, rv_fmt_none)
35 OP(th_icache_ipa, "th.icache.ipa", rv_codec_r, rv_fmt_rs1)
36 OP(th_icache_iva, "th.icache.iva", rv_codec_r, rv_fmt_rs1)
37 OP(th_l2cache_call, "th.l2cache.call", rv_codec_none, rv_fmt_none)
38 OP(th_l2cache_ciall, "th.l2cache.ciall", rv_codec_none, rv_fmt_none)
39 OP(th_l2cache_iall, "th.l2cache.iall", rv_codec_none, rv_fmt_none)
40
41 /* XTheadCondMov */
42 OP(th_mveqz, "th.mveqz", rv_codec_r, rv_fmt_rd_rs1_rs2)
43 OP(th_mvnez, "th.mvnez", rv_codec_r, rv_fmt_rd_rs1_rs2)
44
45 /* XTheadFMemIdx */
46 OP(th_flrd, "th.flrd", rv_codec_r_imm2, rv_fmt_frd_rs1_rs2_imm)
47 OP(th_flrw, "th.flrw", rv_codec_r_imm2, rv_fmt_frd_rs1_rs2_imm)
48 OP(th_flurd, "th.flurd", rv_codec_r_imm2, rv_fmt_frd_rs1_rs2_imm)
49 OP(th_flurw, "th.flurw", rv_codec_r_imm2, rv_fmt_frd_rs1_rs2_imm)
50 OP(th_fsrd, "th.fsrd", rv_codec_r_imm2, rv_fmt_frd_rs1_rs2_imm)
51 OP(th_fsrw, "th.fsrw", rv_codec_r_imm2, rv_fmt_frd_rs1_rs2_imm)
52 OP(th_fsurd, "th.fsurd", rv_codec_r_imm2, rv_fmt_frd_rs1_rs2_imm)
53 OP(th_fsurw, "th.fsurw", rv_codec_r_imm2, rv_fmt_frd_rs1_rs2_imm)
54
55 /* XTheadFmv */
56 OP(th_fmv_hw_x, "th.fmv.hw.x", rv_codec_r, rv_fmt_rd_frs1)
57 OP(th_fmv_x_hw, "th.fmv.x.hw", rv_codec_r, rv_fmt_rd_frs1)
58
59 /* XTheadMac */
60 OP(th_mula, "th.mula", rv_codec_r, rv_fmt_rd_rs1_rs2)
61 OP(th_mulaw, "th.mulaw", rv_codec_r, rv_fmt_rd_rs1_rs2)
62 OP(th_mulah, "th.mulah", rv_codec_r, rv_fmt_rd_rs1_rs2)
63 OP(th_muls, "th.muls", rv_codec_r, rv_fmt_rd_rs1_rs2)
64 OP(th_mulsw, "th.mulsw", rv_codec_r, rv_fmt_rd_rs1_rs2)
65 OP(th_mulsh, "th.mulsh", rv_codec_r, rv_fmt_rd_rs1_rs2)
66
67 /* XTheadMemIdx */
68 OP(th_lbia, "th.lbia", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
69 OP(th_lbib, "th.lbib", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
70 OP(th_lbuia, "th.lbuia", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
71 OP(th_lbuib, "th.lbuib", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
72 OP(th_lhia, "th.lhia", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
73 OP(th_lhib, "th.lhib", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
74 OP(th_lhuia, "th.lhuia", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
75 OP(th_lhuib, "th.lhuib", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
76 OP(th_lwia, "th.lwia", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
77 OP(th_lwib, "th.lwib", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
78 OP(th_lwuia, "th.lwuia", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
79 OP(th_lwuib, "th.lwuib", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
80 OP(th_ldia, "th.ldia", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
81 OP(th_ldib, "th.ldib", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
82 OP(th_sbia, "th.sbia", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
83 OP(th_sbib, "th.sbib", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
84 OP(th_shia, "th.shia", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
85 OP(th_shib, "th.shib", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
86 OP(th_swia, "th.swia", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
87 OP(th_swib, "th.swib", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
88 OP(th_sdia, "th.sdia", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
89 OP(th_sdib, "th.sdib", rv_codec_r2_imm2_imm5, rv_fmt_rd_rs1_immh_imml_addr)
90 OP(th_lrb, "th.lrb", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
91 OP(th_lrbu, "th.lrbu", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
92 OP(th_lrh, "th.lrh", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
93 OP(th_lrhu, "th.lrhu", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
94 OP(th_lrw, "th.lrw", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
95 OP(th_lrwu, "th.lrwu", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
96 OP(th_lrd, "th.lrd", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
97 OP(th_srb, "th.srb", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
98 OP(th_srh, "th.srh", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
99 OP(th_srw, "th.srw", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
100 OP(th_srd, "th.srd", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
101 OP(th_lurb, "th.lurb", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
102 OP(th_lurbu, "th.lurbu", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
103 OP(th_lurh, "th.lurh", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
104 OP(th_lurhu, "th.lurhu", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
105 OP(th_lurw, "th.lurw", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
106 OP(th_lurwu, "th.lurwu", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
107 OP(th_lurd, "th.lurd", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
108 OP(th_surb, "th.surb", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
109 OP(th_surh, "th.surh", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
110 OP(th_surw, "th.surw", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
111 OP(th_surd, "th.surd", rv_codec_r_imm2, rv_fmt_rd_rs1_rs2_imm)
112
113 /* XTheadMemPair */
114 OP(th_ldd, "th.ldd", rv_codec_r_imm2, rv_fmt_rd2_imm)
115 OP(th_lwd, "th.lwd", rv_codec_r_imm2, rv_fmt_rd2_imm)
116 OP(th_lwud, "th.lwud", rv_codec_r_imm2, rv_fmt_rd2_imm)
117 OP(th_sdd, "th.sdd", rv_codec_r_imm2, rv_fmt_rd2_imm)
118 OP(th_swd, "th.swd", rv_codec_r_imm2, rv_fmt_rd2_imm)
119
120 /* XTheadSync */
121 OP(th_sfence_vmas, "th.sfence.vmas", rv_codec_r, rv_fmt_rs1_rs2)
122 OP(th_sync, "th.sync", rv_codec_none, rv_fmt_none)
123 OP(th_sync_i, "th.sync.i", rv_codec_none, rv_fmt_none)
124 OP(th_sync_is, "th.sync.is", rv_codec_none, rv_fmt_none)
125 OP(th_sync_s, "th.sync.s", rv_codec_none, rv_fmt_none)