diff options
Diffstat (limited to 'riscv')
324 files changed, 324 insertions, 324 deletions
diff --git a/riscv/insns/add16.h b/riscv/insns/add16.h index 53b6be8..fae4316 100644 --- a/riscv/insns/add16.h +++ b/riscv/insns/add16.h @@ -1,3 +1,3 @@ P_LOOP(16, { pd = ps1 + ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/add32.h b/riscv/insns/add32.h index 7fe7c96..ca544ce 100644 --- a/riscv/insns/add32.h +++ b/riscv/insns/add32.h @@ -1,4 +1,4 @@ require_rv64; P_LOOP(32, { pd = ps1 + ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/add64.h b/riscv/insns/add64.h index eb076b2..0968656 100644 --- a/riscv/insns/add64.h +++ b/riscv/insns/add64.h @@ -1,3 +1,3 @@ P_64_PROFILE({ rd = rs1 + rs2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/add8.h b/riscv/insns/add8.h index e5e1cb0..bb54a7b 100644 --- a/riscv/insns/add8.h +++ b/riscv/insns/add8.h @@ -1,3 +1,3 @@ P_LOOP(8, { pd = ps1 + ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/ave.h b/riscv/insns/ave.h index 15bf863..84b0db3 100644 --- a/riscv/insns/ave.h +++ b/riscv/insns/ave.h @@ -2,4 +2,4 @@ require_extension('P'); sreg_t rs1 = RS1; sreg_t rs2 = RS2; sreg_t carry = (rs1 & 1) | (rs2 & 1); -WRITE_RD(sext_xlen((rs1 >> 1) + (rs2 >> 1) + carry));
\ No newline at end of file +WRITE_RD(sext_xlen((rs1 >> 1) + (rs2 >> 1) + carry)); diff --git a/riscv/insns/bitrev.h b/riscv/insns/bitrev.h index 939f5a4..d8c36c6 100644 --- a/riscv/insns/bitrev.h +++ b/riscv/insns/bitrev.h @@ -9,4 +9,4 @@ for (size_t i = 0; i <= msb; i++) { n >>= 1; } -WRITE_RD(sext_xlen(rev));
\ No newline at end of file +WRITE_RD(sext_xlen(rev)); diff --git a/riscv/insns/bitrevi.h b/riscv/insns/bitrevi.h index d5069ef..30d1e7f 100644 --- a/riscv/insns/bitrevi.h +++ b/riscv/insns/bitrevi.h @@ -10,4 +10,4 @@ for (size_t i = 0; i <= msb; i++) { n >>= 1; } -WRITE_RD(sext_xlen(rev));
\ No newline at end of file +WRITE_RD(sext_xlen(rev)); diff --git a/riscv/insns/bpick.h b/riscv/insns/bpick.h index fc83086..866606b 100644 --- a/riscv/insns/bpick.h +++ b/riscv/insns/bpick.h @@ -3,4 +3,4 @@ reg_t rc = RS3; reg_t rs1 = RS1; reg_t rs2 = RS2; -WRITE_RD(sext_xlen((rs1 & rc) | (rs2 & ~rc)));
\ No newline at end of file +WRITE_RD(sext_xlen((rs1 & rc) | (rs2 & ~rc))); diff --git a/riscv/insns/clo16.h b/riscv/insns/clo16.h index cc714ac..9da6599 100644 --- a/riscv/insns/clo16.h +++ b/riscv/insns/clo16.h @@ -8,4 +8,4 @@ P_ONE_LOOP(16, { if ((ps1 & 0xC000) == 0) { pd += 2; ps1 <<= 2; } if ((ps1 & 0x8000) == 0) { pd += 1; } } -})
\ No newline at end of file +}) diff --git a/riscv/insns/clo32.h b/riscv/insns/clo32.h index 2f81a25..431bb0e 100644 --- a/riscv/insns/clo32.h +++ b/riscv/insns/clo32.h @@ -9,4 +9,4 @@ P_ONE_LOOP(32, { if ((ps1 & 0xC0000000) == 0) { pd += 2; ps1 <<= 2; } if ((ps1 & 0x80000000) == 0) { pd += 1; } } -})
\ No newline at end of file +}) diff --git a/riscv/insns/clo8.h b/riscv/insns/clo8.h index 1009b39..2581ade 100644 --- a/riscv/insns/clo8.h +++ b/riscv/insns/clo8.h @@ -7,4 +7,4 @@ P_ONE_LOOP(8, { if ((ps1 & 0xC0) == 0) { pd += 2; ps1 <<= 2; } if ((ps1 & 0x80) == 0) { pd += 1; } } -})
\ No newline at end of file +}) diff --git a/riscv/insns/clrs16.h b/riscv/insns/clrs16.h index c9362a6..6541262 100644 --- a/riscv/insns/clrs16.h +++ b/riscv/insns/clrs16.h @@ -9,4 +9,4 @@ P_ONE_LOOP(16, { if ((ps1 & 0x8000) == 0) { pd += 1; } } pd -= 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/clrs32.h b/riscv/insns/clrs32.h index 55fc4f3..c75db18 100644 --- a/riscv/insns/clrs32.h +++ b/riscv/insns/clrs32.h @@ -10,4 +10,4 @@ P_ONE_LOOP(32, { if ((ps1 & 0x80000000) == 0) { pd += 1; } } pd -= 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/clrs8.h b/riscv/insns/clrs8.h index 071982c..f6f8298 100644 --- a/riscv/insns/clrs8.h +++ b/riscv/insns/clrs8.h @@ -8,4 +8,4 @@ P_ONE_LOOP(8, { if ((ps1 & 0x80) == 0) { pd += 1; } } pd -= 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/clz16.h b/riscv/insns/clz16.h index e4e5601..a129d59 100644 --- a/riscv/insns/clz16.h +++ b/riscv/insns/clz16.h @@ -7,4 +7,4 @@ P_ONE_LOOP(16, { if ((ps1 & 0xC000) == 0) { pd += 2; ps1 <<= 2; } if ((ps1 & 0x8000) == 0) { pd += 1; } } -})
\ No newline at end of file +}) diff --git a/riscv/insns/clz32.h b/riscv/insns/clz32.h index 0c36cd2..2268646 100644 --- a/riscv/insns/clz32.h +++ b/riscv/insns/clz32.h @@ -8,4 +8,4 @@ P_ONE_LOOP(32, { if ((ps1 & 0xC0000000) == 0) { pd += 2; ps1 <<= 2; } if ((ps1 & 0x80000000) == 0) { pd += 1; } } -})
\ No newline at end of file +}) diff --git a/riscv/insns/clz8.h b/riscv/insns/clz8.h index 4e56b24..78ff6b7 100644 --- a/riscv/insns/clz8.h +++ b/riscv/insns/clz8.h @@ -6,4 +6,4 @@ P_ONE_LOOP(8, { if ((ps1 & 0xC0) == 0) { pd += 2; ps1 <<= 2; } if ((ps1 & 0x80) == 0) { pd += 1; } } -})
\ No newline at end of file +}) diff --git a/riscv/insns/cmpeq16.h b/riscv/insns/cmpeq16.h index 75c0c98..4fb6faa 100644 --- a/riscv/insns/cmpeq16.h +++ b/riscv/insns/cmpeq16.h @@ -1,3 +1,3 @@ P_LOOP(16, { pd = (ps1 == ps2) ? -1 : 0; -})
\ No newline at end of file +}) diff --git a/riscv/insns/cmpeq8.h b/riscv/insns/cmpeq8.h index f282a55..fba1bf6 100644 --- a/riscv/insns/cmpeq8.h +++ b/riscv/insns/cmpeq8.h @@ -1,3 +1,3 @@ P_LOOP(8, { pd = (ps1 == ps2) ? -1 : 0; -})
\ No newline at end of file +}) diff --git a/riscv/insns/cras16.h b/riscv/insns/cras16.h index 4392edf..6717e09 100644 --- a/riscv/insns/cras16.h +++ b/riscv/insns/cras16.h @@ -2,4 +2,4 @@ P_CROSS_LOOP(16, { pd = ps1 + ps2; }, { pd = ps1 - ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/cras32.h b/riscv/insns/cras32.h index 0604809..8f53e98 100644 --- a/riscv/insns/cras32.h +++ b/riscv/insns/cras32.h @@ -3,4 +3,4 @@ P_CROSS_LOOP(32, { pd = ps1 + ps2; }, { pd = ps1 - ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/crsa16.h b/riscv/insns/crsa16.h index 7ae0ca8..2c1997a 100644 --- a/riscv/insns/crsa16.h +++ b/riscv/insns/crsa16.h @@ -2,4 +2,4 @@ P_CROSS_LOOP(16, { pd = ps1 - ps2; }, { pd = ps1 + ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/crsa32.h b/riscv/insns/crsa32.h index 6d423a8..4290e9e 100644 --- a/riscv/insns/crsa32.h +++ b/riscv/insns/crsa32.h @@ -3,4 +3,4 @@ P_CROSS_LOOP(32, { pd = (int64_t)ps1 - ps2; }, { pd = (int64_t)ps1 + ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/insb.h b/riscv/insns/insb.h index 4a98235..4f50110 100644 --- a/riscv/insns/insb.h +++ b/riscv/insns/insb.h @@ -1,4 +1,4 @@ require_extension('P'); reg_t bpos = insn.p_imm3(); require(bpos < (unsigned long)xlen/8); // imm[2] == 1 is illegal on rv32 -WRITE_RD(sext_xlen(set_field(RD, make_mask64(bpos * 8, 8), P_B(RS1, 0))));
\ No newline at end of file +WRITE_RD(sext_xlen(set_field(RD, make_mask64(bpos * 8, 8), P_B(RS1, 0)))); diff --git a/riscv/insns/kabs16.h b/riscv/insns/kabs16.h index f2b9472..376e921 100644 --- a/riscv/insns/kabs16.h +++ b/riscv/insns/kabs16.h @@ -6,4 +6,4 @@ P_ONE_LOOP(16, { } else if (ps1 < 0) { pd = - ps1; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/kabs32.h b/riscv/insns/kabs32.h index 84f0cdf..9b0c227 100644 --- a/riscv/insns/kabs32.h +++ b/riscv/insns/kabs32.h @@ -7,4 +7,4 @@ P_ONE_LOOP(32, { } else if (ps1 < 0) { pd = - ps1; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/kabs8.h b/riscv/insns/kabs8.h index 51ee04d..df42202 100644 --- a/riscv/insns/kabs8.h +++ b/riscv/insns/kabs8.h @@ -6,4 +6,4 @@ P_ONE_LOOP(8, { } else if (ps1 < 0) { pd = - ps1; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/kabsw.h b/riscv/insns/kabsw.h index 677d51e..ce0d786 100644 --- a/riscv/insns/kabsw.h +++ b/riscv/insns/kabsw.h @@ -6,4 +6,4 @@ if (rs1 == INT32_MIN) { P_SET_OV(1); } -WRITE_RD(sext_xlen(rs1 >= 0 ? rs1 : -rs1));
\ No newline at end of file +WRITE_RD(sext_xlen(rs1 >= 0 ? rs1 : -rs1)); diff --git a/riscv/insns/kadd16.h b/riscv/insns/kadd16.h index b557e9a..5fd2009 100644 --- a/riscv/insns/kadd16.h +++ b/riscv/insns/kadd16.h @@ -2,4 +2,4 @@ P_LOOP(16, { bool sat = false; pd = (sat_add<int16_t, uint16_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kadd32.h b/riscv/insns/kadd32.h index 462e106..d0c53f5 100644 --- a/riscv/insns/kadd32.h +++ b/riscv/insns/kadd32.h @@ -3,4 +3,4 @@ P_LOOP(32, { bool sat = false; pd = (sat_add<int32_t, uint32_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kadd64.h b/riscv/insns/kadd64.h index e99b960..eddc078 100644 --- a/riscv/insns/kadd64.h +++ b/riscv/insns/kadd64.h @@ -2,4 +2,4 @@ P_64_PROFILE({ bool sat = false; rd = (sat_add<int64_t, uint64_t>(rs1, rs2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kadd8.h b/riscv/insns/kadd8.h index e004a02..d4c6632 100644 --- a/riscv/insns/kadd8.h +++ b/riscv/insns/kadd8.h @@ -2,4 +2,4 @@ P_LOOP(8, { bool sat = false; pd = (sat_add<int8_t, uint8_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kaddh.h b/riscv/insns/kaddh.h index e81219b..b0532fb 100644 --- a/riscv/insns/kaddh.h +++ b/riscv/insns/kaddh.h @@ -1,4 +1,4 @@ require_extension('P'); sreg_t res = (sreg_t)P_SW(RS1, 0) + (sreg_t)P_SW(RS2, 0); P_SAT(res, 16); -WRITE_RD(sext_xlen((int16_t)res));
\ No newline at end of file +WRITE_RD(sext_xlen((int16_t)res)); diff --git a/riscv/insns/kaddw.h b/riscv/insns/kaddw.h index 9b84c09..1f37c74 100644 --- a/riscv/insns/kaddw.h +++ b/riscv/insns/kaddw.h @@ -1,4 +1,4 @@ require_extension('P'); sreg_t res = (sreg_t)P_SW(RS1, 0) + (sreg_t)P_SW(RS2, 0); P_SAT(res, 32); -WRITE_RD(sext32(res));
\ No newline at end of file +WRITE_RD(sext32(res)); diff --git a/riscv/insns/kcras16.h b/riscv/insns/kcras16.h index 81bba89..e89ac4d 100644 --- a/riscv/insns/kcras16.h +++ b/riscv/insns/kcras16.h @@ -6,4 +6,4 @@ P_CROSS_ULOOP(16, { bool sat = false; pd = (sat_sub<int16_t, uint16_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kcras32.h b/riscv/insns/kcras32.h index 92e8245..0d18aca 100644 --- a/riscv/insns/kcras32.h +++ b/riscv/insns/kcras32.h @@ -7,4 +7,4 @@ P_CROSS_ULOOP(32, { bool sat = false; pd = (sat_sub<int32_t, uint32_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kcrsa16.h b/riscv/insns/kcrsa16.h index 32c80d2..1c80c64 100644 --- a/riscv/insns/kcrsa16.h +++ b/riscv/insns/kcrsa16.h @@ -6,4 +6,4 @@ P_CROSS_ULOOP(16, { bool sat = false; pd = (sat_add<int16_t, uint16_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kcrsa32.h b/riscv/insns/kcrsa32.h index a23c56a..a427bfc 100644 --- a/riscv/insns/kcrsa32.h +++ b/riscv/insns/kcrsa32.h @@ -7,4 +7,4 @@ P_CROSS_ULOOP(32, { bool sat = false; pd = (sat_add<int32_t, uint32_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kdmabb.h b/riscv/insns/kdmabb.h index 920cfdb..cd8dc61 100644 --- a/riscv/insns/kdmabb.h +++ b/riscv/insns/kdmabb.h @@ -13,4 +13,4 @@ if ((INT16_MIN != aop) | (INT16_MIN != bop)) { res += sext32(RD); P_SAT(res, 32); -WRITE_RD(sext32(res));
\ No newline at end of file +WRITE_RD(sext32(res)); diff --git a/riscv/insns/kdmabb16.h b/riscv/insns/kdmabb16.h index eed5efa..808e5ab 100644 --- a/riscv/insns/kdmabb16.h +++ b/riscv/insns/kdmabb16.h @@ -14,4 +14,4 @@ P_LOOP(32, { } pd = (sat_add<int32_t, uint32_t>(pd, mres, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kdmabt.h b/riscv/insns/kdmabt.h index 5281900..d542cfc 100644 --- a/riscv/insns/kdmabt.h +++ b/riscv/insns/kdmabt.h @@ -13,4 +13,4 @@ if ((INT16_MIN != aop) | (INT16_MIN != bop)) { res += sext32(RD); P_SAT(res, 32); -WRITE_RD(sext32(res));
\ No newline at end of file +WRITE_RD(sext32(res)); diff --git a/riscv/insns/kdmabt16.h b/riscv/insns/kdmabt16.h index 8190186..d9a1f83 100644 --- a/riscv/insns/kdmabt16.h +++ b/riscv/insns/kdmabt16.h @@ -14,4 +14,4 @@ P_LOOP(32, { } pd = (sat_add<int32_t, uint32_t>(pd, mres, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kdmatt.h b/riscv/insns/kdmatt.h index 2885e3a..c4fd29d 100644 --- a/riscv/insns/kdmatt.h +++ b/riscv/insns/kdmatt.h @@ -13,4 +13,4 @@ if ((INT16_MIN != aop) | (INT16_MIN != bop)) { res += sext32(RD); P_SAT(res, 32); -WRITE_RD(sext32(res));
\ No newline at end of file +WRITE_RD(sext32(res)); diff --git a/riscv/insns/kdmatt16.h b/riscv/insns/kdmatt16.h index 22e8a00..267d72b 100644 --- a/riscv/insns/kdmatt16.h +++ b/riscv/insns/kdmatt16.h @@ -14,4 +14,4 @@ P_LOOP(32, { } pd = (sat_add<int32_t, uint32_t>(pd, mres, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kdmbb.h b/riscv/insns/kdmbb.h index af25355..485c4a6 100644 --- a/riscv/insns/kdmbb.h +++ b/riscv/insns/kdmbb.h @@ -9,4 +9,4 @@ if ((INT16_MIN != aop) | (INT16_MIN != bop)) { res = INT32_MAX; P_SET_OV(1); } -WRITE_RD(sext32(res));
\ No newline at end of file +WRITE_RD(sext32(res)); diff --git a/riscv/insns/kdmbb16.h b/riscv/insns/kdmbb16.h index 1353c00..ac5cc5d 100644 --- a/riscv/insns/kdmbb16.h +++ b/riscv/insns/kdmbb16.h @@ -9,4 +9,4 @@ P_LOOP(32, { pd = INT32_MAX; P_SET_OV(1); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/kdmbt.h b/riscv/insns/kdmbt.h index 32017ed..8b1de6e 100644 --- a/riscv/insns/kdmbt.h +++ b/riscv/insns/kdmbt.h @@ -9,4 +9,4 @@ if ((INT16_MIN != aop) | (INT16_MIN != bop)) { res = INT32_MAX; P_SET_OV(1); } -WRITE_RD(sext32(res));
\ No newline at end of file +WRITE_RD(sext32(res)); diff --git a/riscv/insns/kdmbt16.h b/riscv/insns/kdmbt16.h index d934330..02d9025 100644 --- a/riscv/insns/kdmbt16.h +++ b/riscv/insns/kdmbt16.h @@ -9,4 +9,4 @@ P_LOOP(32, { pd = INT32_MAX; P_SET_OV(1); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/kdmtt.h b/riscv/insns/kdmtt.h index 3851280..e264f5d 100644 --- a/riscv/insns/kdmtt.h +++ b/riscv/insns/kdmtt.h @@ -9,4 +9,4 @@ if ((INT16_MIN != aop) | (INT16_MIN != bop)) { res = INT32_MAX; P_SET_OV(1); } -WRITE_RD(sext32(res));
\ No newline at end of file +WRITE_RD(sext32(res)); diff --git a/riscv/insns/kdmtt16.h b/riscv/insns/kdmtt16.h index 0aed777..7b30f0d 100644 --- a/riscv/insns/kdmtt16.h +++ b/riscv/insns/kdmtt16.h @@ -9,4 +9,4 @@ P_LOOP(32, { pd = INT32_MAX; P_SET_OV(1); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/khm16.h b/riscv/insns/khm16.h index 4414345..3183556 100644 --- a/riscv/insns/khm16.h +++ b/riscv/insns/khm16.h @@ -5,4 +5,4 @@ P_LOOP(16, { pd = INT16_MAX; P_SET_OV(1); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/khm8.h b/riscv/insns/khm8.h index aeef15c..c3ed6b2 100644 --- a/riscv/insns/khm8.h +++ b/riscv/insns/khm8.h @@ -5,4 +5,4 @@ P_LOOP(8, { pd = INT8_MAX; P_SET_OV(1); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/khmbb.h b/riscv/insns/khmbb.h index 6a59aa7..0555620 100644 --- a/riscv/insns/khmbb.h +++ b/riscv/insns/khmbb.h @@ -9,4 +9,4 @@ if ((INT16_MIN != aop) | (INT16_MIN != bop)) { res = INT16_MAX; P_SET_OV(1); } -WRITE_RD(sext_xlen((int16_t)res));
\ No newline at end of file +WRITE_RD(sext_xlen((int16_t)res)); diff --git a/riscv/insns/khmbb16.h b/riscv/insns/khmbb16.h index 42a1d1b..40a0c41 100644 --- a/riscv/insns/khmbb16.h +++ b/riscv/insns/khmbb16.h @@ -10,4 +10,4 @@ P_LOOP(32, { P_SET_OV(1); } pd = (int16_t)pd; -})
\ No newline at end of file +}) diff --git a/riscv/insns/khmbt.h b/riscv/insns/khmbt.h index cdbd00f..431a9eb 100644 --- a/riscv/insns/khmbt.h +++ b/riscv/insns/khmbt.h @@ -9,4 +9,4 @@ if ((INT16_MIN != aop) | (INT16_MIN != bop)) { res = INT16_MAX; P_SET_OV(1); } -WRITE_RD(sext_xlen((int16_t)res));
\ No newline at end of file +WRITE_RD(sext_xlen((int16_t)res)); diff --git a/riscv/insns/khmbt16.h b/riscv/insns/khmbt16.h index f187902..81cabd1 100644 --- a/riscv/insns/khmbt16.h +++ b/riscv/insns/khmbt16.h @@ -10,4 +10,4 @@ P_LOOP(32, { P_SET_OV(1); } pd = (int16_t)pd; -})
\ No newline at end of file +}) diff --git a/riscv/insns/khmtt.h b/riscv/insns/khmtt.h index efcd479..b39ce70 100644 --- a/riscv/insns/khmtt.h +++ b/riscv/insns/khmtt.h @@ -9,4 +9,4 @@ if ((INT16_MIN != aop) | (INT16_MIN != bop)) { res = INT16_MAX; P_SET_OV(1); } -WRITE_RD(sext_xlen((int16_t)res));
\ No newline at end of file +WRITE_RD(sext_xlen((int16_t)res)); diff --git a/riscv/insns/khmtt16.h b/riscv/insns/khmtt16.h index 7b70220..7f004b0 100644 --- a/riscv/insns/khmtt16.h +++ b/riscv/insns/khmtt16.h @@ -10,4 +10,4 @@ P_LOOP(32, { P_SET_OV(1); } pd = (int16_t)pd; -})
\ No newline at end of file +}) diff --git a/riscv/insns/khmx16.h b/riscv/insns/khmx16.h index dd5ddf1..ed72f45 100644 --- a/riscv/insns/khmx16.h +++ b/riscv/insns/khmx16.h @@ -5,4 +5,4 @@ P_CROSS_LOOP(16, { pd = INT16_MAX; P_SET_OV(1); } -},)
\ No newline at end of file +},) diff --git a/riscv/insns/khmx8.h b/riscv/insns/khmx8.h index 41770e8..84aafb3 100644 --- a/riscv/insns/khmx8.h +++ b/riscv/insns/khmx8.h @@ -5,4 +5,4 @@ P_CROSS_LOOP(8, { pd = INT8_MAX; P_SET_OV(1); } -},)
\ No newline at end of file +},) diff --git a/riscv/insns/kmabb.h b/riscv/insns/kmabb.h index 18b01fb..f2e7351 100644 --- a/riscv/insns/kmabb.h +++ b/riscv/insns/kmabb.h @@ -3,4 +3,4 @@ P_LOOP(32, { bool sat = false; pd = (sat_add<int32_t, uint32_t>(pd, mres, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmabb32.h b/riscv/insns/kmabb32.h index 0c417af..dba9713 100644 --- a/riscv/insns/kmabb32.h +++ b/riscv/insns/kmabb32.h @@ -4,4 +4,4 @@ require_extension('P'); bool sat = false; sreg_t mres = (sreg_t)P_SW(RS1, 0) * P_SW(RS2, 0); WRITE_RD((sat_add<int64_t, uint64_t>(RD, mres, sat))); -P_SET_OV(sat);
\ No newline at end of file +P_SET_OV(sat); diff --git a/riscv/insns/kmabt.h b/riscv/insns/kmabt.h index eeab423..e5b4576 100644 --- a/riscv/insns/kmabt.h +++ b/riscv/insns/kmabt.h @@ -3,4 +3,4 @@ P_LOOP(32, { bool sat = false; pd = (sat_add<int32_t, uint32_t>(pd, mres, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmabt32.h b/riscv/insns/kmabt32.h index 42701f4..441b46f 100644 --- a/riscv/insns/kmabt32.h +++ b/riscv/insns/kmabt32.h @@ -4,4 +4,4 @@ require_extension('P'); bool sat = false; sreg_t mres = (sreg_t)P_SW(RS1, 0) * P_SW(RS2, 1); WRITE_RD((sat_add<int64_t, uint64_t>(RD, mres, sat))); -P_SET_OV(sat);
\ No newline at end of file +P_SET_OV(sat); diff --git a/riscv/insns/kmada.h b/riscv/insns/kmada.h index 2fb8fd4..8271bd0 100644 --- a/riscv/insns/kmada.h +++ b/riscv/insns/kmada.h @@ -1,3 +1,3 @@ P_REDUCTION_LOOP(32, 16, true, true, { pd_res += ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmadrs.h b/riscv/insns/kmadrs.h index 8b5a888..92229c4 100644 --- a/riscv/insns/kmadrs.h +++ b/riscv/insns/kmadrs.h @@ -3,4 +3,4 @@ P_REDUCTION_LOOP(32, 16, true, true, { pd_res -= ps1 * ps2; else pd_res += ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmadrs32.h b/riscv/insns/kmadrs32.h index f502b0e..7c5fbf3 100644 --- a/riscv/insns/kmadrs32.h +++ b/riscv/insns/kmadrs32.h @@ -6,4 +6,4 @@ sreg_t mres0 = (sreg_t)P_SW(RS1, 0) * P_SW(RS2, 0); sreg_t mres1 = (sreg_t)P_SW(RS1, 1) * P_SW(RS2, 1); WRITE_RD((sat_add<sreg_t, reg_t>(RD, mres0, -mres1, sat))); -P_SET_OV(sat);
\ No newline at end of file +P_SET_OV(sat); diff --git a/riscv/insns/kmads.h b/riscv/insns/kmads.h index f1d9948..c43fe4a 100644 --- a/riscv/insns/kmads.h +++ b/riscv/insns/kmads.h @@ -3,4 +3,4 @@ P_REDUCTION_LOOP(32, 16, true, true, { pd_res += ps1 * ps2; else pd_res -= ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmads32.h b/riscv/insns/kmads32.h index 79ad4a6..7434fe8 100644 --- a/riscv/insns/kmads32.h +++ b/riscv/insns/kmads32.h @@ -6,4 +6,4 @@ sreg_t mres0 = (sreg_t)P_SW(RS1, 0) * P_SW(RS2, 0); sreg_t mres1 = (sreg_t)P_SW(RS1, 1) * P_SW(RS2, 1); WRITE_RD((sat_add<sreg_t, reg_t>(RD, -mres0, mres1, sat))); -P_SET_OV(sat);
\ No newline at end of file +P_SET_OV(sat); diff --git a/riscv/insns/kmar64.h b/riscv/insns/kmar64.h index eb6275c..63c103b 100644 --- a/riscv/insns/kmar64.h +++ b/riscv/insns/kmar64.h @@ -12,4 +12,4 @@ if (xlen == 32) { rd = (sat_add<int64_t, uint64_t>(rd, mres0, mres1, sat)); } P_SET_OV(sat); -P_64_PROFILE_END()
\ No newline at end of file +P_64_PROFILE_END() diff --git a/riscv/insns/kmatt.h b/riscv/insns/kmatt.h index e2611c6..4eb020d 100644 --- a/riscv/insns/kmatt.h +++ b/riscv/insns/kmatt.h @@ -3,4 +3,4 @@ P_LOOP(32, { bool sat = false; pd = (sat_add<int32_t, uint32_t>(pd, mres, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmatt32.h b/riscv/insns/kmatt32.h index e0e1a90..761c45c 100644 --- a/riscv/insns/kmatt32.h +++ b/riscv/insns/kmatt32.h @@ -4,4 +4,4 @@ require_extension('P'); bool sat = false; sreg_t mres = (sreg_t)P_SW(RS1, 1) * P_SW(RS2, 1); WRITE_RD((sat_add<int64_t, uint64_t>(RD, mres, sat))); -P_SET_OV(sat);
\ No newline at end of file +P_SET_OV(sat); diff --git a/riscv/insns/kmaxda.h b/riscv/insns/kmaxda.h index 7aaca96..e0db379 100644 --- a/riscv/insns/kmaxda.h +++ b/riscv/insns/kmaxda.h @@ -1,3 +1,3 @@ P_REDUCTION_CROSS_LOOP(32, 16, true, true, { pd_res += ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmaxda32.h b/riscv/insns/kmaxda32.h index 0fb0c70..0a09013 100644 --- a/riscv/insns/kmaxda32.h +++ b/riscv/insns/kmaxda32.h @@ -6,4 +6,4 @@ sreg_t mres0 = (sreg_t)P_SW(RS1, 0) * P_SW(RS2, 1); sreg_t mres1 = (sreg_t)P_SW(RS1, 1) * P_SW(RS2, 0); WRITE_RD((sat_add<sreg_t, reg_t>(RD, mres0, mres1, sat))); -P_SET_OV(sat);
\ No newline at end of file +P_SET_OV(sat); diff --git a/riscv/insns/kmaxds.h b/riscv/insns/kmaxds.h index d6f36f8..493d8b3 100644 --- a/riscv/insns/kmaxds.h +++ b/riscv/insns/kmaxds.h @@ -3,4 +3,4 @@ P_REDUCTION_CROSS_LOOP(32, 16, true, true, { pd_res += ps1 * ps2; else pd_res -= ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmaxds32.h b/riscv/insns/kmaxds32.h index 1fd93d3..6e18533 100644 --- a/riscv/insns/kmaxds32.h +++ b/riscv/insns/kmaxds32.h @@ -6,4 +6,4 @@ sreg_t mres0 = (sreg_t)P_SW(RS1, 0) * P_SW(RS2, 1); sreg_t mres1 = (sreg_t)P_SW(RS1, 1) * P_SW(RS2, 0); WRITE_RD((sat_add<sreg_t, reg_t>(RD, -mres0, mres1, sat))); -P_SET_OV(sat);
\ No newline at end of file +P_SET_OV(sat); diff --git a/riscv/insns/kmda.h b/riscv/insns/kmda.h index ceba4ac..fc7a427 100644 --- a/riscv/insns/kmda.h +++ b/riscv/insns/kmda.h @@ -1,3 +1,3 @@ P_REDUCTION_LOOP(32, 16, false, true, { pd_res += ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmda32.h b/riscv/insns/kmda32.h index 6233284..1196f08 100644 --- a/riscv/insns/kmda32.h +++ b/riscv/insns/kmda32.h @@ -6,4 +6,4 @@ sreg_t mres0 = (sreg_t)P_SW(RS1, 0) * P_SW(RS2, 0); sreg_t mres1 = (sreg_t)P_SW(RS1, 1) * P_SW(RS2, 1); WRITE_RD((sat_add<sreg_t, reg_t>(mres0, mres1, sat))); -P_SET_OV(sat);
\ No newline at end of file +P_SET_OV(sat); diff --git a/riscv/insns/kmmac.h b/riscv/insns/kmmac.h index 124771a..dccedf0 100644 --- a/riscv/insns/kmmac.h +++ b/riscv/insns/kmmac.h @@ -3,4 +3,4 @@ P_LOOP(32, { bool sat = false; pd = (sat_add<int32_t, uint32_t>(pd, (mres >> 32), sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmmac_u.h b/riscv/insns/kmmac_u.h index 9a0c580..4b81a49 100644 --- a/riscv/insns/kmmac_u.h +++ b/riscv/insns/kmmac_u.h @@ -4,4 +4,4 @@ P_LOOP(32, { bool sat = false; pd = (sat_add<int32_t, uint32_t>(pd, round, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmmawb.h b/riscv/insns/kmmawb.h index 28eb0a8..91da3d1 100644 --- a/riscv/insns/kmmawb.h +++ b/riscv/insns/kmmawb.h @@ -3,4 +3,4 @@ P_LOOP(32, { bool sat = false; pd = (sat_add<int32_t, uint32_t>(pd, (mres >> 16), sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmmawb2.h b/riscv/insns/kmmawb2.h index e82bfda..74711e8 100644 --- a/riscv/insns/kmmawb2.h +++ b/riscv/insns/kmmawb2.h @@ -11,4 +11,4 @@ P_LOOP(32, { } pd = (sat_add<int32_t, uint32_t>(pd, addop, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmmawb2_u.h b/riscv/insns/kmmawb2_u.h index fb4b075..bb5d585 100644 --- a/riscv/insns/kmmawb2_u.h +++ b/riscv/insns/kmmawb2_u.h @@ -11,4 +11,4 @@ P_LOOP(32, { } pd = (sat_add<int32_t, uint32_t>(pd, addop, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmmawb_u.h b/riscv/insns/kmmawb_u.h index 4c51b74..cd36184 100644 --- a/riscv/insns/kmmawb_u.h +++ b/riscv/insns/kmmawb_u.h @@ -4,4 +4,4 @@ P_LOOP(32, { bool sat = false; pd = (sat_add<int32_t, uint32_t>(pd, round, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmmawt.h b/riscv/insns/kmmawt.h index 444546f..140716c 100644 --- a/riscv/insns/kmmawt.h +++ b/riscv/insns/kmmawt.h @@ -3,4 +3,4 @@ P_LOOP(32, { bool sat = false; pd = (sat_add<int32_t, uint32_t>(pd, (mres >> 16), sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmmawt2.h b/riscv/insns/kmmawt2.h index c92d8c7..8e4dce4 100644 --- a/riscv/insns/kmmawt2.h +++ b/riscv/insns/kmmawt2.h @@ -11,4 +11,4 @@ P_LOOP(32, { } pd = (sat_add<int32_t, uint32_t>(pd, addop, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmmawt2_u.h b/riscv/insns/kmmawt2_u.h index 46dca79..03c15b1 100644 --- a/riscv/insns/kmmawt2_u.h +++ b/riscv/insns/kmmawt2_u.h @@ -11,4 +11,4 @@ P_LOOP(32, { } pd = (sat_add<int32_t, uint32_t>(pd, addop, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmmawt_u.h b/riscv/insns/kmmawt_u.h index fe1dff0..b1bd289 100644 --- a/riscv/insns/kmmawt_u.h +++ b/riscv/insns/kmmawt_u.h @@ -4,4 +4,4 @@ P_LOOP(32, { bool sat = false; pd = (sat_add<int32_t, uint32_t>(pd, round, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmmsb.h b/riscv/insns/kmmsb.h index f1b4c8b..783f409 100644 --- a/riscv/insns/kmmsb.h +++ b/riscv/insns/kmmsb.h @@ -3,4 +3,4 @@ P_LOOP(32, { bool sat = false; pd = (sat_sub<int32_t, uint32_t>(pd, (mres >> 32), sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmmsb_u.h b/riscv/insns/kmmsb_u.h index 864c66c..5beb91f 100644 --- a/riscv/insns/kmmsb_u.h +++ b/riscv/insns/kmmsb_u.h @@ -4,4 +4,4 @@ P_LOOP(32, { bool sat = false; pd = (sat_sub<int32_t, uint32_t>(pd, round, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmmwb2.h b/riscv/insns/kmmwb2.h index 8574aa5..55c4aea 100644 --- a/riscv/insns/kmmwb2.h +++ b/riscv/insns/kmmwb2.h @@ -6,4 +6,4 @@ P_LOOP(32, { pd = INT32_MAX; P_SET_OV(1); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmmwb2_u.h b/riscv/insns/kmmwb2_u.h index 4216ad1..394a4d6 100644 --- a/riscv/insns/kmmwb2_u.h +++ b/riscv/insns/kmmwb2_u.h @@ -6,4 +6,4 @@ P_LOOP(32, { pd = INT32_MAX; P_SET_OV(1); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmmwt2.h b/riscv/insns/kmmwt2.h index 62b47cd..d80291a 100644 --- a/riscv/insns/kmmwt2.h +++ b/riscv/insns/kmmwt2.h @@ -6,4 +6,4 @@ P_LOOP(32, { pd = INT32_MAX; P_SET_OV(1); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmmwt2_u.h b/riscv/insns/kmmwt2_u.h index d76d890..330a241 100644 --- a/riscv/insns/kmmwt2_u.h +++ b/riscv/insns/kmmwt2_u.h @@ -6,4 +6,4 @@ P_LOOP(32, { pd = INT32_MAX; P_SET_OV(1); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmsda.h b/riscv/insns/kmsda.h index 4992ac3..4de7018 100644 --- a/riscv/insns/kmsda.h +++ b/riscv/insns/kmsda.h @@ -1,3 +1,3 @@ P_REDUCTION_LOOP(32, 16, true, true, { pd_res -= ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmsda32.h b/riscv/insns/kmsda32.h index 1a3a13b..249a4da 100644 --- a/riscv/insns/kmsda32.h +++ b/riscv/insns/kmsda32.h @@ -6,4 +6,4 @@ sreg_t mres0 = (sreg_t)P_SW(RS1, 0) * P_SW(RS2, 0); sreg_t mres1 = (sreg_t)P_SW(RS1, 1) * P_SW(RS2, 1); WRITE_RD((sat_add<sreg_t, reg_t>(RD, -mres0, -mres1, sat))); -P_SET_OV(sat);
\ No newline at end of file +P_SET_OV(sat); diff --git a/riscv/insns/kmsr64.h b/riscv/insns/kmsr64.h index bdc405e..698ae51 100644 --- a/riscv/insns/kmsr64.h +++ b/riscv/insns/kmsr64.h @@ -22,4 +22,4 @@ if (xlen == 32) { } } P_SET_OV(sat); -P_64_PROFILE_END()
\ No newline at end of file +P_64_PROFILE_END() diff --git a/riscv/insns/kmsxda.h b/riscv/insns/kmsxda.h index 34b2b1d..cd83b61 100644 --- a/riscv/insns/kmsxda.h +++ b/riscv/insns/kmsxda.h @@ -1,3 +1,3 @@ P_REDUCTION_CROSS_LOOP(32, 16, true, true, { pd_res -= ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmsxda32.h b/riscv/insns/kmsxda32.h index 8bea0c2..ad265b5 100644 --- a/riscv/insns/kmsxda32.h +++ b/riscv/insns/kmsxda32.h @@ -6,4 +6,4 @@ sreg_t mres0 = (sreg_t)P_SW(RS1, 0) * P_SW(RS2, 1); sreg_t mres1 = (sreg_t)P_SW(RS1, 1) * P_SW(RS2, 0); WRITE_RD((sat_add<sreg_t, reg_t>(RD, -mres0, -mres1, sat))); -P_SET_OV(sat);
\ No newline at end of file +P_SET_OV(sat); diff --git a/riscv/insns/kmxda.h b/riscv/insns/kmxda.h index 0f6fb03..b714af2 100644 --- a/riscv/insns/kmxda.h +++ b/riscv/insns/kmxda.h @@ -1,3 +1,3 @@ P_REDUCTION_CROSS_LOOP(32, 16, false, true, { pd_res += ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/kmxda32.h b/riscv/insns/kmxda32.h index d33cdf1..1b0c260 100644 --- a/riscv/insns/kmxda32.h +++ b/riscv/insns/kmxda32.h @@ -6,4 +6,4 @@ sreg_t mres0 = (sreg_t)P_SW(RS1, 0) * P_SW(RS2, 1); sreg_t mres1 = (sreg_t)P_SW(RS1, 1) * P_SW(RS2, 0); WRITE_RD((sat_add<sreg_t, reg_t>(mres0, mres1, sat))); -P_SET_OV(sat);
\ No newline at end of file +P_SET_OV(sat); diff --git a/riscv/insns/ksll16.h b/riscv/insns/ksll16.h index 405967a..ce6dd03 100644 --- a/riscv/insns/ksll16.h +++ b/riscv/insns/ksll16.h @@ -2,4 +2,4 @@ P_X_LOOP(16, 4, { auto res = (sreg_t)ps1 << sa; P_SAT(res, 16); pd = res; -})
\ No newline at end of file +}) diff --git a/riscv/insns/ksll32.h b/riscv/insns/ksll32.h index 4533119..dce8c96 100644 --- a/riscv/insns/ksll32.h +++ b/riscv/insns/ksll32.h @@ -3,4 +3,4 @@ P_X_LOOP(32, 5, { auto res = (sreg_t)ps1 << sa; P_SAT(res, 32); pd = res; -})
\ No newline at end of file +}) diff --git a/riscv/insns/ksll8.h b/riscv/insns/ksll8.h index 482ceb7..93ed907 100644 --- a/riscv/insns/ksll8.h +++ b/riscv/insns/ksll8.h @@ -2,4 +2,4 @@ P_X_LOOP(8, 3, { auto res = (sreg_t)ps1 << sa; P_SAT(res, 8); pd = res; -})
\ No newline at end of file +}) diff --git a/riscv/insns/kslli16.h b/riscv/insns/kslli16.h index dd8c1de..e37eab8 100644 --- a/riscv/insns/kslli16.h +++ b/riscv/insns/kslli16.h @@ -2,4 +2,4 @@ P_I_LOOP(16, 4, { auto res = (sreg_t)ps1 << imm4u; P_SAT(res, 16); pd = res; -})
\ No newline at end of file +}) diff --git a/riscv/insns/kslli32.h b/riscv/insns/kslli32.h index 4c034bd..95000e4 100644 --- a/riscv/insns/kslli32.h +++ b/riscv/insns/kslli32.h @@ -3,4 +3,4 @@ P_I_LOOP(32, 5, { auto res = (sreg_t)ps1 << imm5u; P_SAT(res, 32); pd = res; -})
\ No newline at end of file +}) diff --git a/riscv/insns/kslli8.h b/riscv/insns/kslli8.h index cc8b08d..115361b 100644 --- a/riscv/insns/kslli8.h +++ b/riscv/insns/kslli8.h @@ -2,4 +2,4 @@ P_I_LOOP(8, 3, { auto res = (sreg_t)ps1 << imm3u; P_SAT(res, 8); pd = res; -})
\ No newline at end of file +}) diff --git a/riscv/insns/kslliw.h b/riscv/insns/kslliw.h index 9c1d877..13c5d7f 100644 --- a/riscv/insns/kslliw.h +++ b/riscv/insns/kslliw.h @@ -4,4 +4,4 @@ sreg_t sa = insn.p_imm5(); sreg_t res = rs1 << sa; P_SAT(res, 32); -WRITE_RD(sext32(res));
\ No newline at end of file +WRITE_RD(sext32(res)); diff --git a/riscv/insns/ksllw.h b/riscv/insns/ksllw.h index b95a6f2..e8cf68f 100644 --- a/riscv/insns/ksllw.h +++ b/riscv/insns/ksllw.h @@ -4,4 +4,4 @@ sreg_t sa = get_field(RS2, make_mask64(0, 5)); sreg_t res = rs1 << sa; P_SAT(res, 32); -WRITE_RD(sext32(res));
\ No newline at end of file +WRITE_RD(sext32(res)); diff --git a/riscv/insns/kslra16.h b/riscv/insns/kslra16.h index 93ccec3..ce4aa33 100644 --- a/riscv/insns/kslra16.h +++ b/riscv/insns/kslra16.h @@ -8,4 +8,4 @@ P_X_LOOP(16, 5, { P_SAT(res, 16); pd = res; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/kslra16_u.h b/riscv/insns/kslra16_u.h index ac6b2ff..ff0ef40 100644 --- a/riscv/insns/kslra16_u.h +++ b/riscv/insns/kslra16_u.h @@ -11,4 +11,4 @@ P_X_LOOP(16, 5, { P_SAT(res, 16); pd = res; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/kslra32.h b/riscv/insns/kslra32.h index 34ffbe4..76906d1 100644 --- a/riscv/insns/kslra32.h +++ b/riscv/insns/kslra32.h @@ -9,4 +9,4 @@ P_X_LOOP(32, 6, { P_SAT(res, 32); pd = res; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/kslra32_u.h b/riscv/insns/kslra32_u.h index 8fe632d..66504eb 100644 --- a/riscv/insns/kslra32_u.h +++ b/riscv/insns/kslra32_u.h @@ -12,4 +12,4 @@ P_X_LOOP(32, 6, { P_SAT(res, 32); pd = res; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/kslra8.h b/riscv/insns/kslra8.h index 8ed631d..2346a86 100644 --- a/riscv/insns/kslra8.h +++ b/riscv/insns/kslra8.h @@ -8,4 +8,4 @@ P_X_LOOP(8, 4, { P_SAT(res, 8); pd = res; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/kslra8_u.h b/riscv/insns/kslra8_u.h index 9139775..b67b25a 100644 --- a/riscv/insns/kslra8_u.h +++ b/riscv/insns/kslra8_u.h @@ -11,4 +11,4 @@ P_X_LOOP(8, 4, { P_SAT(res, 8); pd = res; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/kslraw.h b/riscv/insns/kslraw.h index 36e1ea9..20e4894 100644 --- a/riscv/insns/kslraw.h +++ b/riscv/insns/kslraw.h @@ -10,4 +10,4 @@ if (sa < 0) { auto res = rs1 << sa; P_SAT(res, 32); WRITE_RD(sext32(res)); -}
\ No newline at end of file +} diff --git a/riscv/insns/kslraw_u.h b/riscv/insns/kslraw_u.h index 3ff723d..e1c53ee 100644 --- a/riscv/insns/kslraw_u.h +++ b/riscv/insns/kslraw_u.h @@ -10,4 +10,4 @@ if (sa < 0) { auto res = rs1 << sa; P_SAT(res, 32); WRITE_RD(sext32(res)); -}
\ No newline at end of file +} diff --git a/riscv/insns/kstas16.h b/riscv/insns/kstas16.h index 50d3a46..ca2c538 100644 --- a/riscv/insns/kstas16.h +++ b/riscv/insns/kstas16.h @@ -6,4 +6,4 @@ P_STRAIGHT_ULOOP(16, { bool sat = false; pd = (sat_sub<int16_t, uint16_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kstas32.h b/riscv/insns/kstas32.h index aea3c46..db78a8e 100644 --- a/riscv/insns/kstas32.h +++ b/riscv/insns/kstas32.h @@ -7,4 +7,4 @@ P_STRAIGHT_ULOOP(32, { bool sat = false; pd = (sat_sub<int32_t, uint32_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kstsa16.h b/riscv/insns/kstsa16.h index 76b1f22..b1349c7 100644 --- a/riscv/insns/kstsa16.h +++ b/riscv/insns/kstsa16.h @@ -6,4 +6,4 @@ P_STRAIGHT_ULOOP(16, { bool sat = false; pd = (sat_add<int16_t, uint16_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/kstsa32.h b/riscv/insns/kstsa32.h index d2ac99b..f7e5eb4 100644 --- a/riscv/insns/kstsa32.h +++ b/riscv/insns/kstsa32.h @@ -7,4 +7,4 @@ P_STRAIGHT_ULOOP(32, { bool sat = false; pd = (sat_add<int32_t, uint32_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/ksub16.h b/riscv/insns/ksub16.h index 9994359..4f8e8b1 100644 --- a/riscv/insns/ksub16.h +++ b/riscv/insns/ksub16.h @@ -2,4 +2,4 @@ P_LOOP(16, { bool sat = false; pd = (sat_sub<int16_t, uint16_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/ksub32.h b/riscv/insns/ksub32.h index 3e51440..b6eaa82 100644 --- a/riscv/insns/ksub32.h +++ b/riscv/insns/ksub32.h @@ -3,4 +3,4 @@ P_LOOP(32, { bool sat = false; pd = (sat_sub<int32_t, uint32_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/ksub64.h b/riscv/insns/ksub64.h index c94c28e..d0040dc 100644 --- a/riscv/insns/ksub64.h +++ b/riscv/insns/ksub64.h @@ -2,4 +2,4 @@ P_64_PROFILE({ bool sat = false; rd = (sat_sub<int64_t, uint64_t>(rs1, rs2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/ksub8.h b/riscv/insns/ksub8.h index 90a0c58..2b8ea2e 100644 --- a/riscv/insns/ksub8.h +++ b/riscv/insns/ksub8.h @@ -2,4 +2,4 @@ P_LOOP(8, { bool sat = false; pd = (sat_sub<int8_t, uint8_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/ksubh.h b/riscv/insns/ksubh.h index 9c21a94..7c5d2b2 100644 --- a/riscv/insns/ksubh.h +++ b/riscv/insns/ksubh.h @@ -1,4 +1,4 @@ require_extension('P'); sreg_t res = (sreg_t)P_SW(RS1, 0) - (sreg_t)P_SW(RS2, 0); P_SAT(res, 16); -WRITE_RD(sext_xlen((int16_t)res));
\ No newline at end of file +WRITE_RD(sext_xlen((int16_t)res)); diff --git a/riscv/insns/ksubw.h b/riscv/insns/ksubw.h index 0542ba1..49c6385 100644 --- a/riscv/insns/ksubw.h +++ b/riscv/insns/ksubw.h @@ -1,4 +1,4 @@ require_extension('P'); sreg_t res = (sreg_t)P_SW(RS1, 0) - (sreg_t)P_SW(RS2, 0); P_SAT(res, 32); -WRITE_RD(sext32(res));
\ No newline at end of file +WRITE_RD(sext32(res)); diff --git a/riscv/insns/kwmmul.h b/riscv/insns/kwmmul.h index 0332769..57aa2b5 100644 --- a/riscv/insns/kwmmul.h +++ b/riscv/insns/kwmmul.h @@ -6,4 +6,4 @@ P_LOOP(32, { pd = INT32_MAX; P_SET_OV(1); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/kwmmul_u.h b/riscv/insns/kwmmul_u.h index 73ba2c7..fb74a43 100644 --- a/riscv/insns/kwmmul_u.h +++ b/riscv/insns/kwmmul_u.h @@ -6,4 +6,4 @@ P_LOOP(32, { pd = INT32_MAX; P_SET_OV(1); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/maddr32.h b/riscv/insns/maddr32.h index 47cadd3..9d1abb4 100644 --- a/riscv/insns/maddr32.h +++ b/riscv/insns/maddr32.h @@ -2,4 +2,4 @@ require_extension('P'); reg_t mres = (reg_t)P_W(RS1, 0) * P_W(RS2, 0); reg_t rd = P_W(RD, 0); rd += mres; -WRITE_RD(sext_xlen((int32_t)rd));
\ No newline at end of file +WRITE_RD(sext_xlen((int32_t)rd)); diff --git a/riscv/insns/maxw.h b/riscv/insns/maxw.h index 7fc9404..b49bacc 100644 --- a/riscv/insns/maxw.h +++ b/riscv/insns/maxw.h @@ -1,4 +1,4 @@ require_extension('P'); int32_t rs1w = P_W(RS1, 0); int32_t rs2w = P_W(RS2, 0); -WRITE_RD(sext_xlen(rs1w >= rs2w ? rs1w : rs2w));
\ No newline at end of file +WRITE_RD(sext_xlen(rs1w >= rs2w ? rs1w : rs2w)); diff --git a/riscv/insns/minw.h b/riscv/insns/minw.h index 1c00c63..4489260 100644 --- a/riscv/insns/minw.h +++ b/riscv/insns/minw.h @@ -1,4 +1,4 @@ require_extension('P'); int32_t rs1w = P_W(RS1, 0); int32_t rs2w = P_W(RS2, 0); -WRITE_RD(sext_xlen(rs1w >= rs2w ? rs2w : rs1w));
\ No newline at end of file +WRITE_RD(sext_xlen(rs1w >= rs2w ? rs2w : rs1w)); diff --git a/riscv/insns/msubr32.h b/riscv/insns/msubr32.h index 14dabb8..45573c7 100644 --- a/riscv/insns/msubr32.h +++ b/riscv/insns/msubr32.h @@ -2,4 +2,4 @@ require_extension('P'); reg_t mres = (reg_t)P_W(RS1, 0) * P_W(RS2, 0); reg_t rd = P_W(RD, 0); rd -= mres; -WRITE_RD(sext_xlen((int32_t)rd));
\ No newline at end of file +WRITE_RD(sext_xlen((int32_t)rd)); diff --git a/riscv/insns/mulr64.h b/riscv/insns/mulr64.h index d2f807a..d5a77e3 100644 --- a/riscv/insns/mulr64.h +++ b/riscv/insns/mulr64.h @@ -1,3 +1,3 @@ require_extension('P'); reg_t rd = (reg_t)P_W(RS1, 0) * P_W(RS2, 0); -P_64_PROFILE_END();
\ No newline at end of file +P_64_PROFILE_END(); diff --git a/riscv/insns/mulsr64.h b/riscv/insns/mulsr64.h index 2cc0e17..f7dae22 100644 --- a/riscv/insns/mulsr64.h +++ b/riscv/insns/mulsr64.h @@ -1,3 +1,3 @@ require_extension('P'); sreg_t rd = (sreg_t)P_SW(RS1, 0) * P_SW(RS2, 0); -P_64_PROFILE_END();
\ No newline at end of file +P_64_PROFILE_END(); diff --git a/riscv/insns/pbsad.h b/riscv/insns/pbsad.h index 71f5aeb..32789ef 100644 --- a/riscv/insns/pbsad.h +++ b/riscv/insns/pbsad.h @@ -1,3 +1,3 @@ P_REDUCTION_ULOOP(64, 8, false, false, { pd_res += (ps1 > ps2 ? ps1 - ps2 : ps2 - ps1); -})
\ No newline at end of file +}) diff --git a/riscv/insns/pbsada.h b/riscv/insns/pbsada.h index a8e1f46..cab988e 100644 --- a/riscv/insns/pbsada.h +++ b/riscv/insns/pbsada.h @@ -1,3 +1,3 @@ P_REDUCTION_ULOOP(64, 8, true, false, { pd_res += (ps1 > ps2 ? ps1 - ps2 : ps2 - ps1); -})
\ No newline at end of file +}) diff --git a/riscv/insns/pkbb16.h b/riscv/insns/pkbb16.h index 06283cf..ff0766e 100644 --- a/riscv/insns/pkbb16.h +++ b/riscv/insns/pkbb16.h @@ -1 +1 @@ -P_PK(16, 0, 0);
\ No newline at end of file +P_PK(16, 0, 0); diff --git a/riscv/insns/pkbb32.h b/riscv/insns/pkbb32.h index 2b7ab37..e130cc3 100644 --- a/riscv/insns/pkbb32.h +++ b/riscv/insns/pkbb32.h @@ -1,2 +1,2 @@ require_rv64; -P_PK(32, 0, 0);
\ No newline at end of file +P_PK(32, 0, 0); diff --git a/riscv/insns/pkbt16.h b/riscv/insns/pkbt16.h index 8247388..8c51ab7 100644 --- a/riscv/insns/pkbt16.h +++ b/riscv/insns/pkbt16.h @@ -1 +1 @@ -P_PK(16, 0, 1);
\ No newline at end of file +P_PK(16, 0, 1); diff --git a/riscv/insns/pkbt32.h b/riscv/insns/pkbt32.h index 426dcdc..2783d98 100644 --- a/riscv/insns/pkbt32.h +++ b/riscv/insns/pkbt32.h @@ -1,2 +1,2 @@ require_rv64; -P_PK(32, 0, 1);
\ No newline at end of file +P_PK(32, 0, 1); diff --git a/riscv/insns/pktb16.h b/riscv/insns/pktb16.h index 2925eae..c49c1ed 100644 --- a/riscv/insns/pktb16.h +++ b/riscv/insns/pktb16.h @@ -1 +1 @@ -P_PK(16, 1, 0);
\ No newline at end of file +P_PK(16, 1, 0); diff --git a/riscv/insns/pktb32.h b/riscv/insns/pktb32.h index ff98609..0a7e17f 100644 --- a/riscv/insns/pktb32.h +++ b/riscv/insns/pktb32.h @@ -1,2 +1,2 @@ require_rv64; -P_PK(32, 1, 0);
\ No newline at end of file +P_PK(32, 1, 0); diff --git a/riscv/insns/pktt16.h b/riscv/insns/pktt16.h index 11cca59..1761a68 100644 --- a/riscv/insns/pktt16.h +++ b/riscv/insns/pktt16.h @@ -1 +1 @@ -P_PK(16, 1, 1);
\ No newline at end of file +P_PK(16, 1, 1); diff --git a/riscv/insns/pktt32.h b/riscv/insns/pktt32.h index 49d86ee..633d030 100644 --- a/riscv/insns/pktt32.h +++ b/riscv/insns/pktt32.h @@ -1,2 +1,2 @@ require_rv64; -P_PK(32, 1, 1);
\ No newline at end of file +P_PK(32, 1, 1); diff --git a/riscv/insns/radd16.h b/riscv/insns/radd16.h index 4195516..8f80050 100644 --- a/riscv/insns/radd16.h +++ b/riscv/insns/radd16.h @@ -1,3 +1,3 @@ P_LOOP(16, { pd = (ps1 + ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/radd32.h b/riscv/insns/radd32.h index ec908e5..df50dd1 100644 --- a/riscv/insns/radd32.h +++ b/riscv/insns/radd32.h @@ -1,4 +1,4 @@ require_rv64; P_LOOP(32, { pd = ((int64_t)ps1 + ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/radd64.h b/riscv/insns/radd64.h index 91c6c24..110c472 100644 --- a/riscv/insns/radd64.h +++ b/riscv/insns/radd64.h @@ -5,4 +5,4 @@ P_64_PROFILE({ } else if (rs1 < 0 && rs2 < 0) { rd |= ((reg_t)1 << 63); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/radd8.h b/riscv/insns/radd8.h index 5ac638b..ad0b6ec 100644 --- a/riscv/insns/radd8.h +++ b/riscv/insns/radd8.h @@ -1,3 +1,3 @@ P_LOOP(8, { pd = (ps1 + ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/raddw.h b/riscv/insns/raddw.h index 983f33e..aacfdee 100644 --- a/riscv/insns/raddw.h +++ b/riscv/insns/raddw.h @@ -1,4 +1,4 @@ require_extension('P'); sreg_t res = (sreg_t)P_SW(RS1, 0) + (sreg_t)P_SW(RS2, 0); res >>= 1; -WRITE_RD(sext_xlen(res));
\ No newline at end of file +WRITE_RD(sext_xlen(res)); diff --git a/riscv/insns/rcras16.h b/riscv/insns/rcras16.h index 6d91eb8..529c27f 100644 --- a/riscv/insns/rcras16.h +++ b/riscv/insns/rcras16.h @@ -2,4 +2,4 @@ P_CROSS_LOOP(16, { pd = (ps1 + ps2) >> 1; }, { pd = (ps1 - ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/rcras32.h b/riscv/insns/rcras32.h index e9329cc..86a3f65 100644 --- a/riscv/insns/rcras32.h +++ b/riscv/insns/rcras32.h @@ -3,4 +3,4 @@ P_CROSS_LOOP(32, { pd = ((int64_t)ps1 + ps2) >> 1; }, { pd = ((int64_t)ps1 - ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/rcrsa16.h b/riscv/insns/rcrsa16.h index a3a74f0..156e32c 100644 --- a/riscv/insns/rcrsa16.h +++ b/riscv/insns/rcrsa16.h @@ -2,4 +2,4 @@ P_CROSS_LOOP(16, { pd = (ps1 - ps2) >> 1; }, { pd = (ps1 + ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/rcrsa32.h b/riscv/insns/rcrsa32.h index 76cddbc..b45f31f 100644 --- a/riscv/insns/rcrsa32.h +++ b/riscv/insns/rcrsa32.h @@ -3,4 +3,4 @@ P_CROSS_LOOP(32, { pd = ((uint64_t)ps1 - ps2) >> 1; }, { pd = ((uint64_t)ps1 + ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/rstas16.h b/riscv/insns/rstas16.h index cf38442..298b591 100644 --- a/riscv/insns/rstas16.h +++ b/riscv/insns/rstas16.h @@ -2,4 +2,4 @@ P_STRAIGHT_LOOP(16, { pd = (ps1 + ps2) >> 1; }, { pd = (ps1 - ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/rstas32.h b/riscv/insns/rstas32.h index f23603f..9c8995a 100644 --- a/riscv/insns/rstas32.h +++ b/riscv/insns/rstas32.h @@ -3,4 +3,4 @@ P_STRAIGHT_LOOP(32, { pd = ((int64_t)ps1 + ps2) >> 1; }, { pd = ((int64_t)ps1 - ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/rstsa16.h b/riscv/insns/rstsa16.h index 8c0476e..443e4ce 100644 --- a/riscv/insns/rstsa16.h +++ b/riscv/insns/rstsa16.h @@ -2,4 +2,4 @@ P_STRAIGHT_LOOP(16, { pd = (ps1 - ps2) >> 1; }, { pd = (ps1 + ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/rstsa32.h b/riscv/insns/rstsa32.h index ee74dab..a89fc6e 100644 --- a/riscv/insns/rstsa32.h +++ b/riscv/insns/rstsa32.h @@ -3,4 +3,4 @@ P_STRAIGHT_LOOP(32, { pd = ((int64_t)ps1 - ps2) >> 1; }, { pd = ((int64_t)ps1 + ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/rsub16.h b/riscv/insns/rsub16.h index 27e420d..768e067 100644 --- a/riscv/insns/rsub16.h +++ b/riscv/insns/rsub16.h @@ -1,3 +1,3 @@ P_LOOP(16, { pd = (ps1 - ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/rsub32.h b/riscv/insns/rsub32.h index aaf7862..22c3119 100644 --- a/riscv/insns/rsub32.h +++ b/riscv/insns/rsub32.h @@ -1,4 +1,4 @@ require_rv64; P_LOOP(32, { pd = ((int64_t)ps1 - ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/rsub64.h b/riscv/insns/rsub64.h index a42e9c1..397c973 100644 --- a/riscv/insns/rsub64.h +++ b/riscv/insns/rsub64.h @@ -5,4 +5,4 @@ P_64_PROFILE({ } else if(rs1 < 0 && rs2 > 0) { rd |= ((reg_t)1 << 63); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/rsub8.h b/riscv/insns/rsub8.h index a3bfeb7..9cf9c1a 100644 --- a/riscv/insns/rsub8.h +++ b/riscv/insns/rsub8.h @@ -1,3 +1,3 @@ P_LOOP(8, { pd = (ps1 - ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/rsubw.h b/riscv/insns/rsubw.h index 89083ad..5ff9652 100644 --- a/riscv/insns/rsubw.h +++ b/riscv/insns/rsubw.h @@ -1,4 +1,4 @@ require_extension('P'); sreg_t res = (sreg_t)P_SW(RS1, 0) - (sreg_t)P_SW(RS2, 0); res >>= 1; -WRITE_RD(sext_xlen(res));
\ No newline at end of file +WRITE_RD(sext_xlen(res)); diff --git a/riscv/insns/sclip16.h b/riscv/insns/sclip16.h index 6d0e60c..cd313c0 100644 --- a/riscv/insns/sclip16.h +++ b/riscv/insns/sclip16.h @@ -10,4 +10,4 @@ P_I_LOOP(16, 4, { pd = int_min; P_SET_OV(1); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/sclip32.h b/riscv/insns/sclip32.h index 0d7793b..8c16e81 100644 --- a/riscv/insns/sclip32.h +++ b/riscv/insns/sclip32.h @@ -10,4 +10,4 @@ P_I_LOOP(32, 5, { pd = int_min; P_SET_OV(1); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/sclip8.h b/riscv/insns/sclip8.h index f95770f..7f86891 100644 --- a/riscv/insns/sclip8.h +++ b/riscv/insns/sclip8.h @@ -10,4 +10,4 @@ P_I_LOOP(8, 3, { pd = int_min; P_SET_OV(1); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/scmple16.h b/riscv/insns/scmple16.h index 6ee2e15..060c04c 100644 --- a/riscv/insns/scmple16.h +++ b/riscv/insns/scmple16.h @@ -1,3 +1,3 @@ P_LOOP(16, { pd = (ps1 <= ps2) ? -1 : 0; -})
\ No newline at end of file +}) diff --git a/riscv/insns/scmple8.h b/riscv/insns/scmple8.h index 1540cb1..8920c1f 100644 --- a/riscv/insns/scmple8.h +++ b/riscv/insns/scmple8.h @@ -1,3 +1,3 @@ P_LOOP(8, { pd = (ps1 <= ps2) ? -1 : 0; -})
\ No newline at end of file +}) diff --git a/riscv/insns/scmplt16.h b/riscv/insns/scmplt16.h index ad34ae0..db62f6f 100644 --- a/riscv/insns/scmplt16.h +++ b/riscv/insns/scmplt16.h @@ -1,3 +1,3 @@ P_LOOP(16, { pd = (ps1 < ps2) ? -1 : 0; -})
\ No newline at end of file +}) diff --git a/riscv/insns/scmplt8.h b/riscv/insns/scmplt8.h index df17dff..7d07209 100644 --- a/riscv/insns/scmplt8.h +++ b/riscv/insns/scmplt8.h @@ -1,3 +1,3 @@ P_LOOP(8, { pd = (ps1 < ps2) ? -1 : 0; -})
\ No newline at end of file +}) diff --git a/riscv/insns/sll16.h b/riscv/insns/sll16.h index 66b81eb..9659f53 100644 --- a/riscv/insns/sll16.h +++ b/riscv/insns/sll16.h @@ -1,3 +1,3 @@ P_X_ULOOP(16, 4, { pd = ps1 << sa; -})
\ No newline at end of file +}) diff --git a/riscv/insns/sll32.h b/riscv/insns/sll32.h index b19be32..8a05b39 100644 --- a/riscv/insns/sll32.h +++ b/riscv/insns/sll32.h @@ -1,4 +1,4 @@ require_rv64; P_X_ULOOP(32, 5, { pd = ps1 << sa; -})
\ No newline at end of file +}) diff --git a/riscv/insns/sll8.h b/riscv/insns/sll8.h index 7a36b3c..b7f069a 100644 --- a/riscv/insns/sll8.h +++ b/riscv/insns/sll8.h @@ -1,3 +1,3 @@ P_X_ULOOP(8, 3, { pd = ps1 << sa; -})
\ No newline at end of file +}) diff --git a/riscv/insns/slli16.h b/riscv/insns/slli16.h index 64827d7..8d89a61 100644 --- a/riscv/insns/slli16.h +++ b/riscv/insns/slli16.h @@ -1,3 +1,3 @@ P_I_ULOOP(16, 4, { pd = ps1 << imm4u; -})
\ No newline at end of file +}) diff --git a/riscv/insns/slli32.h b/riscv/insns/slli32.h index 5278586..71d880a 100644 --- a/riscv/insns/slli32.h +++ b/riscv/insns/slli32.h @@ -1,4 +1,4 @@ require_rv64; P_I_ULOOP(32, 5, { pd = ps1 << imm5u; -})
\ No newline at end of file +}) diff --git a/riscv/insns/slli8.h b/riscv/insns/slli8.h index 4e3935c..c997496 100644 --- a/riscv/insns/slli8.h +++ b/riscv/insns/slli8.h @@ -1,3 +1,3 @@ P_I_ULOOP(8, 3, { pd = ps1 << imm3u; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smal.h b/riscv/insns/smal.h index 3849834..07cf93c 100644 --- a/riscv/insns/smal.h +++ b/riscv/insns/smal.h @@ -8,4 +8,4 @@ if (xlen == 32) { res = sext_xlen(P_SH(RS2, 0) * P_SH(RS2, 1)) + sext_xlen(P_SH(RS2, 2) * P_SH(RS2, 3)) + RS1; WRITE_RD(res); -}
\ No newline at end of file +} diff --git a/riscv/insns/smalbb.h b/riscv/insns/smalbb.h index 4178c2b..9a2e799 100644 --- a/riscv/insns/smalbb.h +++ b/riscv/insns/smalbb.h @@ -1,3 +1,3 @@ P_64_PROFILE_REDUCTION(32, { rd += (sreg_t)P_SH(ps1, 0) * (sreg_t)P_SH(ps2, 0); -})
\ No newline at end of file +}) diff --git a/riscv/insns/smalbt.h b/riscv/insns/smalbt.h index dab9f7a..42cf71c 100644 --- a/riscv/insns/smalbt.h +++ b/riscv/insns/smalbt.h @@ -1,3 +1,3 @@ P_64_PROFILE_REDUCTION(32, { rd += (sreg_t)P_SH(ps1, 0) * (sreg_t)P_SH(ps2, 1); -})
\ No newline at end of file +}) diff --git a/riscv/insns/smalda.h b/riscv/insns/smalda.h index 95b16b1..8c06793 100644 --- a/riscv/insns/smalda.h +++ b/riscv/insns/smalda.h @@ -1,3 +1,3 @@ P_64_PROFILE_REDUCTION(16, { rd += ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smaldrs.h b/riscv/insns/smaldrs.h index 8ce8c9b..84e1769 100644 --- a/riscv/insns/smaldrs.h +++ b/riscv/insns/smaldrs.h @@ -4,4 +4,4 @@ P_64_PROFILE_REDUCTION(16, { } else { rd += ps1 * ps2; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/smalds.h b/riscv/insns/smalds.h index 352fa1f..e3cfbd7 100644 --- a/riscv/insns/smalds.h +++ b/riscv/insns/smalds.h @@ -4,4 +4,4 @@ P_64_PROFILE_REDUCTION(16, { } else { rd -= ps1 * ps2; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/smaltt.h b/riscv/insns/smaltt.h index 72d5133..1e654a0 100644 --- a/riscv/insns/smaltt.h +++ b/riscv/insns/smaltt.h @@ -1,3 +1,3 @@ P_64_PROFILE_REDUCTION(32, { rd += P_SH(ps1, 1) * P_SH(ps2, 1); -})
\ No newline at end of file +}) diff --git a/riscv/insns/smalxda.h b/riscv/insns/smalxda.h index b5fa1d0..77675ee 100644 --- a/riscv/insns/smalxda.h +++ b/riscv/insns/smalxda.h @@ -1,4 +1,4 @@ P_64_PROFILE_REDUCTION(32, { rd += (sreg_t)P_SH(ps1, 0) * (sreg_t)P_SH(ps2, 1); rd += (sreg_t)P_SH(ps1, 1) * (sreg_t)P_SH(ps2, 0); -})
\ No newline at end of file +}) diff --git a/riscv/insns/smalxds.h b/riscv/insns/smalxds.h index 3f3c6bd..2ae7eb5 100644 --- a/riscv/insns/smalxds.h +++ b/riscv/insns/smalxds.h @@ -1,4 +1,4 @@ P_64_PROFILE_REDUCTION(32, { rd += (sreg_t)P_SH(ps1, 1) * (sreg_t)P_SH(ps2, 0); rd -= (sreg_t)P_SH(ps1, 0) * (sreg_t)P_SH(ps2, 1); -})
\ No newline at end of file +}) diff --git a/riscv/insns/smaqa.h b/riscv/insns/smaqa.h index 33c9df0..83dda84 100644 --- a/riscv/insns/smaqa.h +++ b/riscv/insns/smaqa.h @@ -1,3 +1,3 @@ P_REDUCTION_LOOP(32, 8, true, false, { pd_res += ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smaqa_su.h b/riscv/insns/smaqa_su.h index 7af3386..4ee0eb7 100644 --- a/riscv/insns/smaqa_su.h +++ b/riscv/insns/smaqa_su.h @@ -1,3 +1,3 @@ P_REDUCTION_SULOOP(32, 8, true, false, { pd_res += ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smar64.h b/riscv/insns/smar64.h index bc87d4f..5c5da77 100644 --- a/riscv/insns/smar64.h +++ b/riscv/insns/smar64.h @@ -1,3 +1,3 @@ P_64_PROFILE_REDUCTION(32, { rd += ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smax16.h b/riscv/insns/smax16.h index eac4eb4..083d63c 100644 --- a/riscv/insns/smax16.h +++ b/riscv/insns/smax16.h @@ -1,3 +1,3 @@ P_LOOP(16, { pd = (ps1 > ps2) ? ps1 : ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smax32.h b/riscv/insns/smax32.h index b0b0075..6563cfc 100644 --- a/riscv/insns/smax32.h +++ b/riscv/insns/smax32.h @@ -1,3 +1,3 @@ P_LOOP(32, { pd = (ps1 > ps2) ? ps1 : ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smax8.h b/riscv/insns/smax8.h index 86303c7..773039e 100644 --- a/riscv/insns/smax8.h +++ b/riscv/insns/smax8.h @@ -1,3 +1,3 @@ P_LOOP(8, { pd = (ps1 > ps2) ? ps1 : ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smbb16.h b/riscv/insns/smbb16.h index d7e82b4..0813bfb 100644 --- a/riscv/insns/smbb16.h +++ b/riscv/insns/smbb16.h @@ -1,3 +1,3 @@ P_LOOP(32, { pd = P_SH(ps1, 0) * P_SH(ps2, 0); -})
\ No newline at end of file +}) diff --git a/riscv/insns/smbt16.h b/riscv/insns/smbt16.h index 55e90c6..953b3a6 100644 --- a/riscv/insns/smbt16.h +++ b/riscv/insns/smbt16.h @@ -1,3 +1,3 @@ P_LOOP(32, { pd = P_SH(ps1, 0) * P_SH(ps2, 1); -})
\ No newline at end of file +}) diff --git a/riscv/insns/smbt32.h b/riscv/insns/smbt32.h index 1d16755..5d34b16 100644 --- a/riscv/insns/smbt32.h +++ b/riscv/insns/smbt32.h @@ -1,3 +1,3 @@ require_rv64; require_extension('P'); -WRITE_RD((sreg_t)P_SW(RS1, 0) * P_SW(RS2, 1));
\ No newline at end of file +WRITE_RD((sreg_t)P_SW(RS1, 0) * P_SW(RS2, 1)); diff --git a/riscv/insns/smdrs.h b/riscv/insns/smdrs.h index 2837a0c..8f47f7d 100644 --- a/riscv/insns/smdrs.h +++ b/riscv/insns/smdrs.h @@ -3,4 +3,4 @@ P_REDUCTION_LOOP(32, 16, false, false, { pd_res -= ps1 * ps2; else pd_res += ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smdrs32.h b/riscv/insns/smdrs32.h index 53ac516..b9874c1 100644 --- a/riscv/insns/smdrs32.h +++ b/riscv/insns/smdrs32.h @@ -4,4 +4,4 @@ require_extension('P'); sreg_t mres0 = (sreg_t)P_SW(RS1, 0) * P_SW(RS2, 0); sreg_t mres1 = (sreg_t)P_SW(RS1, 1) * P_SW(RS2, 1); -WRITE_RD(mres0 - mres1);
\ No newline at end of file +WRITE_RD(mres0 - mres1); diff --git a/riscv/insns/smds.h b/riscv/insns/smds.h index 214ac34..248679a 100644 --- a/riscv/insns/smds.h +++ b/riscv/insns/smds.h @@ -3,4 +3,4 @@ P_REDUCTION_LOOP(32, 16, false, false, { pd_res += ps1 * ps2; else pd_res -= ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smds32.h b/riscv/insns/smds32.h index 97440a5..b25202b 100644 --- a/riscv/insns/smds32.h +++ b/riscv/insns/smds32.h @@ -4,4 +4,4 @@ require_extension('P'); sreg_t mres0 = (sreg_t)P_SW(RS1, 0) * P_SW(RS2, 0); sreg_t mres1 = (sreg_t)P_SW(RS1, 1) * P_SW(RS2, 1); -WRITE_RD(mres1 - mres0);
\ No newline at end of file +WRITE_RD(mres1 - mres0); diff --git a/riscv/insns/smin16.h b/riscv/insns/smin16.h index 921cccb..afb1bb3 100644 --- a/riscv/insns/smin16.h +++ b/riscv/insns/smin16.h @@ -1,3 +1,3 @@ P_LOOP(16, { pd = (ps1 < ps2) ? ps1 : ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smin32.h b/riscv/insns/smin32.h index c1d0cfa..22847cb 100644 --- a/riscv/insns/smin32.h +++ b/riscv/insns/smin32.h @@ -1,3 +1,3 @@ P_LOOP(32, { pd = (ps1 < ps2) ? ps1 : ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smin8.h b/riscv/insns/smin8.h index 04bd43a..084e0e6 100644 --- a/riscv/insns/smin8.h +++ b/riscv/insns/smin8.h @@ -1,3 +1,3 @@ P_LOOP(8, { pd = (ps1 < ps2) ? ps1 : ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smmul.h b/riscv/insns/smmul.h index c305648..df0dd23 100644 --- a/riscv/insns/smmul.h +++ b/riscv/insns/smmul.h @@ -1,4 +1,4 @@ P_LOOP(32, { int64_t mres = (int64_t) ps1 * (int64_t) ps2; pd = mres >> 32; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smmul_u.h b/riscv/insns/smmul_u.h index a41ceb7..55fa617 100644 --- a/riscv/insns/smmul_u.h +++ b/riscv/insns/smmul_u.h @@ -1,4 +1,4 @@ P_LOOP(32, { int64_t mres = (int64_t) ps1 * (int64_t) ps2; pd = ((mres >> 31) + 1) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smmwb.h b/riscv/insns/smmwb.h index 5e798f2..f94aa9c 100644 --- a/riscv/insns/smmwb.h +++ b/riscv/insns/smmwb.h @@ -1,4 +1,4 @@ P_LOOP(32, { int64_t mres = (int64_t) ps1 * (int16_t) P_H(ps2, 0); pd = mres >> 16; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smmwb_u.h b/riscv/insns/smmwb_u.h index 9ea1e49..47c6e36 100644 --- a/riscv/insns/smmwb_u.h +++ b/riscv/insns/smmwb_u.h @@ -1,4 +1,4 @@ P_LOOP(32, { int64_t mres = (int64_t) ps1 * (int16_t) P_H(ps2, 0); pd = ((mres >> 15) + 1) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smmwt.h b/riscv/insns/smmwt.h index 0f88ce1..d8cf439 100644 --- a/riscv/insns/smmwt.h +++ b/riscv/insns/smmwt.h @@ -1,4 +1,4 @@ P_LOOP(32, { int64_t mres = (int64_t) ps1 * (int16_t) P_H(ps2, 1); pd = mres >> 16; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smmwt_u.h b/riscv/insns/smmwt_u.h index 97e6d64..5c5a671 100644 --- a/riscv/insns/smmwt_u.h +++ b/riscv/insns/smmwt_u.h @@ -1,4 +1,4 @@ P_LOOP(32, { int64_t mres = (int64_t) ps1 * (int16_t) P_H(ps2, 1); pd = ((mres >> 15) + 1) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smslda.h b/riscv/insns/smslda.h index eba5727..f838960 100644 --- a/riscv/insns/smslda.h +++ b/riscv/insns/smslda.h @@ -1,3 +1,3 @@ P_64_PROFILE_REDUCTION(16, { rd -= ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smslxda.h b/riscv/insns/smslxda.h index 5e2c43d..7e25f9b 100644 --- a/riscv/insns/smslxda.h +++ b/riscv/insns/smslxda.h @@ -1,4 +1,4 @@ P_64_PROFILE_REDUCTION(32, { rd -= (sreg_t)P_SH(ps1, 1) * (sreg_t)P_SH(ps2, 0); rd -= (sreg_t)P_SH(ps1, 0) * (sreg_t)P_SH(ps2, 1); -})
\ No newline at end of file +}) diff --git a/riscv/insns/smsr64.h b/riscv/insns/smsr64.h index cc44fc5..a43559f 100644 --- a/riscv/insns/smsr64.h +++ b/riscv/insns/smsr64.h @@ -1,3 +1,3 @@ P_64_PROFILE_REDUCTION(32, { rd -= ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smtt16.h b/riscv/insns/smtt16.h index bbc5039..e19c50a 100644 --- a/riscv/insns/smtt16.h +++ b/riscv/insns/smtt16.h @@ -1,3 +1,3 @@ P_LOOP(32, { pd = P_SH(ps1, 1) * P_SH(ps2, 1); -})
\ No newline at end of file +}) diff --git a/riscv/insns/smtt32.h b/riscv/insns/smtt32.h index beb45d8..ccbd3cf 100644 --- a/riscv/insns/smtt32.h +++ b/riscv/insns/smtt32.h @@ -1,3 +1,3 @@ require_rv64; require_extension('P'); -WRITE_RD((sreg_t)P_SW(RS1, 1) * P_SW(RS2, 1));
\ No newline at end of file +WRITE_RD((sreg_t)P_SW(RS1, 1) * P_SW(RS2, 1)); diff --git a/riscv/insns/smul16.h b/riscv/insns/smul16.h index 4ec914b..8f87612 100644 --- a/riscv/insns/smul16.h +++ b/riscv/insns/smul16.h @@ -1,3 +1,3 @@ P_MUL_LOOP(16, { pd = ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smul8.h b/riscv/insns/smul8.h index ee01391..155e50e 100644 --- a/riscv/insns/smul8.h +++ b/riscv/insns/smul8.h @@ -1,3 +1,3 @@ P_MUL_LOOP(8, { pd = ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smulx16.h b/riscv/insns/smulx16.h index 623cb06..14ae047 100644 --- a/riscv/insns/smulx16.h +++ b/riscv/insns/smulx16.h @@ -1,3 +1,3 @@ P_MUL_CROSS_LOOP(16, { pd = ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smulx8.h b/riscv/insns/smulx8.h index d11614d..b5ae41c 100644 --- a/riscv/insns/smulx8.h +++ b/riscv/insns/smulx8.h @@ -1,3 +1,3 @@ P_MUL_CROSS_LOOP(8, { pd = ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smxds.h b/riscv/insns/smxds.h index 49b720b..845d01f 100644 --- a/riscv/insns/smxds.h +++ b/riscv/insns/smxds.h @@ -3,4 +3,4 @@ P_REDUCTION_CROSS_LOOP(32, 16, false, false, { pd_res += ps1 * ps2; else pd_res -= ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/smxds32.h b/riscv/insns/smxds32.h index 25b1666..770537c 100644 --- a/riscv/insns/smxds32.h +++ b/riscv/insns/smxds32.h @@ -4,4 +4,4 @@ require_extension('P'); sreg_t mres0 = (sreg_t)P_SW(RS1, 0) * P_SW(RS2, 1); sreg_t mres1 = (sreg_t)P_SW(RS1, 1) * P_SW(RS2, 0); -WRITE_RD(mres1 - mres0);
\ No newline at end of file +WRITE_RD(mres1 - mres0); diff --git a/riscv/insns/sra16.h b/riscv/insns/sra16.h index bdc9c5f..84a40fb 100644 --- a/riscv/insns/sra16.h +++ b/riscv/insns/sra16.h @@ -1,3 +1,3 @@ P_X_LOOP(16, 4, { pd = ps1 >> sa; -})
\ No newline at end of file +}) diff --git a/riscv/insns/sra16_u.h b/riscv/insns/sra16_u.h index 44ebbc3..c28178e 100644 --- a/riscv/insns/sra16_u.h +++ b/riscv/insns/sra16_u.h @@ -3,4 +3,4 @@ P_X_LOOP(16, 4, { pd = ((ps1 >> (sa - 1)) + 1) >> 1; else pd = ps1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/sra32.h b/riscv/insns/sra32.h index 53a8c07..8b192e0 100644 --- a/riscv/insns/sra32.h +++ b/riscv/insns/sra32.h @@ -1,4 +1,4 @@ require_rv64; P_X_LOOP(32, 5, { pd = ps1 >> sa; -})
\ No newline at end of file +}) diff --git a/riscv/insns/sra32_u.h b/riscv/insns/sra32_u.h index ac9f9e5..e062a88 100644 --- a/riscv/insns/sra32_u.h +++ b/riscv/insns/sra32_u.h @@ -4,4 +4,4 @@ P_X_LOOP(32, 5, { pd = (((uint64_t)(ps1 >> (sa - 1))) + 1) >> 1; else pd = ps1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/sra8.h b/riscv/insns/sra8.h index c92e497..de1bd64 100644 --- a/riscv/insns/sra8.h +++ b/riscv/insns/sra8.h @@ -1,3 +1,3 @@ P_X_LOOP(8, 3, { pd = ps1 >> sa; -})
\ No newline at end of file +}) diff --git a/riscv/insns/sra8_u.h b/riscv/insns/sra8_u.h index e53736a..7061fc4 100644 --- a/riscv/insns/sra8_u.h +++ b/riscv/insns/sra8_u.h @@ -3,4 +3,4 @@ P_X_LOOP(8, 3, { pd = ((ps1 >> (sa - 1)) + 1) >> 1; else pd = ps1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/sra_u.h b/riscv/insns/sra_u.h index 8efb031..d483a5e 100644 --- a/riscv/insns/sra_u.h +++ b/riscv/insns/sra_u.h @@ -6,4 +6,4 @@ if (sa > 0) { WRITE_RD(sext_xlen(((rs1 >> (sa - 1)) + 1) >> 1)); } else { WRITE_RD(sext_xlen(rs1)); -}
\ No newline at end of file +} diff --git a/riscv/insns/srai16.h b/riscv/insns/srai16.h index 57fbdc3..63f9807 100644 --- a/riscv/insns/srai16.h +++ b/riscv/insns/srai16.h @@ -1,3 +1,3 @@ P_I_LOOP(16, 4, { pd = ps1 >> imm4u; -})
\ No newline at end of file +}) diff --git a/riscv/insns/srai16_u.h b/riscv/insns/srai16_u.h index b34bb00..d783581 100644 --- a/riscv/insns/srai16_u.h +++ b/riscv/insns/srai16_u.h @@ -3,4 +3,4 @@ P_I_LOOP(16, 4, { pd = ((ps1 >> (imm4u - 1)) + 1) >> 1; else pd = ps1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/srai32.h b/riscv/insns/srai32.h index 85172cf..9058ba9 100644 --- a/riscv/insns/srai32.h +++ b/riscv/insns/srai32.h @@ -1,4 +1,4 @@ require_rv64; P_I_LOOP(32, 5, { pd = ps1 >> imm5u; -})
\ No newline at end of file +}) diff --git a/riscv/insns/srai32_u.h b/riscv/insns/srai32_u.h index 5c4330d..a5fe4d3 100644 --- a/riscv/insns/srai32_u.h +++ b/riscv/insns/srai32_u.h @@ -4,4 +4,4 @@ P_I_LOOP(32, 5, { pd = (((uint64_t)(ps1 >> (imm5u - 1))) + 1) >> 1; else pd = ps1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/srai8.h b/riscv/insns/srai8.h index d6f003d..0141933 100644 --- a/riscv/insns/srai8.h +++ b/riscv/insns/srai8.h @@ -1,3 +1,3 @@ P_I_LOOP(8, 3, { pd = ps1 >> imm3u; -})
\ No newline at end of file +}) diff --git a/riscv/insns/srai8_u.h b/riscv/insns/srai8_u.h index c2970ed..be7bfaf 100644 --- a/riscv/insns/srai8_u.h +++ b/riscv/insns/srai8_u.h @@ -3,4 +3,4 @@ P_I_LOOP(8, 3, { pd = ((ps1 >> (imm3u - 1)) + 1) >> 1; else pd = ps1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/srai_u.h b/riscv/insns/srai_u.h index 52ae63f..1c3d32c 100644 --- a/riscv/insns/srai_u.h +++ b/riscv/insns/srai_u.h @@ -7,4 +7,4 @@ if (sa > 0) { WRITE_RD(sext_xlen(((rs1 >> (sa - 1)) + 1) >> 1)); } else { WRITE_RD(sext_xlen(rs1)); -}
\ No newline at end of file +} diff --git a/riscv/insns/sraiw_u.h b/riscv/insns/sraiw_u.h index dd26707..793475e 100644 --- a/riscv/insns/sraiw_u.h +++ b/riscv/insns/sraiw_u.h @@ -6,4 +6,4 @@ if (sa != 0) { WRITE_RD(sext32(((P_SW(RS1, 0) >> (sa - 1)) + 1) >> 1)); } else { WRITE_RD(sext32(P_SW(RS1, 0))); -}
\ No newline at end of file +} diff --git a/riscv/insns/srl16.h b/riscv/insns/srl16.h index dede8e3..35f9cec 100644 --- a/riscv/insns/srl16.h +++ b/riscv/insns/srl16.h @@ -1,3 +1,3 @@ P_X_ULOOP(16, 4, { pd = ps1 >> sa; -})
\ No newline at end of file +}) diff --git a/riscv/insns/srl16_u.h b/riscv/insns/srl16_u.h index f7b0571..17d1bc0 100644 --- a/riscv/insns/srl16_u.h +++ b/riscv/insns/srl16_u.h @@ -4,4 +4,4 @@ P_X_ULOOP(16, 4, { } else { pd = ps1; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/srl32.h b/riscv/insns/srl32.h index c50522f..2ad116c 100644 --- a/riscv/insns/srl32.h +++ b/riscv/insns/srl32.h @@ -1,4 +1,4 @@ require_rv64; P_X_ULOOP(32, 5, { pd = ps1 >> sa; -})
\ No newline at end of file +}) diff --git a/riscv/insns/srl32_u.h b/riscv/insns/srl32_u.h index 00de9a1..d637546 100644 --- a/riscv/insns/srl32_u.h +++ b/riscv/insns/srl32_u.h @@ -5,4 +5,4 @@ P_X_ULOOP(32, 5, { } else { pd = ps1; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/srl8.h b/riscv/insns/srl8.h index f5891fa..f7d74a9 100644 --- a/riscv/insns/srl8.h +++ b/riscv/insns/srl8.h @@ -1,3 +1,3 @@ P_X_ULOOP(8, 3, { pd = ps1 >> sa; -})
\ No newline at end of file +}) diff --git a/riscv/insns/srl8_u.h b/riscv/insns/srl8_u.h index 956d260..26415a5 100644 --- a/riscv/insns/srl8_u.h +++ b/riscv/insns/srl8_u.h @@ -4,4 +4,4 @@ P_X_ULOOP(8, 3, { } else { pd = ps1; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/srli16.h b/riscv/insns/srli16.h index 0ad3cb4..cbd685f 100644 --- a/riscv/insns/srli16.h +++ b/riscv/insns/srli16.h @@ -1,3 +1,3 @@ P_I_ULOOP(16, 4, { pd = ps1 >> imm4u; -})
\ No newline at end of file +}) diff --git a/riscv/insns/srli16_u.h b/riscv/insns/srli16_u.h index 4eb9248..2ba533a 100644 --- a/riscv/insns/srli16_u.h +++ b/riscv/insns/srli16_u.h @@ -4,4 +4,4 @@ P_I_ULOOP(16, 4, { } else { pd = ps1; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/srli32.h b/riscv/insns/srli32.h index f5d229c..f3d53af 100644 --- a/riscv/insns/srli32.h +++ b/riscv/insns/srli32.h @@ -1,4 +1,4 @@ require_rv64; P_I_ULOOP(32, 5, { pd = ps1 >> imm5u; -})
\ No newline at end of file +}) diff --git a/riscv/insns/srli32_u.h b/riscv/insns/srli32_u.h index 61ddd97..6d2327f 100644 --- a/riscv/insns/srli32_u.h +++ b/riscv/insns/srli32_u.h @@ -5,4 +5,4 @@ P_I_ULOOP(32, 5, { } else { pd = ps1; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/srli8.h b/riscv/insns/srli8.h index bf64250..103f0ed 100644 --- a/riscv/insns/srli8.h +++ b/riscv/insns/srli8.h @@ -1,3 +1,3 @@ P_I_ULOOP(8, 3, { pd = ps1 >> imm3u; -})
\ No newline at end of file +}) diff --git a/riscv/insns/srli8_u.h b/riscv/insns/srli8_u.h index 1154177..9fa7f8c 100644 --- a/riscv/insns/srli8_u.h +++ b/riscv/insns/srli8_u.h @@ -4,4 +4,4 @@ P_I_ULOOP(8, 3, { } else { pd = ps1; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/stas16.h b/riscv/insns/stas16.h index 7cea5ae..949e5c8 100644 --- a/riscv/insns/stas16.h +++ b/riscv/insns/stas16.h @@ -2,4 +2,4 @@ P_STRAIGHT_LOOP(16, { pd = ps1 + ps2; }, { pd = ps1 - ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/stas32.h b/riscv/insns/stas32.h index fad20f0..2009a69 100644 --- a/riscv/insns/stas32.h +++ b/riscv/insns/stas32.h @@ -3,4 +3,4 @@ P_STRAIGHT_LOOP(32, { pd = ps1 + ps2; }, { pd = ps1 - ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/stsa16.h b/riscv/insns/stsa16.h index 9ca05ab..7e4371d 100644 --- a/riscv/insns/stsa16.h +++ b/riscv/insns/stsa16.h @@ -2,4 +2,4 @@ P_STRAIGHT_LOOP(16, { pd = ps1 - ps2; }, { pd = ps1 + ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/stsa32.h b/riscv/insns/stsa32.h index b6be39a..e2d81b7 100644 --- a/riscv/insns/stsa32.h +++ b/riscv/insns/stsa32.h @@ -3,4 +3,4 @@ P_STRAIGHT_LOOP(32, { pd = ps1 - ps2; }, { pd = ps1 + ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/sub16.h b/riscv/insns/sub16.h index 1bcca23..5d36aaf 100644 --- a/riscv/insns/sub16.h +++ b/riscv/insns/sub16.h @@ -1,3 +1,3 @@ P_LOOP(16, { pd = ps1 - ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/sub32.h b/riscv/insns/sub32.h index 06e645c..70bbc53 100644 --- a/riscv/insns/sub32.h +++ b/riscv/insns/sub32.h @@ -1,4 +1,4 @@ require_rv64; P_LOOP(32, { pd = ps1 - ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/sub64.h b/riscv/insns/sub64.h index 0b747fe..d977526 100644 --- a/riscv/insns/sub64.h +++ b/riscv/insns/sub64.h @@ -1,3 +1,3 @@ P_64_PROFILE({ rd = rs1 - rs2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/sub8.h b/riscv/insns/sub8.h index 8cdca73..7f13d61 100644 --- a/riscv/insns/sub8.h +++ b/riscv/insns/sub8.h @@ -1,3 +1,3 @@ P_LOOP(8, { pd = ps1 - ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/sunpkd810.h b/riscv/insns/sunpkd810.h index b93a981..2a2f7c3 100644 --- a/riscv/insns/sunpkd810.h +++ b/riscv/insns/sunpkd810.h @@ -1 +1 @@ -P_SUNPKD8(1, 0)
\ No newline at end of file +P_SUNPKD8(1, 0) diff --git a/riscv/insns/sunpkd820.h b/riscv/insns/sunpkd820.h index 5ded8f6..84d5248 100644 --- a/riscv/insns/sunpkd820.h +++ b/riscv/insns/sunpkd820.h @@ -1 +1 @@ -P_SUNPKD8(2, 0)
\ No newline at end of file +P_SUNPKD8(2, 0) diff --git a/riscv/insns/sunpkd830.h b/riscv/insns/sunpkd830.h index 84688c4..8817907 100644 --- a/riscv/insns/sunpkd830.h +++ b/riscv/insns/sunpkd830.h @@ -1 +1 @@ -P_SUNPKD8(3, 0)
\ No newline at end of file +P_SUNPKD8(3, 0) diff --git a/riscv/insns/sunpkd831.h b/riscv/insns/sunpkd831.h index bf19ef0..98ed748 100644 --- a/riscv/insns/sunpkd831.h +++ b/riscv/insns/sunpkd831.h @@ -1 +1 @@ -P_SUNPKD8(3, 1)
\ No newline at end of file +P_SUNPKD8(3, 1) diff --git a/riscv/insns/sunpkd832.h b/riscv/insns/sunpkd832.h index ae2ce0d..b0ac29f 100644 --- a/riscv/insns/sunpkd832.h +++ b/riscv/insns/sunpkd832.h @@ -1 +1 @@ -P_SUNPKD8(3, 2)
\ No newline at end of file +P_SUNPKD8(3, 2) diff --git a/riscv/insns/swap8.h b/riscv/insns/swap8.h index d57304d..762fb18 100644 --- a/riscv/insns/swap8.h +++ b/riscv/insns/swap8.h @@ -1,4 +1,4 @@ P_ONE_LOOP_BASE(8) auto pd = P_FIELD(rs1, (i ^ 1), 8); WRITE_PD(); -P_LOOP_END()
\ No newline at end of file +P_LOOP_END() diff --git a/riscv/insns/uclip16.h b/riscv/insns/uclip16.h index faf57ca..cc1f58a 100644 --- a/riscv/insns/uclip16.h +++ b/riscv/insns/uclip16.h @@ -9,4 +9,4 @@ P_I_LOOP(16, 4, { pd = 0; P_SET_OV(1); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/uclip32.h b/riscv/insns/uclip32.h index f5d89ad..4d24afb 100644 --- a/riscv/insns/uclip32.h +++ b/riscv/insns/uclip32.h @@ -9,4 +9,4 @@ P_I_LOOP(32, 5, { pd = 0; P_SET_OV(1); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/uclip8.h b/riscv/insns/uclip8.h index e2978a6..87a23ba 100644 --- a/riscv/insns/uclip8.h +++ b/riscv/insns/uclip8.h @@ -9,4 +9,4 @@ P_I_LOOP(8, 3, { pd = 0; P_SET_OV(1); } -})
\ No newline at end of file +}) diff --git a/riscv/insns/ucmple16.h b/riscv/insns/ucmple16.h index b3ba04d..fe2b93f 100644 --- a/riscv/insns/ucmple16.h +++ b/riscv/insns/ucmple16.h @@ -1,3 +1,3 @@ P_ULOOP(16, { pd = (ps1 <= ps2) ? -1 : 0; -})
\ No newline at end of file +}) diff --git a/riscv/insns/ucmple8.h b/riscv/insns/ucmple8.h index 78f12b8..bd44cb0 100644 --- a/riscv/insns/ucmple8.h +++ b/riscv/insns/ucmple8.h @@ -1,3 +1,3 @@ P_ULOOP(8, { pd = (ps1 <= ps2) ? -1 : 0; -})
\ No newline at end of file +}) diff --git a/riscv/insns/ucmplt16.h b/riscv/insns/ucmplt16.h index fca78a8..fa7512c 100644 --- a/riscv/insns/ucmplt16.h +++ b/riscv/insns/ucmplt16.h @@ -1,3 +1,3 @@ P_ULOOP(16, { pd = (ps1 < ps2) ? -1 : 0; -})
\ No newline at end of file +}) diff --git a/riscv/insns/ucmplt8.h b/riscv/insns/ucmplt8.h index 0ebdf50..6fa85b1 100644 --- a/riscv/insns/ucmplt8.h +++ b/riscv/insns/ucmplt8.h @@ -1,3 +1,3 @@ P_ULOOP(8, { pd = (ps1 < ps2) ? -1 : 0; -})
\ No newline at end of file +}) diff --git a/riscv/insns/ukadd16.h b/riscv/insns/ukadd16.h index 57c661a..8d74291 100644 --- a/riscv/insns/ukadd16.h +++ b/riscv/insns/ukadd16.h @@ -2,4 +2,4 @@ P_ULOOP(16, { bool sat = false; pd = (sat_addu<uint16_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/ukadd32.h b/riscv/insns/ukadd32.h index 7613e59..6608027 100644 --- a/riscv/insns/ukadd32.h +++ b/riscv/insns/ukadd32.h @@ -3,4 +3,4 @@ P_ULOOP(32, { bool sat = false; pd = (sat_addu<uint32_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/ukadd64.h b/riscv/insns/ukadd64.h index 047e276..e61e2f9 100644 --- a/riscv/insns/ukadd64.h +++ b/riscv/insns/ukadd64.h @@ -2,4 +2,4 @@ P_64_UPROFILE({ bool sat = false; rd = (sat_addu<uint64_t>(rs1, rs2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/ukadd8.h b/riscv/insns/ukadd8.h index 68708e2..cc0a5f2 100644 --- a/riscv/insns/ukadd8.h +++ b/riscv/insns/ukadd8.h @@ -2,4 +2,4 @@ P_ULOOP(8, { bool sat = false; pd = (sat_addu<uint8_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/ukaddh.h b/riscv/insns/ukaddh.h index 4eed73f..e4fad34 100644 --- a/riscv/insns/ukaddh.h +++ b/riscv/insns/ukaddh.h @@ -1,4 +1,4 @@ require_extension('P'); sreg_t res = (sreg_t)P_W(RS1, 0) + (sreg_t)P_W(RS2, 0); P_SATU(res, 16); -WRITE_RD(sext_xlen((int16_t)res));
\ No newline at end of file +WRITE_RD(sext_xlen((int16_t)res)); diff --git a/riscv/insns/ukaddw.h b/riscv/insns/ukaddw.h index 61c109f..7188d80 100644 --- a/riscv/insns/ukaddw.h +++ b/riscv/insns/ukaddw.h @@ -1,4 +1,4 @@ require_extension('P'); sreg_t res = (sreg_t)P_W(RS1, 0) + (sreg_t)P_W(RS2, 0); P_SATU(res, 32); -WRITE_RD(sext32(res));
\ No newline at end of file +WRITE_RD(sext32(res)); diff --git a/riscv/insns/ukcrsa16.h b/riscv/insns/ukcrsa16.h index 91c505d..584ff5b 100644 --- a/riscv/insns/ukcrsa16.h +++ b/riscv/insns/ukcrsa16.h @@ -6,4 +6,4 @@ P_CROSS_ULOOP(16, { bool sat = false; pd = (sat_addu<uint16_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/ukcrsa32.h b/riscv/insns/ukcrsa32.h index fd6a455..7eda7a6 100644 --- a/riscv/insns/ukcrsa32.h +++ b/riscv/insns/ukcrsa32.h @@ -7,4 +7,4 @@ P_CROSS_ULOOP(32, { bool sat = false; pd = (sat_addu<uint32_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/ukmar64.h b/riscv/insns/ukmar64.h index e12be5d..8f6d4f0 100644 --- a/riscv/insns/ukmar64.h +++ b/riscv/insns/ukmar64.h @@ -2,4 +2,4 @@ P_64_UPROFILE_REDUCTION(32, { bool sat = false; rd = (sat_addu<uint64_t>(rd, ps1 * ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/ukmsr64.h b/riscv/insns/ukmsr64.h index d2e0ac3..321c03b 100644 --- a/riscv/insns/ukmsr64.h +++ b/riscv/insns/ukmsr64.h @@ -2,4 +2,4 @@ P_64_UPROFILE_REDUCTION(32, { bool sat = false; rd = (sat_subu<uint64_t>(rd, ps1 * ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/ukstas16.h b/riscv/insns/ukstas16.h index 110b247..cccf62a 100644 --- a/riscv/insns/ukstas16.h +++ b/riscv/insns/ukstas16.h @@ -6,4 +6,4 @@ P_STRAIGHT_ULOOP(16, { bool sat = false; pd = (sat_subu<uint16_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/ukstas32.h b/riscv/insns/ukstas32.h index 62a39eb..02a101f 100644 --- a/riscv/insns/ukstas32.h +++ b/riscv/insns/ukstas32.h @@ -7,4 +7,4 @@ P_STRAIGHT_ULOOP(32, { bool sat = false; pd = (sat_subu<uint32_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/ukstsa16.h b/riscv/insns/ukstsa16.h index 47a2fc1..2020bbb 100644 --- a/riscv/insns/ukstsa16.h +++ b/riscv/insns/ukstsa16.h @@ -6,4 +6,4 @@ P_STRAIGHT_ULOOP(16, { bool sat = false; pd = (sat_addu<uint16_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/ukstsa32.h b/riscv/insns/ukstsa32.h index 52a078f..fbd2a91 100644 --- a/riscv/insns/ukstsa32.h +++ b/riscv/insns/ukstsa32.h @@ -7,4 +7,4 @@ P_STRAIGHT_ULOOP(32, { bool sat = false; pd = (sat_addu<uint32_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/uksub16.h b/riscv/insns/uksub16.h index b330622..07968d8 100644 --- a/riscv/insns/uksub16.h +++ b/riscv/insns/uksub16.h @@ -2,4 +2,4 @@ P_ULOOP(16, { bool sat = false; pd = (sat_subu<uint16_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/uksub32.h b/riscv/insns/uksub32.h index da1fd20..3392c69 100644 --- a/riscv/insns/uksub32.h +++ b/riscv/insns/uksub32.h @@ -3,4 +3,4 @@ P_ULOOP(32, { bool sat = false; pd = (sat_subu<uint32_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/uksub64.h b/riscv/insns/uksub64.h index 7a0deb1..fa5d5fd 100644 --- a/riscv/insns/uksub64.h +++ b/riscv/insns/uksub64.h @@ -2,4 +2,4 @@ P_64_UPROFILE({ bool sat = false; rd = (sat_subu<uint64_t>(rs1, rs2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/uksub8.h b/riscv/insns/uksub8.h index 3d47608..5771e08 100644 --- a/riscv/insns/uksub8.h +++ b/riscv/insns/uksub8.h @@ -2,4 +2,4 @@ P_ULOOP(8, { bool sat = false; pd = (sat_subu<uint8_t>(ps1, ps2, sat)); P_SET_OV(sat); -})
\ No newline at end of file +}) diff --git a/riscv/insns/uksubh.h b/riscv/insns/uksubh.h index be9ec45..c050543 100644 --- a/riscv/insns/uksubh.h +++ b/riscv/insns/uksubh.h @@ -1,4 +1,4 @@ require_extension('P'); sreg_t res = (sreg_t)P_W(RS1, 0) - (sreg_t)P_W(RS2, 0); P_SATU(res, 16); -WRITE_RD(sext_xlen((int16_t)res));
\ No newline at end of file +WRITE_RD(sext_xlen((int16_t)res)); diff --git a/riscv/insns/uksubw.h b/riscv/insns/uksubw.h index 8a088cd..f9758b3 100644 --- a/riscv/insns/uksubw.h +++ b/riscv/insns/uksubw.h @@ -1,4 +1,4 @@ require_extension('P'); sreg_t res = (sreg_t)P_W(RS1, 0) - (sreg_t)P_W(RS2, 0); P_SATU(res, 32); -WRITE_RD(sext32(res));
\ No newline at end of file +WRITE_RD(sext32(res)); diff --git a/riscv/insns/umaqa.h b/riscv/insns/umaqa.h index 69cd048..474b174 100644 --- a/riscv/insns/umaqa.h +++ b/riscv/insns/umaqa.h @@ -1,3 +1,3 @@ P_REDUCTION_ULOOP(32, 8, true, false, { pd_res += ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/umar64.h b/riscv/insns/umar64.h index a131104..0a8a352 100644 --- a/riscv/insns/umar64.h +++ b/riscv/insns/umar64.h @@ -1,3 +1,3 @@ P_64_UPROFILE_REDUCTION(32, { rd += ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/umax16.h b/riscv/insns/umax16.h index 8cc897b..e60ed4a 100644 --- a/riscv/insns/umax16.h +++ b/riscv/insns/umax16.h @@ -1,3 +1,3 @@ P_ULOOP(16, { pd = (ps1 > ps2) ? ps1 : ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/umax32.h b/riscv/insns/umax32.h index f5af457..6156345 100644 --- a/riscv/insns/umax32.h +++ b/riscv/insns/umax32.h @@ -1,4 +1,4 @@ require_rv64; P_ULOOP(32, { pd = (ps1 > ps2) ? ps1 : ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/umax8.h b/riscv/insns/umax8.h index 22a89f0..8a575a6 100644 --- a/riscv/insns/umax8.h +++ b/riscv/insns/umax8.h @@ -1,3 +1,3 @@ P_ULOOP(8, { pd = (ps1 > ps2) ? ps1 : ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/umin16.h b/riscv/insns/umin16.h index 8e7b6a4..d414211 100644 --- a/riscv/insns/umin16.h +++ b/riscv/insns/umin16.h @@ -1,3 +1,3 @@ P_ULOOP(16, { pd = (ps1 < ps2) ? ps1 : ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/umin32.h b/riscv/insns/umin32.h index d9220db..9669945 100644 --- a/riscv/insns/umin32.h +++ b/riscv/insns/umin32.h @@ -1,4 +1,4 @@ require_rv64; P_ULOOP(32, { pd = (ps1 < ps2) ? ps1 : ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/umin8.h b/riscv/insns/umin8.h index 9194fd7..bea8ccd 100644 --- a/riscv/insns/umin8.h +++ b/riscv/insns/umin8.h @@ -1,3 +1,3 @@ P_ULOOP(8, { pd = (ps1 < ps2) ? ps1 : ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/umsr64.h b/riscv/insns/umsr64.h index 1b28267..0e186d9 100644 --- a/riscv/insns/umsr64.h +++ b/riscv/insns/umsr64.h @@ -1,3 +1,3 @@ P_64_UPROFILE_REDUCTION(32, { rd -= ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/umul16.h b/riscv/insns/umul16.h index 1f5891d..860f942 100644 --- a/riscv/insns/umul16.h +++ b/riscv/insns/umul16.h @@ -1,3 +1,3 @@ P_MUL_ULOOP(16, { pd = ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/umul8.h b/riscv/insns/umul8.h index d96ab73..04d7a6e 100644 --- a/riscv/insns/umul8.h +++ b/riscv/insns/umul8.h @@ -1,3 +1,3 @@ P_MUL_ULOOP(8, { pd = ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/umulx16.h b/riscv/insns/umulx16.h index e3dd5a3..5abe9cf 100644 --- a/riscv/insns/umulx16.h +++ b/riscv/insns/umulx16.h @@ -1,3 +1,3 @@ P_MUL_CROSS_ULOOP(16, { pd = ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/umulx8.h b/riscv/insns/umulx8.h index 48062da..a2b073d 100644 --- a/riscv/insns/umulx8.h +++ b/riscv/insns/umulx8.h @@ -1,3 +1,3 @@ P_MUL_CROSS_ULOOP(8, { pd = ps1 * ps2; -})
\ No newline at end of file +}) diff --git a/riscv/insns/uradd16.h b/riscv/insns/uradd16.h index 2349568..29610bf 100644 --- a/riscv/insns/uradd16.h +++ b/riscv/insns/uradd16.h @@ -1,3 +1,3 @@ P_ULOOP(16, { pd = (ps1 + ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/uradd32.h b/riscv/insns/uradd32.h index 9b17e7c..4f791d9 100644 --- a/riscv/insns/uradd32.h +++ b/riscv/insns/uradd32.h @@ -1,4 +1,4 @@ require_rv64; P_ULOOP(32, { pd = ((uint64_t)ps1 + ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/uradd64.h b/riscv/insns/uradd64.h index 3005c98..f6787e1 100644 --- a/riscv/insns/uradd64.h +++ b/riscv/insns/uradd64.h @@ -6,4 +6,4 @@ P_64_UPROFILE({ } else { rd >>= 1; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/uradd8.h b/riscv/insns/uradd8.h index 277d2d3..412e3d5 100644 --- a/riscv/insns/uradd8.h +++ b/riscv/insns/uradd8.h @@ -1,3 +1,3 @@ P_ULOOP(8, { pd = (ps1 + ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/uraddw.h b/riscv/insns/uraddw.h index 97c5710..a211763 100644 --- a/riscv/insns/uraddw.h +++ b/riscv/insns/uraddw.h @@ -1,4 +1,4 @@ require_extension('P'); reg_t res = (reg_t)P_W(RS1, 0) + (reg_t)P_W(RS2, 0); res >>= 1; -WRITE_RD(sext_xlen((int32_t)res));
\ No newline at end of file +WRITE_RD(sext_xlen((int32_t)res)); diff --git a/riscv/insns/urcras16.h b/riscv/insns/urcras16.h index 592920d..2bac315 100644 --- a/riscv/insns/urcras16.h +++ b/riscv/insns/urcras16.h @@ -2,4 +2,4 @@ P_CROSS_ULOOP(16, { pd = (ps1 + ps2) >> 1; }, { pd = (ps1 - ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/urcras32.h b/riscv/insns/urcras32.h index 0e5a201..a08e877 100644 --- a/riscv/insns/urcras32.h +++ b/riscv/insns/urcras32.h @@ -3,4 +3,4 @@ P_CROSS_ULOOP(32, { pd = ((uint64_t)ps1 + ps2) >> 1; }, { pd = ((uint64_t)ps1 - ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/urcrsa16.h b/riscv/insns/urcrsa16.h index 65fe17b..a890990 100644 --- a/riscv/insns/urcrsa16.h +++ b/riscv/insns/urcrsa16.h @@ -2,4 +2,4 @@ P_CROSS_ULOOP(16, { pd = (ps1 - ps2) >> 1; }, { pd = (ps1 + ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/urcrsa32.h b/riscv/insns/urcrsa32.h index fda986f..7ddd4f9 100644 --- a/riscv/insns/urcrsa32.h +++ b/riscv/insns/urcrsa32.h @@ -3,4 +3,4 @@ P_CROSS_ULOOP(32, { pd = ((uint64_t)ps1 - ps2) >> 1; }, { pd = ((uint64_t)ps1 + ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/urstas16.h b/riscv/insns/urstas16.h index 9aa4697..3cc89d8 100644 --- a/riscv/insns/urstas16.h +++ b/riscv/insns/urstas16.h @@ -2,4 +2,4 @@ P_STRAIGHT_ULOOP(16, { pd = (ps1 + ps2) >> 1; }, { pd = (ps1 - ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/urstas32.h b/riscv/insns/urstas32.h index c79d3ce..668fa66 100644 --- a/riscv/insns/urstas32.h +++ b/riscv/insns/urstas32.h @@ -3,4 +3,4 @@ P_STRAIGHT_ULOOP(32, { pd = ((uint64_t)ps1 + ps2) >> 1; }, { pd = ((uint64_t)ps1 - ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/urstsa16.h b/riscv/insns/urstsa16.h index 3aec9c9..a88bcf1 100644 --- a/riscv/insns/urstsa16.h +++ b/riscv/insns/urstsa16.h @@ -2,4 +2,4 @@ P_STRAIGHT_ULOOP(16, { pd = (ps1 - ps2) >> 1; }, { pd = (ps1 + ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/urstsa32.h b/riscv/insns/urstsa32.h index 577fba1..097337c 100644 --- a/riscv/insns/urstsa32.h +++ b/riscv/insns/urstsa32.h @@ -3,4 +3,4 @@ P_STRAIGHT_ULOOP(32, { pd = ((uint64_t)ps1 - ps2) >> 1; }, { pd = ((uint64_t)ps1 + ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/ursub16.h b/riscv/insns/ursub16.h index 153d8ec..bcd09f0 100644 --- a/riscv/insns/ursub16.h +++ b/riscv/insns/ursub16.h @@ -1,3 +1,3 @@ P_ULOOP(16, { pd = (ps1 - ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/ursub32.h b/riscv/insns/ursub32.h index d43e065..215436d 100644 --- a/riscv/insns/ursub32.h +++ b/riscv/insns/ursub32.h @@ -1,4 +1,4 @@ require_rv64; P_ULOOP(32, { pd = ((uint64_t)ps1 - ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/ursub64.h b/riscv/insns/ursub64.h index 6354e3e..3d845a0 100644 --- a/riscv/insns/ursub64.h +++ b/riscv/insns/ursub64.h @@ -6,4 +6,4 @@ P_64_UPROFILE({ } else { rd >>= 1; } -})
\ No newline at end of file +}) diff --git a/riscv/insns/ursub8.h b/riscv/insns/ursub8.h index 74dea5d..d66a995 100644 --- a/riscv/insns/ursub8.h +++ b/riscv/insns/ursub8.h @@ -1,3 +1,3 @@ P_ULOOP(8, { pd = (ps1 - ps2) >> 1; -})
\ No newline at end of file +}) diff --git a/riscv/insns/ursubw.h b/riscv/insns/ursubw.h index 2b27955..4945785 100644 --- a/riscv/insns/ursubw.h +++ b/riscv/insns/ursubw.h @@ -1,4 +1,4 @@ require_extension('P'); reg_t res = (reg_t)P_W(RS1, 0) - (reg_t)P_W(RS2, 0); res >>= 1; -WRITE_RD(sext_xlen((int32_t)res));
\ No newline at end of file +WRITE_RD(sext_xlen((int32_t)res)); diff --git a/riscv/insns/wext.h b/riscv/insns/wext.h index b849011..837181c 100644 --- a/riscv/insns/wext.h +++ b/riscv/insns/wext.h @@ -1,4 +1,4 @@ require_extension('P'); reg_t rs1 = (xlen == 32) ? RS1_PAIR : RS1; reg_t lsb = get_field(RS2, make_mask64(0, 5)); -WRITE_RD(sext32(get_field(rs1, make_mask64(lsb, 32))));
\ No newline at end of file +WRITE_RD(sext32(get_field(rs1, make_mask64(lsb, 32)))); diff --git a/riscv/insns/wexti.h b/riscv/insns/wexti.h index 752b173..9c6d245 100644 --- a/riscv/insns/wexti.h +++ b/riscv/insns/wexti.h @@ -1,4 +1,4 @@ require_extension('P'); reg_t rs1 = (xlen == 32) ? RS1_PAIR : RS1; reg_t lsb = insn.p_imm5(); -WRITE_RD(sext32(get_field(rs1, make_mask64(lsb, 32))));
\ No newline at end of file +WRITE_RD(sext32(get_field(rs1, make_mask64(lsb, 32)))); diff --git a/riscv/insns/zunpkd810.h b/riscv/insns/zunpkd810.h index d5cf460..88434de 100644 --- a/riscv/insns/zunpkd810.h +++ b/riscv/insns/zunpkd810.h @@ -1 +1 @@ -P_ZUNPKD8(1, 0)
\ No newline at end of file +P_ZUNPKD8(1, 0) diff --git a/riscv/insns/zunpkd820.h b/riscv/insns/zunpkd820.h index 149d1de..f206508 100644 --- a/riscv/insns/zunpkd820.h +++ b/riscv/insns/zunpkd820.h @@ -1 +1 @@ -P_ZUNPKD8(2, 0)
\ No newline at end of file +P_ZUNPKD8(2, 0) diff --git a/riscv/insns/zunpkd830.h b/riscv/insns/zunpkd830.h index aa1f554..1365514 100644 --- a/riscv/insns/zunpkd830.h +++ b/riscv/insns/zunpkd830.h @@ -1 +1 @@ -P_ZUNPKD8(3, 0)
\ No newline at end of file +P_ZUNPKD8(3, 0) diff --git a/riscv/insns/zunpkd831.h b/riscv/insns/zunpkd831.h index 494e2f1..8febe77 100644 --- a/riscv/insns/zunpkd831.h +++ b/riscv/insns/zunpkd831.h @@ -1 +1 @@ -P_ZUNPKD8(3, 1)
\ No newline at end of file +P_ZUNPKD8(3, 1) diff --git a/riscv/insns/zunpkd832.h b/riscv/insns/zunpkd832.h index 42b01ea..f14030b 100644 --- a/riscv/insns/zunpkd832.h +++ b/riscv/insns/zunpkd832.h @@ -1 +1 @@ -P_ZUNPKD8(3, 2)
\ No newline at end of file +P_ZUNPKD8(3, 2) |