From patchwork Wed Nov 30 01:15:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Kristian_H=C3=B8gsberg?= X-Patchwork-Id: 9453373 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 93C3C6071E for ; Wed, 30 Nov 2016 01:16:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85DCA1FF1D for ; Wed, 30 Nov 2016 01:16:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 78D602839B; Wed, 30 Nov 2016 01:16:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D5D911FF1D for ; Wed, 30 Nov 2016 01:16:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D91166E808; Wed, 30 Nov 2016 01:16:18 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1F7916E803 for ; Wed, 30 Nov 2016 01:16:09 +0000 (UTC) Received: by mail-pf0-x241.google.com with SMTP id 144so9127212pfv.0 for ; Tue, 29 Nov 2016 17:16:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tDqcsvs2bjIFY9/Qzt/ZFF3j3MAFH96t19hm4mDOP0c=; b=mfX70V8tOWz8yu0wQrOH3+YgsrnrtTI1MKq7kXLO7scx1phStxgKVStBWlAgPDC/QP 1M3xwiPrhDMPvcbMXhuVU16IlqvkKC0UaPb5WAe7QkanK8nFq28dJe8MC8JQGVzT1mA1 /xppOofL/X+e8FSxl1K/IRcXgjyBv8biyF5eFELAY0TGmZv27d5XczTDZf97Km/IYY0u +9n5bZgNbKBs5aNcxpSDqGc/kze+xzzudsnkbsRv+jiA1eB6KCvfbP3mKJVVB0Cg5CWd 9Vnmb58gJFDJnoZQV++Zxb8Zjo3L2Xu3vd/pF9sbGhXaf5QWG8hW7FnulpFpBpYFgdim XDsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tDqcsvs2bjIFY9/Qzt/ZFF3j3MAFH96t19hm4mDOP0c=; b=V6yXRIOSlHNjMRfxvCVks4o0y3UQ7xfM/h5jCQYGu6US5XlY3eOdHKk7WcCeyQmfPY rk8MCEgZ9+HQ6X9Spy1QbhTd5PybwdyODih1w/5cEGDIk7GJlDo41W5xznvB5s0T1A6Z SclB8HTUcE5Pw7YENleJIaDMzq+PVCm8dAWQXlK+IhwwjbCqb7cTqT/Qyxab/RTnAoj2 albODb6Vpt4VEQ4XZhmJ9zqfD69F+xpaPE9J6Lu1kYntr3Fdy8BluwhFHl+BQSqUZUdr 40KgiuxS0aPOo3xuo01QZ1FhhMO9+HqaAD7GbVwZ/AghmyuG5h9uehllx9iKCE3k9XOX 6NsQ== X-Gm-Message-State: AKaTC02bWJNd5vbuEVOldy2HCUKQqb6YRiz61Z/9WfgCoe9b5xHX18r6zMDMg1AilUyarg== X-Received: by 10.99.44.84 with SMTP id s81mr54930191pgs.153.1480468568316; Tue, 29 Nov 2016 17:16:08 -0800 (PST) Received: from owl.local ([2620:15c:f:fd00:196b:357f:d485:3c17]) by smtp.gmail.com with ESMTPSA id s5sm42690196pgj.19.2016.11.29.17.16.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Nov 2016 17:16:07 -0800 (PST) From: "Kristian H. Kristensen" To: intel-gfx@lists.freedesktop.org Date: Tue, 29 Nov 2016 17:15:58 -0800 Message-Id: <20161130011559.19838-2-hoegsberg@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161130011559.19838-1-hoegsberg@gmail.com> References: <20161130011559.19838-1-hoegsberg@gmail.com> Cc: "Kristian H. Kristensen" Subject: [Intel-gfx] [PATCH 2/3] assembler: Set 3src options before sources X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Setting the 3src sources will assert align16, but that doesn't get set until we call set_instruction_options(). Call that before setting sources. Signed-off-by: Kristian H. Kristensen --- assembler/gram.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assembler/gram.y b/assembler/gram.y index 15b8b64..f370dfa 100644 --- a/assembler/gram.y +++ b/assembler/gram.y @@ -1133,6 +1133,7 @@ trinaryinstruction: set_instruction_opcode(&$$, $2); set_instruction_saturate(&$$, $4); + set_instruction_options(&$$, $10); $6.width = $5; if (set_instruction_dest_three_src(&$$, &$6)) @@ -1143,7 +1144,6 @@ trinaryinstruction: YYERROR; if (set_instruction_src2_three_src(&$$, &$9)) YYERROR; - set_instruction_options(&$$, $10); } ;