From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17140 invoked by alias); 2 Jan 2013 09:28:20 -0000 Received: (qmail 16893 invoked by uid 48); 2 Jan 2013 09:27:46 -0000 From: "venkataramanan.kumar at amd dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/55845] New: 454.calculix miscompares with -march=btver2 -O3 -ffastmath -fschedule-insns -mvzeroupper for test data run Date: Wed, 02 Jan 2013 09:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: venkataramanan.kumar at amd dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: 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-01/txt/msg00065.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55845 Bug #: 55845 Summary: 454.calculix miscompares with -march=btver2 -O3 -ffastmath -fschedule-insns -mvzeroupper for test data run Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: venkataramanan.kumar@amd.com Host: x86_64-unknown-linux-gnu Target: x86_64-unknown-linux-gnu Build: x86_64-unknown-linux-gnu GCC revision used: 194705 Flags used: -march=btver2 -O3 -ffastmath -fschedule-insns -mvzeroupper Observation: (Snip) *** Miscompare of beampic.dat; for details see /local/home/vekumar/specruns/benchspec/CPU2006/454.calculix/run/run_base_test_gcc480_bt_sched.exe_nofma.0000/beampic.dat.mis Error: 1x454.calculix Producing Raw Reports (Snip) On triaging further the file SPOOLES/Utilities/src/Utilities_DV.Utilities_DV.c when compiled with -march=btver2 -O3 -ffastmath -fschedule-insns -mvzeroupper seems to schedule vzeroupper incorrectly. vzeroupper will clobber all ymm registers, so should not be moved arround. Also using -march=corei7-avx seems to have problem. I am drilling down further.