This set of 2 patches attempts to fix PR target/67366 by introducing use of the movmisalign optabs in gimple-fold.c to allow detecting memcpys of the form shown in the testcase in the PR.
Patch 1/2 fixes the ARM backend to produce movmisalign patterns when unaligned access is supported. Patch 2/2 fixes gimple-fold.c to handle the appropriate cases and deals with the testsuite fall out that this caused on ARM.