This is a re-ping of: https://gcc.gnu.org/ml/gcc-patches/2017-05/msg00021.html
It was pointed out to me that my original subject line [PATCH/AARCH64] might be misleading since the patch is not to code in config/aarch64. It is to ccmp.c which is in the shared gcc directory. That said, aarch64 is currently the only architecture that uses this code because it is the only architecture that sets targetm.gen_ccmp_first and targetm.gen_ccmp_next. Steve Ellcey