From patchwork Thu Oct 16 11:55:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirill Yukhin X-Patchwork-Id: 400269 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 F2DFE1400B6 for ; Thu, 16 Oct 2014 22:56:25 +1100 (AEDT) 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=iaYj+meNWXSngBnUP6v+d0u88i4GoMTYc4Bjk0OU0XN41DWUYW Anux5LASpn48jJCoMBdybv/0VnFYUaNubmtjUhFycAIX+BMncYjKeHZO5xD3faBO 3NL+LAaK+H1oASsJ6vRGmDoxr7dQkKArVW9lORAJIkjsXYiKjVZFnA8no= 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=qvghJSF5N/wtjlLEnVZrgd34dC8=; b=OgLdApipYivPDc54/ntl HB8BqyTm6UUJff1YmbMJlIWGq0w0BFvSgDqS3CpuUVzAbCS62kJDDULEMFRKFhOR IICAEq3G0j9yB4rZ4sj1Yu+bDqV9c8NB/OhzJfPlMSK4fW4VuIb2l6Qe/UngLs2x L6BE8QPsYcglcjvOaDcFAgM= Received: (qmail 16555 invoked by alias); 16 Oct 2014 11:56:19 -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 16545 invoked by uid 89); 16 Oct 2014 11:56:18 -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-wi0-f174.google.com Received: from mail-wi0-f174.google.com (HELO mail-wi0-f174.google.com) (209.85.212.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 16 Oct 2014 11:56:16 +0000 Received: by mail-wi0-f174.google.com with SMTP id h11so1386040wiw.13 for ; Thu, 16 Oct 2014 04:56:13 -0700 (PDT) X-Received: by 10.194.57.210 with SMTP id k18mr1358133wjq.110.1413460573761; Thu, 16 Oct 2014 04:56:13 -0700 (PDT) Received: from msticlxl57.ims.intel.com (fmdmzpr01-ext.fm.intel.com. [192.55.54.36]) by mx.google.com with ESMTPSA id q9sm1745821wix.6.2014.10.16.04.56.10 for (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Oct 2014 04:56:13 -0700 (PDT) Date: Thu, 16 Oct 2014 15:55:59 +0400 From: Kirill Yukhin To: Uros Bizjak Cc: Jakub Jelinek , Richard Henderson , GCC Patches , kirill.yukhin@gmail.com Subject: [PATCH i386 AVX512] [80/n] Extend expand_sse2_mulvxdi3. Message-ID: <20141016115551.GA51430@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 patch extends expand_sse2_mulvxdi3. Bootstrapped. AVX-512* tests on top of patch-set all pass under simulator. Is it ok for trunk? gcc/ * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend expand_sse2_mulvxdi3. --- Thanks, K diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 1ee947a..945bc8d 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -45667,7 +45667,19 @@ ix86_expand_sse2_mulvxdi3 (rtx op0, rtx op1, rtx op2) enum machine_mode mode = GET_MODE (op0); rtx t1, t2, t3, t4, t5, t6; - if (TARGET_XOP && mode == V2DImode) + if (TARGET_AVX512DQ) + { + if (mode == V8DImode) + emit_insn (gen_avx512dq_mulv8di3 (op0, op1, op2)); + else if (TARGET_AVX512VL) + { + if (mode == V4DImode) + emit_insn (gen_avx512dq_mulv4di3 (op0, op1, op2)); + else if (mode == V2DImode) + emit_insn (gen_avx512dq_mulv4di3 (op0, op1, op2)); + } + } + else if (TARGET_XOP && mode == V2DImode) { /* op1: A,B,C,D, op2: E,F,G,H */ op1 = gen_lowpart (V4SImode, op1);