Re: [RFC/RFA] [PATCH v2 09/12] Add symbolic execution support.

2024-08-26 Thread Matevos Mehrabyan
On Mon, Aug 26, 2024 at 2:44 AM Jeff Law wrote: > > > On 8/20/24 5:41 AM, Richard Biener wrote: > > > > > So the store-merging variant IIRC tracks a single overall source > > only (unless it was extended and I missed that) and operates at > > a byte granularity. I did want to extend it to suppor

Re: [RFC/RFA] [PATCH v2 09/12] Add symbolic execution support.

2024-08-12 Thread Matevos Mehrabyan
in the source file as it's done for gimple-ssa-store-merging.cc? > We have some crude symbolic execution in gimple-ssa-store-merging.cc > for the purpose of detecting byte-swaps. That operates on a byte level. > It is quite efficient. I assume that the new symbolic execution framework

Re: [RFC/RFA] [PATCH v2 09/12] Add symbolic execution support.

2024-08-12 Thread Matevos Mehrabyan
gt; >Supports only CRC specific operations. > > > >Example: > > > >uint8_t crc; > >uint8_t pol = 1; > >crc = crc ^ pol; > > > >during symbolic execution crc's value will be: > >crc(8), crc(7), ... crc(1), crc(

[RFC/RFA] [PATCH v3 09/12] Add symbolic execution support.

2024-08-12 Thread Matevos Mehrabyan
Add symbolic execution support. Gives an opportunity to execute the code on bit level, assigning symbolic values to the variables which don't have initial values. Supports only CRC specific operations. Example: uint8_t crc; uint8_t pol = 1; crc = crc ^ pol; during symbolic execution crc's value

RISC-V: Add divmod instruction support

2023-02-17 Thread Matevos Mehrabyan via Gcc-patches
Hi all, If we have division and remainder calculations with the same operands: a = b / c; d = b % c; We can replace the calculation of remainder with multiplication + subtraction, using the result from the previous division: a = b / c; d = a * c; d = b - d; Which will be faster. Curre