[Bug middle-end/106609] sh3eb-elf cross compiler is being miscompiled

2022-08-18 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106609

--- Comment #9 from Mikael Pettersson  ---
# first bad commit: [3155d51bfd1de8b6c4645dcb2292248a8d7cc3c9] [PATCH] PR
rtl-optimization/46235: Improved use of bt for bit tests on x86_64.

Starting with this commit, the host compiler (on x86_64-linux) miscompiles the
gcc-13 based cross-compiler to sh3eb-elf.

[Bug middle-end/106609] sh3eb-elf cross compiler is being miscompiled

2022-08-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106609

Andrew Pinski  changed:

   What|Removed |Added

  Component|target  |middle-end
Summary|[SH] miscompilation due to  |sh3eb-elf cross compiler is
   |incorrect elimination of|being miscompiled
   |comparisons to 0|
 Target|sh3eb-elf   |x86_64-linux-gnu

--- Comment #8 from Andrew Pinski  ---
>I can reproduce with gcc-12 as host compiler, but not with gcc-11 as host 
>compiler.

That is good to know. Now someone needs to figure out where the target compiler
is being miscompiled ...