tacle / tacle-bench

TACLe Benchmarks
41 stars 38 forks source link

Wrapping signed arithmetic is undefined behavior #42

Open Lithrein opened 8 months ago

Lithrein commented 8 months ago

https://github.com/tacle/tacle-bench/blob/64000923b40f5e52aad9190621d0dc97f7dc2290/bench/sequential/adpcm_enc/adpcm_enc.c#L242

This line needs -fwrapv otherwise modern compilers could optimize it wrongly.