From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19924 invoked by alias); 9 Jan 2010 16:46:02 -0000 Received: (qmail 19915 invoked by uid 22791); 9 Jan 2010 16:46:01 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,RCVD_IN_SORBS_WEB,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f217.google.com (HELO mail-fx0-f217.google.com) (209.85.220.217) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 09 Jan 2010 16:45:57 +0000 Received: by fxm9 with SMTP id 9so18308580fxm.10 for ; Sat, 09 Jan 2010 08:45:54 -0800 (PST) Received: by 10.223.94.200 with SMTP id a8mr4447415fan.77.1263055554776; Sat, 09 Jan 2010 08:45:54 -0800 (PST) Received: from doriath.ww600.siemens.net (ppp89-110-19-43.pppoe.avangarddsl.ru [89.110.19.43]) by mx.google.com with ESMTPS id 13sm8785273fxm.13.2010.01.09.08.45.45 (version=SSLv3 cipher=RC4-MD5); Sat, 09 Jan 2010 08:45:54 -0800 (PST) Date: Sat, 09 Jan 2010 16:46:00 -0000 From: Dmitry Eremin-Solenikov To: cgen@sources.redhat.com Subject: branch insn question Message-ID: <20100109164523.GA15551@doriath.ww600.siemens.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2010-q1/txt/msg00003.txt.bz2 Hello, I've a small problem with branch instructions on my platorm (m68hc08). All branch instructions are only short-ranged (signed 8bit offset). The recommended way to handle this is to emit jump-over code: instead of beq _long_label emit: bne .Lshort jmp _long_label .Lshort: My question is: should this be handled somehow by cgen? Or this should be completely done via gas relaxation? And what attributes should I use on branch instructions in .cpu file? Thank you. -- With best wishes Dmitry