From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29094 invoked by alias); 2 Aug 2014 06:19:56 -0000 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 Received: (qmail 29049 invoked by uid 48); 2 Aug 2014 06:19:50 -0000 From: "nasika.srikanth1 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/61979] Why float variable loading twice into the FTU Stack during condition checking ? Date: Sat, 02 Aug 2014 06:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: nasika.srikanth1 at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-08/txt/msg00099.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61979 --- Comment #2 from Srikanth --- Created attachment 33225 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D33225&action=3Dedit In this assemble code line number at 22-25 and after 27-30 both are same instructions repeated for conditional checking. In this assemble code line number at 22-25 and after 27-30 both are same instructions repeated for conditional checking. Architecture ---- Intel=C2=AE Core=E2=84=A2 i3-2350M CPU @ 2.30GHz =C3=97 4= =20 Sorry its my mistype *not FTU*,its actually FPU Stack means Floating point = unit stack I just patch the above code by removing the repeated code file "testcondition.c" .section .rodata .LC2: .string "true" .LC3: .string "false" .text .globl main .type main, @function main: .LFB0: .cfi_startproc pushl %ebp .cfi_def_cfa_offset 8 .cfi_offset 5, -8 movl %esp, %ebp .cfi_def_cfa_register 5 andl $-16, %esp subl $32, %esp movl .LC0, %eax movl %eax, 28(%esp) flds 28(%esp) fldz fucomip %st(1), %st fstp %st(0) jp .L6 je .L7 .L6: movl $.LC2, (%esp) call printf jmp .L4 .L7: movl $.LC3, (%esp) call printf .L4: movl $0, %eax leave .cfi_restore 5 .cfi_def_cfa 4, 4 ret .cfi_endproc .LFE0: .size main, .-main .section .rodata .align 4 .LC0: .long 1094713344 .ident "GCC: (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1" .section .note.GNU-stack,"",@progbits >>From gcc-bugs-return-457603-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 02 06:21:59 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31461 invoked by alias); 2 Aug 2014 06:21:58 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 31413 invoked by uid 48); 2 Aug 2014 06:21:53 -0000 From: "nasika.srikanth1 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/61979] Why float variable loading twice into the FTU Stack during condition checking ? Date: Sat, 02 Aug 2014 06:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: nasika.srikanth1 at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-08/txt/msg00100.txt.bz2 Content-length: 1197 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61979 --- Comment #3 from Srikanth --- Comment on attachment 33225 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D33225 In this assemble code line number at 22-25 and after 27-30 both are same instructions repeated for conditional checking. > file "testcondition.c" > .section .rodata >.LC2: > .string "true" >.LC3: > .string "false" > .text > .globl main > .type main, @function >main: >.LFB0: > .cfi_startproc > pushl %ebp > .cfi_def_cfa_offset 8 > .cfi_offset 5, -8 > movl %esp, %ebp > .cfi_def_cfa_register 5 > andl $-16, %esp > subl $32, %esp > movl .LC0, %eax > movl %eax, 28(%esp) > flds 28(%esp) > fldz > fucomip %st(1), %st > fstp %st(0) > jp .L6 flds 28(%esp) fldz fucomip %st(1), %st fstp %st(0) > je .L7 >.L6: > movl $.LC2, (%esp) > call printf > jmp .L4 >.L7: > movl $.LC3, (%esp) > call printf >.L4: > movl $0, %eax > leave > .cfi_restore 5 > .cfi_def_cfa 4, 4 > ret > .cfi_endproc >.LFE0: > .size main, .-main > .section .rodata > .align 4 >.LC0: > .long 1094713344 > .ident "GCC: (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1" > .section .note.GNU-stack,"",@progbits >>From gcc-bugs-return-457604-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Aug 02 06:23:56 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 768 invoked by alias); 2 Aug 2014 06:23:56 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 750 invoked by uid 48); 2 Aug 2014 06:23:53 -0000 From: "q.gcc@rsn-tech.co.uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61993] constexpr static member function "is not constant" Date: Sat, 02 Aug 2014 06:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: q.gcc@rsn-tech.co.uk X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-08/txt/msg00101.txt.bz2 Content-length: 153 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61993 --- Comment #2 from steveren --- Ah, it is a dupe; sorry, I missed that one.