From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22329 invoked by alias); 20 Nov 2014 19:27:06 -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 22317 invoked by uid 48); 20 Nov 2014 19:27:02 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/64003] valgrind complains about get_attr_length_nobnd in insn-attrtab.c from i386.md Date: Thu, 20 Nov 2014 19:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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-11/txt/msg02313.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64003 --- Comment #4 from dmalcolm at gcc dot gnu.org --- (In reply to dmalcolm from comment #3) > fwiw, "insn" seems to be: > > (jump_insn:TI 10 4 56 2 (set (pc) > (if_then_else (eq (reg:CCGC 17 flags) > (const_int 0 [0])) > (label_ref 29) > (pc))) > /home/david/coding-3/gcc-git-jit-valgrind/get-attr-length-i386.c:3 610 > {*jcc_1} > (int_list:REG_BR_PROB 2000 (nil)) > -> 29) ...so presumably it's the attr highlighted below: 10920 (define_insn "*jcc_1" 10921 [(set (pc) 10922 (if_then_else (match_operator 1 "ix86_comparison_operator" 10923 [(reg FLAGS_REG) (const_int 0)]) 10924 (label_ref (match_operand 0)) 10925 (pc)))] 10926 "" 10927 "%!%+j%C1\t%l0" 10928 [(set_attr "type" "ibr") 10929 (set_attr "modrm" "0") >10930 (set (attr "length_nobnd") >10931 (if_then_else (and (ge (minus (match_dup 0) (pc)) >10932 (const_int -126)) >10933 (lt (minus (match_dup 0) (pc)) >10934 (const_int 128))) >10935 (const_int 2) >10936 (const_int 6)))]) 10937