From patchwork Fri Jul 19 14:41:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 1134127 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-505344-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="x9mzbzK9"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LnGoekaH"; dkim-atps=neutral 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 45qtx60jygz9s00 for ; Sat, 20 Jul 2019 00:41:27 +1000 (AEST) 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:from:date:message-id:subject:to:cc:content-type; q=dns; s=default; b=XAFZ8iSZH07h0CNlINwGq8U/IVpye+K7sPAouYrH76t fqphcLbRNmibTp4ij/ojBtN9+OztJcESZa9njU510JeOaM1KPodgKBD/IMaJY1D9 rDk2+4sOTOBomKuQ+hlVsXCvcClRj8jCs2TIMyyX5KejV9cQj6qphqHhPHN0JIcs = 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:from:date:message-id:subject:to:cc:content-type; s=default; bh=6OhJBofvF0WwrLwSfcAYoOwNe8E=; b=x9mzbzK96VeKEYaaB OzmTF92bftAxhwQ7sO/Q9GRB57IGZxpFVYVeWc0jPB9llRWSsljzl/Qn+S/iAXoo 839KCYdS57XxuqRTqx+JCVYlWGyr9DPf6K8101y4X52UdwS5o4UFjKhKLFBZZuQm skxM1yNS7EtqUoEnu1ueD6h9BQ= Received: (qmail 126524 invoked by alias); 19 Jul 2019 14:41:20 -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 126516 invoked by uid 89); 19 Jul 2019 14:41:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-14.8 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mail-io1-f41.google.com Received: from mail-io1-f41.google.com (HELO mail-io1-f41.google.com) (209.85.166.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 Jul 2019 14:41:19 +0000 Received: by mail-io1-f41.google.com with SMTP id k8so58965420iot.1 for ; Fri, 19 Jul 2019 07:41:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=ybRtLCCsiWNp+ol7lTNWh88/7tlqTe1xD/lbzVfRAoU=; b=LnGoekaHno8B/ylabJ8xetwgb95p0ehSq2Caqowe+HOSzQYbAszf3diywdps6d40r/ HvCGiZS4Y1cFyHj2fw4BziFfMoCyvAaFFrjQwnyvRMgALhaPnRV+oWktxGVzDBcbPEw7 gkONdWooNQYHDTlLMnM0wQM4KEVHd5oUVWXMazQN+uF4NdH2JSsD15B90PRmjnhQuheu OwYr3PLFqrpiUlyzh6X8p56hyzo+ADHqniRZT8fdqKkWJyuAXZb7uYJ4B4SJDBS4F65a avHrC2NFfB4kUEPz6RaIPqJ2gAqRsGQkqSBpCgPbdHnTYblQbPB92Sj07q6zQDwJNHZr s5/g== MIME-Version: 1.0 From: Uros Bizjak Date: Fri, 19 Jul 2019 16:41:06 +0200 Message-ID: Subject: [PATCH, i386]: Fix (target part) PR91204, ICE in expand_expr_real_2 To: "gcc-patches@gcc.gnu.org" Cc: Jakub Jelinek As suggested by Jakub in the PR, add missing vector one_cmpl2 to mmx.md. A generic fix is in the works by Jakub. 2019-07-19 Uroš Bizjak PR target/91204 * config/i386/mmx.md (one_cmpl2): New expander. Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}. Committed to mainline SVN. Uros. diff --git a/gcc/config/i386/mmx.md b/gcc/config/i386/mmx.md index 4c71e66e6607..c78b33b510a6 100644 --- a/gcc/config/i386/mmx.md +++ b/gcc/config/i386/mmx.md @@ -1158,6 +1158,14 @@ ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +(define_expand "one_cmpl2" + [(set (match_operand:MMXMODEI 0 "register_operand") + (xor:MMXMODEI + (match_operand:MMXMODEI 1 "register_operand") + (match_dup 2)))] + "TARGET_MMX_WITH_SSE" + "operands[2] = force_reg (mode, CONSTM1_RTX (mode));") + (define_insn "mmx_andnot3" [(set (match_operand:MMXMODEI 0 "register_operand" "=y,x,Yv") (and:MMXMODEI