arch-riscv: Merge rv32 and rv64 version of xperm4 and xperm8

Remove unessential postfix like '_32' and '_64' from mnemonic

Change-Id: I83d47eeccd04fe61ac8ee0addd7221abbdcefbd1
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/70600
Reviewed-by: Yu-hsin Wang <yuhsingw@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
This commit is contained in:
Roger Chang
2023-05-13 23:09:48 +08:00
parent 5fa81af8c6
commit 2579bacf06

View File

@@ -1124,14 +1124,13 @@ decode QUADRANT default Unknown::unknown() {
0x10: sh1add({{
Rd = rvSext((Rs1 << 1) + Rs2);
}});
0x14: decode RVTYPE {
0x0: xperm4_32({{
Rd_sw = _rvk_emu_xperm4_32(Rs1_sw, Rs2_sw);
}});
0x1: xperm4_64({{
0x14: xperm4({{
if (machInst.rv_type == RV32) {
Rd_sd = _rvk_emu_xperm4_32(Rs1_sd, Rs2_sd);
} else {
Rd_sd = _rvk_emu_xperm4_64(Rs1_sd, Rs2_sd);
}});
}
}
}});
}
0x3: decode FUNCT7 {
0x0: sltu({{
@@ -1181,14 +1180,13 @@ decode QUADRANT default Unknown::unknown() {
0x10: sh2add({{
Rd = rvSext((Rs1 << 2) + Rs2);
}});
0x14: decode RVTYPE {
0x0: xperm8_32({{
Rd_sw = _rvk_emu_xperm8_32(Rs1_sw, Rs2_sw);
}});
0x1: xperm8_64({{
0x14: xperm8({{
if (machInst.rv_type == RV32) {
Rd_sd = _rvk_emu_xperm8_32(Rs1_sd, Rs2_sd);
} else {
Rd_sd = _rvk_emu_xperm8_64(Rs1_sd, Rs2_sd);
}});
}
}
}});
0x20: xnor({{
Rd = rvSext(~(Rs1 ^ Rs2));
}});