From patchwork Fri Dec 6 17:57:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Stubbs X-Patchwork-Id: 1205230 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-515365-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="uRPP/N3y"; 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 47V0fn1WrJz9sR0 for ; Sat, 7 Dec 2019 04:57:36 +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:from :subject:to:message-id:date:mime-version:content-type; q=dns; s= default; b=nRHmOD+gPjmQc/wYD7By+JKLgxlQvTsjB22+xTPOViqrksJ3t42No N35JcQoxbEOtm+b0yoc2qEDlA6lPTTi8wq/X5XpTViheVT1dVlBHfzaP4m379XDm cn6duaJUNmQaUQWXOf0h01ynmo7GOuKK9+KWDoVxLO49m1k6Qk8uyA= 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:from :subject:to:message-id:date:mime-version:content-type; s= default; bh=2O/73zNTvLiuW6bLzxJzjvNOSow=; b=uRPP/N3ykj7GknNmt6uJ MvVcN9L7oSMoJIfJUtROE+irzA/U4KfuiNruqyB9zGxohDM/3vQve09qB1UQOoB6 DdnfP1edTvKW20Vtn4qSiBhb7MkDKCCL2RmFCUo28DHaNTu4deuoNdddnuILJ29y KQpACfmpRDy5ZcPVhFOwZUQ= Received: (qmail 3091 invoked by alias); 6 Dec 2019 17:57:28 -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 3080 invoked by uid 89); 6 Dec 2019 17:57:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: esa4.mentor.iphmx.com Received: from esa4.mentor.iphmx.com (HELO esa4.mentor.iphmx.com) (68.232.137.252) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Dec 2019 17:57:27 +0000 IronPort-SDR: ger9+muk4o47vzkgh9IN21yPmKEh0WPM4D2fUeV5DdutgjJH1cUr2XmceLwdMUvcR3vCegSQ6m 82Lgta5tmDb+KM6NV0Dn6w2oIY6U9YbURocIk0GFGirqKzKRIrTb3jIy2Qx+oAaBkS4hdStCoI oEggdw/xQe6nnKzeI/CoZhEVdy07a3iTdJ8ZDwzpmPv8yQ4IuzsaCLNAamKHL7AQ9RIH/sFFDE AfXgVELeQ1ycPykLnHupAaoXkDslfaiLF9v0oxTpz9Z+8hCMLIH1ZePfhOklRXuuke0C24+HBz MUw= Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 06 Dec 2019 09:57:25 -0800 IronPort-SDR: 4mn6KiHUViN8BmRtDsc61TztVSMGHF53ZkJWHLGQlg2hciLesQOTRIKoe6zeS8zlSmwZtNvUUV RZlIF05GBJOBJk9tMYIFxJ2P5RnCauUWrlI3hjLDJjbVMJOQbyt8TNXyJGzYEiCdQSLCvcTvXe ivJUGrSO2ZkcyAgof8reVlUIL2zrMOv8dxltcMt698paCwd3/vthXdlvQNVQkRUTPBd5k3qRi9 BrcrI60S4xx4z1Od2TyEmcGiS8bW/QNayje+pgZUnw5GOfhz5I1hQ5nOimXNXhRgUEh5rnjUS2 8uA= From: Andrew Stubbs Subject: [committed, amdgcn] Fix unrecognised instruction To: "gcc-patches@gcc.gnu.org" Message-ID: <2c48cb10-41db-91f2-a0d2-09f8ae95adaf@codesourcery.com> Date: Fri, 6 Dec 2019 17:57:19 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 Hi all, I've committed the attached to fix a failure-to-assemble bug that can occur in some vectorized code. This has been hidden for a long time because sub-word vectors were disabled on GCN, but this is no longer the case. The gather load instructions had the suffixes for store, which didn't assemble well. E.g. it had 'flat_load_short', instead of 'flat_load_ustore'. This fixes about 39 tests in vect.exp. Fix unrecognised GCN instruction. 2019-12-06 Andrew Stubbs gcc/ * config/gcn/gcn-valu.md (gather_insn_1offset): Use %o in the asm output. diff --git a/gcc/config/gcn/gcn-valu.md b/gcc/config/gcn/gcn-valu.md index 90f0dcf3106..95e0731a374 100644 --- a/gcc/config/gcn/gcn-valu.md +++ b/gcc/config/gcn/gcn-valu.md @@ -716,10 +716,10 @@ if (AS_FLAT_P (as)) { if (TARGET_GCN5_PLUS) - sprintf (buf, "flat_load%%s0\t%%0, %%1 offset:%%2%s\;s_waitcnt\t0", + sprintf (buf, "flat_load%%o0\t%%0, %%1 offset:%%2%s\;s_waitcnt\t0", glc); else - sprintf (buf, "flat_load%%s0\t%%0, %%1%s\;s_waitcnt\t0", glc); + sprintf (buf, "flat_load%%o0\t%%0, %%1%s\;s_waitcnt\t0", glc); } else if (AS_GLOBAL_P (as)) sprintf (buf, "global_load%%s0\t%%0, %%1, off offset:%%2%s\;"