From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1844 invoked by alias); 25 Feb 2010 19:55:37 -0000 Received: (qmail 1684 invoked by uid 48); 25 Feb 2010 19:55:23 -0000 Date: Thu, 25 Feb 2010 19:55:00 -0000 Message-ID: <20100225195523.1683.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/43175] __builtin_ia32_vec_perm_v4si doesn't work with -msse4.1 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "hjl dot tools at gmail dot com" 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: 2010-02/txt/msg02602.txt.bz2 ------- Comment #11 from hjl dot tools at gmail dot com 2010-02-25 19:55 ------- (In reply to comment #10) > (In reply to comment #9) > > The testcase will also fail with -msse4.1: > > Add this patch (please note that input operands of blend MD patterns are > *reversed*): > > @@ -29153,7 +29153,7 @@ expand_vec_perm_blend (struct expand_vec > } > > /* This matches five different patterns with the different modes. */ > - x = gen_rtx_VEC_MERGE (vmode, op0, op1, GEN_INT (mask)); > + x = gen_rtx_VEC_MERGE (vmode, op1, op0, GEN_INT (mask)); > x = gen_rtx_SET (VOIDmode, target, x); > emit_insn (x); > > That works. Thanks. -- hjl dot tools at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43175