From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3635 invoked by alias); 16 Dec 2004 13:50:42 -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 3340 invoked by uid 48); 16 Dec 2004 13:50:31 -0000 Date: Thu, 16 Dec 2004 13:50:00 -0000 Message-ID: <20041216135031.3338.qmail@sourceware.org> From: "uros at kss-loka dot si" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041215121502.19009.uros@kss-loka.si> References: <20041215121502.19009.uros@kss-loka.si> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/19009] Loading of FP constants into FP reg via SSE reg X-Bugzilla-Reason: CC X-SW-Source: 2004-12/txt/msg02358.txt.bz2 List-Id: ------- Additional Comments From uros at kss-loka dot si 2004-12-16 13:50 ------- -finline-functions is needed to trigger the bug with -O2. The attached testcase should be compiled with '-O2 -march=pentium4 -mfpmath=387 -ffast-math -D__NO_MATH_INLINES -finline-functions' to get: ... pxor %xmm0, %xmm0 movsd %xmm0, -16(%ebp) fldl -16(%ebp) fcomip %st(1), %st je .L23 fld %st(0) ... and: grep xmm zero.s pxor %xmm0, %xmm0 movsd %xmm0, -16(%ebp) movsd %xmm0, -16(%ebp) movsd %xmm0, -16(%ebp) movsd %xmm0, -16(%ebp) movsd %xmm0, 8(%edx) movsd %xmm0, (%edx) where movsds are followed by: fldl -16(%ebp) BTW: "#include can be removed from testcase to avoid -D__NO_MATH_INLINES. Ther result will be the same. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19009