[Bug tree-optimization/107273] wrong code at -O3 on x86_64-linux-gnu by r13-3281

2022-10-17 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107273 Andrew Macleod changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/107273] wrong code at -O3 on x86_64-linux-gnu by r13-3281

2022-10-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107273 --- Comment #10 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:0205fbb91be022055c632973caa95e398b33db39 commit r13-3350-g0205fbb91be022055c632973caa95e398b33db39 Author: Andrew MacLeod Date:

[Bug tree-optimization/107273] wrong code at -O3 on x86_64-linux-gnu by r13-3281

2022-10-17 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107273 --- Comment #9 from Andrew Macleod --- Working on it. Looks like an 8 bit value somehow got considered as a 32 bit partial equivalence. _8 = -_7; _9 = (int) _8; h_30 = (char) _9; <..> h_30 is an 8 bit slice of _9, yet : This is ok: Ch

[Bug tree-optimization/107273] wrong code at -O3 on x86_64-linux-gnu by r13-3281

2022-10-17 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107273 --- Comment #8 from H.J. Lu --- -O2 -funswitch-loops also triggers this bug.

[Bug tree-optimization/107273] wrong code at -O3 on x86_64-linux-gnu by r13-3281

2022-10-17 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107273 --- Comment #7 from H.J. Lu --- *** Bug 107269 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/107273] wrong code at -O3 on x86_64-linux-gnu by r13-3281

2022-10-17 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107273 H.J. Lu changed: What|Removed |Added Summary|wrong code at -O3 on|wrong code at -O3 on |x86_6

[Bug tree-optimization/107273] wrong code at -O3 on x86_64-linux-gnu

2022-10-17 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107273 H.J. Lu changed: What|Removed |Added Resolution|DUPLICATE |--- Last reconfirmed|

[Bug tree-optimization/107273] wrong code at -O3 on x86_64-linux-gnu

2022-10-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107273 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/107273] wrong code at -O3 on x86_64-linux-gnu

2022-10-16 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107273 Hongtao.liu changed: What|Removed |Added CC||crazylht at gmail dot com --- Comment #4

[Bug tree-optimization/107273] wrong code at -O3 on x86_64-linux-gnu

2022-10-15 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107273 --- Comment #3 from Zhendong Su --- Another likely related instance that is miscompiled at -Os, -O2 and -O3. Compiler Explorer: https://godbolt.org/z/3TbG51Ph3 [628] % gcctk -v Using built-in specs. COLLECT_GCC=gcctk COLLECT_LTO_WRAPPER=/local

[Bug tree-optimization/107273] wrong code at -O3 on x86_64-linux-gnu

2022-10-15 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107273 --- Comment #2 from Zhendong Su --- Another likely related instance that is miscompiled at -O1 and above. Compiler Explorer: https://godbolt.org/z/xqz7f4c7v [570] % gcctk -v Using built-in specs. COLLECT_GCC=gcctk COLLECT_LTO_WRAPPER=/local/su

[Bug tree-optimization/107273] wrong code at -O3 on x86_64-linux-gnu

2022-10-15 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107273 --- Comment #1 from Zhendong Su --- Likely a related instance (although it fails also at -Os and -O2 besides -O3). Compiler Explorer: https://godbolt.org/z/rdajs47K6 [515] % gcctk -v Using built-in specs. COLLECT_GCC=gcctk COLLECT_LTO_WRAPPER=