SM4 check should be for __aarch64__, not __ARM_MAX_ARCH__ >= 8