https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78691
--- Comment #2 from Alastair D'Silva ---
The same problem also occurs when compiling the linux x86 boot code
arch/x86/boot/printf.c, which results in a very similar testcase:
~/tmp/gcc-c46915880dca92/bin/x86_64-unknown-linux-gnu-cc -m16 -Os -c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78691
--- Comment #1 from Alastair D'Silva ---
Created attachment 40262
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40262&action=edit
minimal testcase to reproduce the ICE for x86