Skip to content

Commit adacda4

Browse files
authored
Merge pull request #1749 from YenHaoChen/pr-vnclip_wx
vnclip.wx: Check if there is any vector extension before using vector CSRs
2 parents 4703ad9 + 54a5e38 commit adacda4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

riscv/insns/vnclip_wx.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// vnclip: vd[i] = clip(round(vs2[i] + rnd) >> rs1[i])
2-
VRM xrm = P.VU.get_vround_mode();
3-
int64_t int_max = INT64_MAX >> (64 - P.VU.vsew);
4-
int64_t int_min = INT64_MIN >> (64 - P.VU.vsew);
52
VI_VX_LOOP_NARROW
63
({
4+
VRM xrm = P.VU.get_vround_mode();
5+
int64_t int_max = INT64_MAX >> (64 - P.VU.vsew);
6+
int64_t int_min = INT64_MIN >> (64 - P.VU.vsew);
77
int128_t result = vs2;
88
unsigned shift = rs1 & ((sew * 2) - 1);
99

0 commit comments

Comments
 (0)