From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29190 invoked by alias); 15 Jun 2013 17:13:23 -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 29137 invoked by uid 55); 15 Jun 2013 17:13:19 -0000 From: "sgunderson at bigfoot dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/57623] BEXTR intrinsic has memory operands switched around (fails to compile code) Date: Sat, 15 Jun 2013 17:13:00 -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: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sgunderson at bigfoot dot com 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: 2013-06/txt/msg00806.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57623 --- Comment #4 from sgunderson at bigfoot dot com --- On Sat, Jun 15, 2013 at 05:10:57PM +0000, jakub at gcc dot gnu.org wrote: > If both start and length are constants, then it will be folded by the compiler, > similarly if you use it inside of loop and start/length will be loop > invariants, the computation can be hoisted out of the loop. Sure, but again, neither of these match my situation. I really need to do a lookup into a table (with a non-constant index) to get the value. /* Steinar */