From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2589 invoked by alias); 21 May 2003 16:25:37 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 29894 invoked from network); 21 May 2003 16:23:53 -0000 Received: from unknown (HELO hotmail.com) (207.68.163.57) by sources.redhat.com with SMTP; 21 May 2003 16:23:53 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 21 May 2003 09:23:53 -0700 Received: from 212.153.190.4 by sea1fd.sea1.hotmail.msn.com with HTTP; Wed, 21 May 2003 16:23:51 GMT X-Originating-IP: [212.153.190.4] X-Originating-Email: [fcook377@hotmail.com] From: "Fred Cook" To: gcc@gcc.gnu.org Cc: Ulrich.Weigand@de.ibm.com Bcc: Subject: Different addressing modes? Date: Wed, 21 May 2003 16:32:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 21 May 2003 16:23:53.0084 (UTC) FILETIME=[5E7603C0:01C31FB5] X-SW-Source: 2003-05/txt/msg01941.txt.bz2 I am still trying to get addressing modes correctly in my port. Basically my architecture has the following addressing modes: 1) absolute 2) register indirect 3) register + offset 4) register + register I want to specify in my define_insn for "call" that 1+2 are allowed and in my define_insn for "movsi" that 2, 3, and 4 are allowed for loads and 2 and 3 for stores. Which macros should I define? What should I accept in GO_IF_LEGITIMATE? All four? Which constraint letters should I introduce? Four letters for the four modes? Which letters are free to use? How to specify extra constraint in the define_insn pattern? Something like... (define_insn "movsi" [(set (match_operand:SI 0 "nonimmediate_operand" "=r,S") (match_operand:SI 1 "general_operand" "L,r"))] "" "@ ld %1 -> %0 st %0 %1" ) Where S accepts a store address and L accepts a load address. Or should it be mS and mL? Or Sm or Lm? Thanks, Fred _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail