From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31044 invoked by alias); 25 Sep 2009 21:29:05 -0000 Received: (qmail 31010 invoked by uid 48); 25 Sep 2009 21:28:53 -0000 Date: Fri, 25 Sep 2009 21:29:00 -0000 Message-ID: <20090925212853.31009.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/41196] The use of ARM NEON vshll_n_u8 intrinsic results in compile error on valid code In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dgutson at gcc dot gnu dot org" 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 X-SW-Source: 2009-09/txt/msg02374.txt.bz2 ------- Comment #3 from dgutson at gcc dot gnu dot org 2009-09-25 21:28 ------- Created an attachment (id=18651) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18651&action=view) Proposed fix The attached patch attempts to solve the issue, by augmenting the range check in order to match 0 < imm <= size (increasing size in 1). I checked that the assembler DTRT, so the fix applies to gcc only. I tested the patch with the gcc test suite plus a test cases I added (included in the patch). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41196