aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/sclip32.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/sclip32.h')
-rw-r--r--riscv/insns/sclip32.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/riscv/insns/sclip32.h b/riscv/insns/sclip32.h
deleted file mode 100644
index ff1ba28..0000000
--- a/riscv/insns/sclip32.h
+++ /dev/null
@@ -1,14 +0,0 @@
-require_vector_vs;
-P_I_LOOP(32, 5, {
- int64_t int_max = INT64_MAX >> (64 - (imm5u + 1));
- int64_t int_min = INT64_MIN >> (64 - (imm5u + 1));
- pd = ps1;
-
- if (ps1 > int_max) {
- pd = int_max;
- P_SET_OV(1);
- } else if (ps1 < int_min) {
- pd = int_min;
- P_SET_OV(1);
- }
-})