https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78170
--- Comment #5 from ktkachov at gcc dot gnu.org --- The problem is in encode_tree_to_bitpos. It needs to take into account the padding that native_encode_expr may introduce for sign-extended values for little-endian as well as big-endian. Testing a patch