From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1663 invoked by alias); 11 Mar 2013 19:35:05 -0000 Received: (qmail 26910 invoked by uid 48); 11 Mar 2013 19:34:31 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/56560] [4.6/4.7 regression] vzeroupper clobbers argument with AVX Date: Mon, 11 Mar 2013 19:35: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: hjl.tools at gmail dot com 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/msg00896.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56560 --- Comment #6 from H.J. Lu 2013-03-11 19:34:29 UTC --- Created attachment 29645 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29645 A patch This patch adds expand_args to track library calls to expend arguments. We add vzeroupper when expand_args == 1, which indicates we are expanding the actual function.