From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8CF0D386F43C; Tue, 28 Apr 2020 22:13:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8CF0D386F43C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588112034; bh=lfxELLgfYUCFyDjzb7IpGcYY6vZ0IHIzlX+9KcEL9/Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=NZ4KdzOSApnAs8ArWTqjZi4/Q/1jRQiKOJnymYChpDxTYdSd+oaW0j+GzOmr0dDV5 A7F3JXXVfHownOYB+WvyMYGH2rAy5yyGo0bKPMZ7V2ZeLWyFuPJJwzZlH0iIs9Oxui 92zyGnBwzx9duw7o0PBaGRQNn0Kl0oiV4no0xIMw= From: "carll at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/94833] vec_first_match_index does not function as described in its description Date: Tue, 28 Apr 2020 22:13:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: carll at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Apr 2020 22:13:54 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94833 --- Comment #2 from Carl Love --- The ABI has the builtin VEC_FIRST_MATCH_OR_EOS_ INDEX (ARG1, ARG2) which says Returns the element index of the position of either the first character mat= ch or an end-of-string (EOS) terminator. If no match or terminator, returns the number of characters as an element count in the vector argument. So, I do agree the builtin in question should be treating the EOS (null) as= any other number for comparison purposes.=