From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3893 invoked by alias); 5 Nov 2009 17:00:48 -0000 Received: (qmail 3883 invoked by uid 22791); 5 Nov 2009 17:00:46 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,DNS_FROM_RFC_BOGUSMX X-Spam-Check-By: sourceware.org Received: from sebabeach.org (HELO sebabeach.org) (64.165.110.50) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 Nov 2009 17:00:41 +0000 Received: by sebabeach.org (Postfix, from userid 500) id 9DECF6E3D9; Thu, 5 Nov 2009 09:00:39 -0800 (PST) From: Doug Evans To: cgen@sourceware.org Subject: [commit] allow enums as register numbers Message-Id: <20091105170039.9DECF6E3D9@sebabeach.org> Date: Thu, 05 Nov 2009 17:00:00 -0000 X-IsSubscribed: yes 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: 2009-q4/txt/msg00034.txt.bz2 Hi. I checked in this patch. enums weren't supported as indices to reg, etc. Blech. Tested with gen-all and make check. 2009-11-05 Doug Evans * utils.scm (reduce): Delete. * rtl-traverse.scm (/rtx-canon-rtx-enum): Tweak local name. * enum.scm (gen-enum-sym): Make consistent with gen-enum-decl regarding PREFIX attribute handling. * operand.scm (): Add enum to possible types, all uses updated. (hw-index-constant?, hw-index-constant-value): New functions. (make-enum-hw-index, hw-index-enum-name, hw-index-enum-value, hw-index-enum-obj): New functions. (/operand-parse): Handle enum indices. * intrinsics.scm (md-operand:fixed-register): Use hw-index-constant?, hw-index-constant-value. * rtl.scm (rtx-constant-value): Fix handling of enums. * rtx-funcs.scm (enum): Ditto. * sid.scm ( cxmake-get): Only ifield indices are currently supported here.