https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114476
--- Comment #5 from Robin Dapp ---
So the result is -9 instead of 9 (or vice versa) and this happens (just) with
vectorization. We only vectorize with -fwrapv.
>From a first quick look, the following is what we have before vect:
(loop)
[lo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114476
Richard Biener changed:
What|Removed |Added
Target Milestone|14.0|13.3
Priority|P3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114476
--- Comment #4 from Andrew Pinski ---
(In reply to Andrew Pinski from comment #3)
> Here is a testcase where we don't need -fwrapv:
Ignore that, I was doing something wrong.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114476
--- Comment #3 from Andrew Pinski ---
Here is a testcase where we don't need -fwrapv:
```
signed int b = 9;
int c[23][23];
signed int d[23];
int main() {
for (int h = 0; h < 23; h += 2) {
c[h][h] = d[h];
b= -b;
}
__builtin_printf("
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114476
--- Comment #2 from Andrew Pinski ---
Note -fwrapv is important here ...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114476
Andrew Pinski changed:
What|Removed |Added
Last reconfirmed||2024-03-26
Component|target