https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79807
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue May 30 08:07:03 2017 New Revision: 248653 URL: https://gcc.gnu.org/viewcvs?rev=248653&root=gcc&view=rev Log: Backported from mainline 2017-03-03 Jakub Jelinek <ja...@redhat.com> PR target/79807 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target is a memory operand, increase num_memory. (ix86_expand_args_builtin): Likewise. * gcc.target/i386/pr79807.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.target/i386/pr79807.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/config/i386/i386.c branches/gcc-5-branch/gcc/testsuite/ChangeLog