From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25665 invoked by alias); 18 Aug 2004 18:30:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 25638 invoked by uid 48); 18 Aug 2004 18:30:10 -0000 Date: Wed, 18 Aug 2004 18:30:00 -0000 Message-ID: <20040818183010.25636.qmail@sourceware.org> From: "dann at godzilla dot ics dot uci dot edu" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040713215437.16532.dann@godzilla.ics.uci.edu> References: <20040713215437.16532.dann@godzilla.ics.uci.edu> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/16532] Inefficient jump to epilogue X-Bugzilla-Reason: CC X-SW-Source: 2004-08/txt/msg01836.txt.bz2 List-Id: ------- Additional Comments From dann at godzilla dot ics dot uci dot edu 2004-08-18 18:30 ------- A simplified version of the testcase shows an issue with the ultrasparc code generation: extern unsigned char first_one[65536]; int FirstOne(unsigned long long arg1) { if (arg1 >> 48) return (first_one[arg1 >> 48]); return 0; } gcc -O2 -mcpu=ultrasparc generates a "save" in the prologue, A "save" is not generated when compiling for v8. There should be no need for a "save", this is a leaf function, and the number of registers used is very small. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16532