You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
289 B
13 lines
289 B
require_extension('P');
|
|
require_rv64;
|
|
int64_t s1 = (int64_t)RS1;
|
|
int64_t s2 = (int64_t)RS2;
|
|
|
|
sreg_t sat_w0 = P_SAT(32, s1);
|
|
if (sat_w0 != s1) P.set_vxsat();
|
|
|
|
sreg_t sat_w1 = P_SAT(32, s2);
|
|
if (sat_w1 != s2) P.set_vxsat();
|
|
|
|
WRITE_RD(((uint64_t)(uint32_t)sat_w1 << 32) | (uint32_t)sat_w0);
|
|
|
|
|