From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21227 invoked by alias); 12 Mar 2013 17:08:53 -0000 Received: (qmail 20561 invoked by uid 48); 12 Mar 2013 17:07:43 -0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/56560] [4.6/4.7 regression] vzeroupper clobbers argument with AVX Date: Tue, 12 Mar 2013 17:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.4 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-03/txt/msg00969.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56560 --- Comment #9 from Eric Botcazou 2013-03-12 17:07:40 UTC --- > This patch adds callee_pass_avx256_p and callee_return_avx256_p > to ix86_args. ix86_function_arg copies them to cfun->machine > when ix86_function_arg is called with VOIDmode, which is called > just before emitting call. cfun->machine->callee_return_avx256_p > is set in init_cumulative_args for ix86_function_ok_for_sibcall. This looks good to me, but I don't know the i386 back-end much (and of course cannot approve anything). Btw, you should add a comment before the new if (cum->caller && mode == VOIDmode) block explaining why you need to do this dance on the caller side. Thanks for working on this.