From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19955 invoked by alias); 20 Jul 2010 13:20:35 -0000 Received: (qmail 19855 invoked by uid 48); 20 Jul 2010 13:20:09 -0000 Date: Tue, 20 Jul 2010 13:20:00 -0000 Message-ID: <20100720132009.19854.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug rtl-optimization/43494] gcc.c-torture/execute/vector-2.c fails with -fpic/-fPIC In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "steven at gcc dot gnu dot org" 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: 2010-07/txt/msg02059.txt.bz2 ------- Comment #10 from steven at gcc dot gnu dot org 2010-07-20 13:20 ------- Re. comment 9: Well, the order of *this* store and *this* load is the difference between the test case failing or passing. So I do not think the problem is between this load and another store. Before sched2 (or actually, .mach on ia64): "vector-2.c.213r.compgotos" (notes, NOPs, bundle markers removed): ;; Function f1 (f1) 30 r15:DI=r12:DI 29 r14:DI=r12:DI 35 [r15:DI++]=r32:DI 36 [post r15:DI+=0xfffffffffffffffc]=r33:DI 9 [r15:DI]=r34:SI 21 r8:DI=[r14:DI++] 28 r9:DI=[r14:DI] 18 use r8:TI 39 {return;use b0:DI;} After .sched2: "vector-2.c.215r.mach" (notes, NOPs, bundle markers removed): 30 r15:DI=r12:DI 29 r14:DI=r12:DI 35 [r15:DI++]=r32:DI 36 [post r15:DI+=0xfffffffffffffffc]=r33:DI 21 r8:DI=[r14:DI++] 28 r9:DI=[r14:DI] 9 [r15:DI]=r34:SI 18 use r8:TI 39 {return;use b0:DI;} Note that the only real change in the scheduling is that insn 9 is moved after insn 21 and insn 28. insn 9 is the store "[r15:DI]=r34:SI" that later expands to the st4 instruction. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43494