diff options
Diffstat (limited to 'riscv/insns/vsaddu_vi.h')
-rw-r--r-- | riscv/insns/vsaddu_vi.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/riscv/insns/vsaddu_vi.h b/riscv/insns/vsaddu_vi.h new file mode 100644 index 0000000..9d376cc --- /dev/null +++ b/riscv/insns/vsaddu_vi.h @@ -0,0 +1,11 @@ +// vsaddu vd, vs2, zimm5 +VI_VI_ULOOP +({ + bool sat = false; + vd = vs2 + simm5; + + sat = vd < vs2; + vd |= -(vd < vs2); + + P.VU.vxsat |= sat; +}) |