https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69124
--- Comment #5 from Mikael Pettersson <mikpelinux at gmail dot com> --- The OP's compiler has --with-mode=thumb! If I compile with -mtune=generic-armv7-a -mthumb then I see the following errors from the test case: 12 0xc0b165f1 != 0xdf5e0cae 13 0x8b329fe4 != 0x8b329fe3 19 0x841bee4e != 0x7b21ac34 20 0x2563cc91 != 0x84be291e 21 0x5f503954 != 0xb8f7b936 22 0x36cb8e86 != 0x36cb8e85 31 0x8c99a1f4 != 0x915bd91c 32 0x22e09d96 != 0x22e09d95 -> 3 This is with -fno-strict-aliasing etc as per the initial description, and both gcc 5 and 6 show this behaviour.