From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7821 invoked by alias); 23 Apr 2002 11:54:59 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 7745 invoked from network); 23 Apr 2002 11:54:55 -0000 Received: from unknown (HELO mx1.informatik.uni-tuebingen.de) (134.2.12.5) by sources.redhat.com with SMTP; 23 Apr 2002 11:54:55 -0000 Received: from semeai.informatik.uni-tuebingen.de (semeai [134.2.15.66]) by mx1.informatik.uni-tuebingen.de (Postfix) with ESMTP id 732FD4A6 for ; Tue, 23 Apr 2002 13:54:54 +0200 (MST) Received: (from hueffner@localhost) by semeai.informatik.uni-tuebingen.de (8.11.6+Sun/8.10.2) id g3NBsqA09019; Tue, 23 Apr 2002 13:54:52 +0200 (MEST) X-Authentication-Warning: semeai. informatik.uni-tuebingen.de: hueffner set sender to falk.hueffner@student.uni-tuebingen.de using -f X-Face: >Q)4Pn.JVfRz{G(G_eIkykbZGG\)2mk8:5a"{^Mk07iC#F.t2L7h|]{*cFg$GEPDdun~+UTjG(^4z<_Ksw%L-\w0xDmUR~ Subject: Re: GCC performance regression - its memset ! References: <20020421005718.GA16378@zoy.org> <20020422213222.GA21429@zoy.org> <20020422165953.A32536@redhat.com> <20020423001045.GA26276@zoy.org> <20020422171335.B32556@redhat.com> <20020423004239.GB26890@zoy.org> From: Falk Hueffner Date: Tue, 23 Apr 2002 05:03:00 -0000 In-Reply-To: <20020423004239.GB26890@zoy.org> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Acadia) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-04/txt/msg01157.txt.bz2 Hi, while we're at it, when you have a prototype for memset, gcc forgets about the alignment: void f1(unsigned long *p) { memset(p, 0, 16); } #include void f2(unsigned long *p) { memset(p, 0, 16); } -> (Alpha) 0000000000000000 : 0: 08 00 f0 b7 stq zero,8(a0) 4: 1f 04 ff 5f fnop 8: 00 00 f0 b7 stq zero,0(a0) c: 01 80 fa 6b ret 0000000000000020 : 20: 0f 00 30 2c ldq_u t0,15(a0) 24: 00 00 50 2c ldq_u t1,0(a0) 28: 41 0e 30 48 mskqh t0,a0,t0 2c: 0f 00 30 3c stq_u t0,15(a0) 30: 42 06 50 48 mskql t1,a0,t1 34: 08 00 f0 3f stq_u zero,8(a0) 38: 00 00 50 3c stq_u t1,0(a0) 3c: 01 80 fa 6b ret Is there anything that can be done about that? Falk