From patchwork Tue Oct 25 00:17:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 121459 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 400C21007D8 for ; Tue, 25 Oct 2011 11:18:34 +1100 (EST) Received: (qmail 22371 invoked by alias); 25 Oct 2011 00:18:13 -0000 Received: (qmail 22268 invoked by uid 22791); 25 Oct 2011 00:18:11 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, TW_HQ, TW_KH, TW_KL, TW_LQ, TW_QD, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-yx0-f175.google.com (HELO mail-yx0-f175.google.com) (209.85.213.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 25 Oct 2011 00:17:45 +0000 Received: by yxi13 with SMTP id 13so2251946yxi.20 for ; Mon, 24 Oct 2011 17:17:44 -0700 (PDT) Received: by 10.151.25.12 with SMTP id c12mr22961397ybj.85.1319501864388; Mon, 24 Oct 2011 17:17:44 -0700 (PDT) Received: from localhost.localdomain (c-71-227-161-214.hsd1.wa.comcast.net. [71.227.161.214]) by mx.google.com with ESMTPS id z6sm67663882anf.22.2011.10.24.17.17.43 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 24 Oct 2011 17:17:44 -0700 (PDT) From: Richard Henderson To: gcc-patches@gcc.gnu.org Cc: Richard Henderson Subject: [PATCH 6/6] i386: Delete the vec_extract_even/odd patterns. Date: Mon, 24 Oct 2011 17:17:29 -0700 Message-Id: <1319501849-12807-7-git-send-email-rth@redhat.com> In-Reply-To: <1319501849-12807-1-git-send-email-rth@redhat.com> References: <1319501849-12807-1-git-send-email-rth@redhat.com> X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org From: Richard Henderson These can be generated by vec_perm_const now. We could keep the patterns around, as technically it may be less work, but this exercises a code path needed by less primary platforms. --- gcc/config/i386/sse.md | 29 ----------------------------- 1 files changed, 0 insertions(+), 29 deletions(-) diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index ee3af03..31c40d3 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -4395,35 +4395,6 @@ DONE; }) -;; Modes handled by vec_extract_even/odd pattern. -(define_mode_iterator VEC_EXTRACT_EVENODD_MODE - [(V32QI "TARGET_AVX2") (V16QI "TARGET_SSE2") - (V16HI "TARGET_AVX2") (V8HI "TARGET_SSE2") - (V8SI "TARGET_AVX2") (V4SI "TARGET_SSE2") - (V4DI "TARGET_AVX2") (V2DI "TARGET_SSE2") - (V8SF "TARGET_AVX") V4SF - (V4DF "TARGET_AVX") (V2DF "TARGET_SSE2")]) - -(define_expand "vec_extract_even" - [(match_operand:VEC_EXTRACT_EVENODD_MODE 0 "register_operand" "") - (match_operand:VEC_EXTRACT_EVENODD_MODE 1 "register_operand" "") - (match_operand:VEC_EXTRACT_EVENODD_MODE 2 "register_operand" "")] - "TARGET_SSE" -{ - ix86_expand_vec_extract_even_odd (operands[0], operands[1], operands[2], 0); - DONE; -}) - -(define_expand "vec_extract_odd" - [(match_operand:VEC_EXTRACT_EVENODD_MODE 0 "register_operand" "") - (match_operand:VEC_EXTRACT_EVENODD_MODE 1 "register_operand" "") - (match_operand:VEC_EXTRACT_EVENODD_MODE 2 "register_operand" "")] - "TARGET_SSE" -{ - ix86_expand_vec_extract_even_odd (operands[0], operands[1], operands[2], 1); - DONE; -}) - ;; punpcklqdq and punpckhqdq are shorter than shufpd. (define_insn "avx2_interleave_highv4di" [(set (match_operand:V4DI 0 "register_operand" "=x")