From patchwork Thu Oct 9 10:19:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirill Yukhin X-Patchwork-Id: 397967 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id F063F1400B6 for ; Thu, 9 Oct 2014 21:20:29 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=nEXv4HnkO9DIRxBepSItEeOuEY+sB+qVaD891UVKfhCyaW6e3L kJjWOb/ePpaquHA+uPUXFK9UC28d9UyyWV80Qbcnonwp2bJWHZxIQFsH9I9HJIjC dOIq+zRkxAj5OucNCbcCgPb3ffqglb6cXSQuEBvEfrEX+AOjE7h2UnqPE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; s= default; bh=k2oO7Xy8fqH2A3YtpLfm1lh0BJE=; b=lADcEYd4qIL9YjWYaYqZ 1ikzIBL82KcoXQ+OANC4+ted/SAwri4Hfqwyqq9q+oXYIvVVE2GQyN5dgxOT8uY2 lDdHLwWKCv4NZHd1k9sPrtwB/ATHjVWxDP8eZpT9vLYvw343gqK7cRTAZJWlYBZ3 sXpTeu/WNrTOthSWWvEjKdo= Received: (qmail 22360 invoked by alias); 9 Oct 2014 10:20:22 -0000 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 Received: (qmail 22349 invoked by uid 89); 9 Oct 2014 10:20:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f51.google.com Received: from mail-wg0-f51.google.com (HELO mail-wg0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 09 Oct 2014 10:20:21 +0000 Received: by mail-wg0-f51.google.com with SMTP id b13so895614wgh.22 for ; Thu, 09 Oct 2014 03:20:17 -0700 (PDT) X-Received: by 10.180.101.100 with SMTP id ff4mr3016304wib.43.1412850017814; Thu, 09 Oct 2014 03:20:17 -0700 (PDT) Received: from msticlxl57.ims.intel.com (fmdmzpr01-ext.fm.intel.com. [192.55.54.36]) by mx.google.com with ESMTPSA id q5sm12906386wiy.16.2014.10.09.03.20.14 for (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Oct 2014 03:20:17 -0700 (PDT) Date: Thu, 9 Oct 2014 14:19:20 +0400 From: Kirill Yukhin To: Uros Bizjak Cc: Jakub Jelinek , Richard Henderson , GCC Patches , kirill.yukhin@gmail.com Subject: [PATCH i386 AVX512] [65/n] Add rest of VI1-AVX2: mul insn pattern. Message-ID: <20141009101908.GA25028@msticlxl57.ims.intel.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Hello, This tiny patch extend mul insn pattern to support masking. Bootstrapped. AVX-512* tests on top of patch-set all pass under simulator. Is it ok for trunk? gcc/ * config/i386/sse.md (define_expand "mul3"): Add masking. --- Thanks, K diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 594e692..a3b2477 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -9238,11 +9238,11 @@ (set_attr "prefix" "orig,maybe_evex") (set_attr "mode" "TI")]) -(define_expand "mul3" +(define_expand "mul3" [(set (match_operand:VI1_AVX2 0 "register_operand") (mult:VI1_AVX2 (match_operand:VI1_AVX2 1 "register_operand") (match_operand:VI1_AVX2 2 "register_operand")))] - "TARGET_SSE2" + "TARGET_SSE2 && && " { ix86_expand_vecop_qihi (MULT, operands[0], operands[1], operands[2]); DONE;