From patchwork Mon Mar 21 11:14:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 600071 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 3qTCsP3fLkz9s5M for ; Mon, 21 Mar 2016 22:14:48 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=ESHSRdh2; 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:to:cc :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=DihIniAfkD/Db6YPNQT6BzboPo8d223Dw2aR4EACorSWLy/HBK l0Z9Ehk9gvAiq+RBFjTaR4v/cd0b6ALvu3IU7Mi7UWKvbuyoLOcGfmGCmLpMSHYX gjI50vkHIRdSjhkDcVD19cZ7xIb8SZD7IKcXIcB1AWeaqgb5qd6DtJNGk= 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:to:cc :from:subject:message-id:date:mime-version:content-type; s= default; bh=5rO7eAvjkLVoX99WT06wRW7aYRo=; b=ESHSRdh2XAhDTNh5MHck 0hmiYNifJthXOuYo6LfjBSDq3T0qTKKDhQ1oabJQGhNS+yT8inGulToJ0UWcEtC2 R+lNc2aozgiGZEtFy/u6lPN2GmqkuMQ3sqpVgGlRW+Onv1ePjLq0y4+wIOG/Gadz kiBkt70IW9f5sVMc+RN0aVM= Received: (qmail 24858 invoked by alias); 21 Mar 2016 11:14:38 -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 24792 invoked by uid 89); 21 Mar 2016 11:14:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Enhance, 72110, sk:checkt, brig X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Mon, 21 Mar 2016 11:14:22 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 026B5ABC7 for ; Mon, 21 Mar 2016 11:14:19 +0000 (UTC) To: GCC Patches Cc: Martin Jambor From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Subject: [HSA, PATCH] Enhance dump output Message-ID: <56EFD78B.3010707@suse.cz> Date: Mon, 21 Mar 2016 12:14:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 X-IsSubscribed: yes Hello. Following patch enhances dump output for SBR instructions and provides a BRIG offset of HSA symbols. The change does not touch any code generation snippet and I hope it can be installed during the stage4? Patch can bootstrap on x86_64-linux-gnu and survives make check-target-libgomp. Ready for trunk? Thanks, Martin From f59542322d584a1c61bfbd0148c90671a89d0593 Mon Sep 17 00:00:00 2001 From: marxin Date: Tue, 15 Mar 2016 11:57:30 +0100 Subject: [PATCH] HSA: enhance dump output gcc/ChangeLog: 2016-03-15 Martin Liska * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR insns. (dump_hsa_symbol): Dump BRIG offset of hsa_symbols. --- gcc/hsa-dump.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/hsa-dump.c b/gcc/hsa-dump.c index c5f1f69..ad0c8bf 100644 --- a/gcc/hsa-dump.c +++ b/gcc/hsa-dump.c @@ -721,6 +721,10 @@ dump_hsa_symbol (FILE *f, hsa_symbol *symbol) if (symbol->m_type & BRIG_TYPE_ARRAY_MASK) fprintf (f, "[%lu]", (unsigned long) symbol->m_dim); + + + if (symbol->m_directive_offset) + fprintf (f, " /* BRIG offset: %u", symbol->m_directive_offset); } /* Dump textual representation of HSA IL operand OP to file F. */ @@ -929,7 +933,8 @@ dump_hsa_insn_1 (FILE *f, hsa_insn_basic *insn, int *indent) fprintf (f, ", "); } - fprintf (f, "]"); + fprintf (f, "] /* default: BB %i */", + hsa_bb_for_bb (sbr->m_default_bb)->m_index); } else if (is_a (insn)) { -- 2.7.1