aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/paas_hx.h
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2026-04-29 10:58:27 -0700
committerGitHub <noreply@github.com>2026-04-29 10:58:27 -0700
commitb21cccdc5f4680d9c13a6bd7d9d00b75aea3cbb5 (patch)
tree87c74cdee88663a7d7775799fc0006875a651b4b /riscv/insns/paas_hx.h
parent632777d37139298f0af1ee8d2a001f3ab0bde98c (diff)
parentf2aa295a31f6d0de376e807b2dfab5a62418c8dc (diff)
downloadriscv-isa-sim-master.tar.gz
riscv-isa-sim-master.tar.bz2
riscv-isa-sim-master.zip
Merge pull request #2246 from chihminchao/rvp-rv32-rv64HEADmaster
rvp for rv32/rv64
Diffstat (limited to 'riscv/insns/paas_hx.h')
-rw-r--r--riscv/insns/paas_hx.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/riscv/insns/paas_hx.h b/riscv/insns/paas_hx.h
new file mode 100644
index 00000000..5c393a85
--- /dev/null
+++ b/riscv/insns/paas_hx.h
@@ -0,0 +1,5 @@
+P_CROSS_LOOP(16, {
+ p_rd = (p_rs1 + p_rs2) >> 1;
+}, {
+ p_rd = (p_rs1 - p_rs2) >> 1;
+}) \ No newline at end of file