https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67413
--- Comment #5 from Andrew Pinski ---
(In reply to Andrew Pinski from comment #4)
> It would just work.
Except the two casts are not the same in the case of negative as I mentioned in
comment #2 :).
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67413
--- Comment #4 from Andrew Pinski ---
As for the other testcase:
y_3 = x_2(D) & -4294967296;
z_4 = (intD.9) x_2(D);
_1 = (long intD.12) z_4;
_5 = _1 | y_3;
If we could optimize:
z_4 = (intD.9) x_2(D);
_1 = (long intD.12) z_4;
Into:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67413
Andrew Pinski changed:
What|Removed |Added
Severity|normal |enhancement
Blocks|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67413
Andrew Pinski changed:
What|Removed |Added
Component|rtl-optimization|tree-optimization
--- Comment #2 from An