https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88562
--- Comment #4 from Zavadovsky Yan ---
Some additional note.
Test code is placed in separate file from 'Read32' function implementation
because inlining of 'Read32' will avoid bug.
Full source file on which bug was observed has about 300 lines
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88562
--- Comment #3 from Zavadovsky Yan ---
Created attachment 45271
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45271&action=edit
main.cpp
Add some testing code.
Command to compile: './820/bin/sh4-unknown-linux-gnu-g++
--sysroot=./820/sh4-
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88562
--- Comment #2 from Zavadovsky Yan ---
Created attachment 45270
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45270&action=edit
ReadQm_Os_no_expensive_optimizations.s
Add full assembler output with NON-buggy code.
Command to compile: 'sh
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88562
--- Comment #1 from Zavadovsky Yan ---
Created attachment 45269
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45269&action=edit
ReadQm_Os.s
Add full assembler output with buggy code.
Command to compile: 'sh4-unknown-linux-gnu-g++ -Os -S