From patchwork Fri Apr 24 07:42:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 464144 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 634D21400A0 for ; Fri, 24 Apr 2015 17:42:13 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=yUOULVfU; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=An6wb1E3eX3LmPjYy7ykjmo2AwbV1DK0NcYMXt6uq8gw5e Qen08cjTl/fItPRIie05/Ogf7hBo/J11iT8Z5Ter4qIEgf1SCFQBHawK3NAA2yvd HFgUQMGBXmBLzrWVlAT+ZMIiHeZEgK0EVHyP6B8i2xuZQFggKf2iTv5/7nGpU= 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 :mime-version:date:message-id:subject:from:to:content-type; s= default; bh=zSUJnK+AB1ACDr6b0cGS7pHQd6Q=; b=yUOULVfUbk1aeIC4/8YI MFL9U36YJ878e9gemoYUVgxEN/x9SduS5ySM63OiKzkQFpUD8ho/EmSbRWy8ZGPB aWsxrrQeKQeNB4TmLs9fhvkaKk82dB9TWbVlxPIDFnKpCN17LLW3mluT2LDYtfya /f4hPUob5fFHlsNnuWK0XPA= Received: (qmail 12024 invoked by alias); 24 Apr 2015 07:42:06 -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 12013 invoked by uid 89); 24 Apr 2015 07:42:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL, BAYES_40, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ob0-f182.google.com Received: from mail-ob0-f182.google.com (HELO mail-ob0-f182.google.com) (209.85.214.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 24 Apr 2015 07:42:04 +0000 Received: by obfe9 with SMTP id e9so31905254obf.1 for ; Fri, 24 Apr 2015 00:42:02 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.202.211.129 with SMTP id k123mr5710419oig.43.1429861322564; Fri, 24 Apr 2015 00:42:02 -0700 (PDT) Received: by 10.60.147.170 with HTTP; Fri, 24 Apr 2015 00:42:02 -0700 (PDT) Date: Fri, 24 Apr 2015 09:42:02 +0200 Message-ID: Subject: [PATCH, i386]: Make mul operand commutative From: Uros Bizjak To: "gcc-patches@gcc.gnu.org" Hello! 2015-04-24 Uros Bizjak * config/i386/sse.md (*vec_widen_smult_even_v8si): Mark operand1 commutative. Tested on x86_64-linux-gnu {,-m32} and committed to mainline and 5.0 branch. Uros. Index: config/i386/sse.md =================================================================== --- config/i386/sse.md (revision 222401) +++ config/i386/sse.md (working copy) @@ -9523,7 +9523,7 @@ (mult:V4DI (sign_extend:V4DI (vec_select:V4SI - (match_operand:V8SI 1 "nonimmediate_operand" "v") + (match_operand:V8SI 1 "nonimmediate_operand" "%v") (parallel [(const_int 0) (const_int 2) (const_int 4) (const_int 6)]))) (sign_extend:V4DI