From patchwork Sun Jun 16 22:26:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 1116662 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-503040-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.de 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 45RpqX2l5Fz9s00 for ; Mon, 17 Jun 2019 08:26:56 +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:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=QvLIei9Q2l6ezxaVgzzfi5QaVh0C4ZD3V7t43cZdFcz5ihnPcXpZs JciEqb/81980cNiIhZNVT0QHzuEennDviKUX/WxhRz20sbjUnPHkM8mY7GQDnD+E 6zAffUxtu4zR1oX8NqMaqhdNloFk4SNpmVZRB2DJyTTqBkTQOj8eQs= 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:subject:message-id:mime-version:content-type; s= default; bh=7lgm0ChSHWWXYKqgGBPP3T9O8a4=; b=LGmsGq+nRLuozv2nCxM5 ZAhFC1NOkrJOj8cLe/hXvWkodmdgwlWNZPhD5dzfMKCrVS09p3Dmn3q5mJDWneAz CvRmAlyx9CC1S+ZZ+W4tjHfu+gw4AAUyGF4SSLQe2Uuo5EFx8KHW4srNJfeIvEVU CeMo7AybplqvIbu9QsL8r38= Received: (qmail 18087 invoked by alias); 16 Jun 2019 22:26:48 -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 18071 invoked by uid 89); 16 Jun 2019 22:26:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, MEDICAL_SUBJECT, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:2019, 2019-06-17, match_operand, 20190617 X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 16 Jun 2019 22:26:47 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E986FAF7B for ; Sun, 16 Jun 2019 22:26:44 +0000 (UTC) Date: Mon, 17 Jun 2019 00:26:43 +0200 From: Tom de Vries To: gcc-patches@gcc.gnu.org Subject: [committed][nvptx] Fix some missing mode warnings in nvptx.md Message-ID: <20190616222641.GA27990@delia> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-IsSubscribed: yes Hi, Fix these warnings: ... gcc/config/nvptx/nvptx.md:748:1: warning: operand 0 missing mode? gcc/config/nvptx/nvptx.md:757:1: warning: operand 1 missing mode? gcc/config/nvptx/nvptx.md:1514:1: warning: source missing a mode? ... Build and reg-tested on x86_64 with nvptx accelerator. Committed to trunk. Thanks, - Tom [nvptx] Fix some missing mode warnings in nvptx.md 2019-06-17 Tom de Vries * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ... (define_insn "call_insn_"): ... this. Use P iterator on match_operand 0. (define_insn "call_value_insn"): Rename to ... (define_insn "call_value_insn_"): this. Use P iterator on match_operand 0. (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to DI. --- gcc/config/nvptx/nvptx.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/config/nvptx/nvptx.md b/gcc/config/nvptx/nvptx.md index 1a090a47a32..3ed5296db96 100644 --- a/gcc/config/nvptx/nvptx.md +++ b/gcc/config/nvptx/nvptx.md @@ -745,19 +745,19 @@ ;; Calls -(define_insn "call_insn" +(define_insn "call_insn_" [(match_parallel 2 "call_operation" - [(call (mem:QI (match_operand 0 "call_insn_operand" "Rs")) + [(call (mem:QI (match_operand:P 0 "call_insn_operand" "Rs")) (match_operand 1))])] "" { return nvptx_output_call_insn (insn, NULL_RTX, operands[0]); }) -(define_insn "call_value_insn" +(define_insn "call_value_insn_" [(match_parallel 3 "call_operation" [(set (match_operand 0 "nvptx_register_operand" "=R") - (call (mem:QI (match_operand 1 "call_insn_operand" "Rs")) + (call (mem:QI (match_operand:P 1 "call_insn_operand" "Rs")) (match_operand 2)))])] "" { @@ -1513,7 +1513,7 @@ (define_insn "nvptx_red_partition" [(set (match_operand:DI 0 "nonimmediate_operand" "=R") - (unspec_volatile [(match_operand:DI 1 "const_int_operand")] + (unspec_volatile:DI [(match_operand:DI 1 "const_int_operand")] UNSPECV_RED_PART))] "" {