From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21260 invoked by alias); 8 Dec 2003 22:35:38 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 21180 invoked from network); 8 Dec 2003 22:35:34 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 8 Dec 2003 22:35:34 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id hB8MZU207797 for ; Mon, 8 Dec 2003 17:35:30 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id hB8MZU205217 for ; Mon, 8 Dec 2003 17:35:30 -0500 Received: from localhost.localdomain (vpn50-70.rdu.redhat.com [172.16.50.70]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id hB8MZTVa007633 for ; Mon, 8 Dec 2003 17:35:30 -0500 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id hB8MZOC04933 for gdb-patches@sources.redhat.com; Mon, 8 Dec 2003 15:35:24 -0700 Date: Mon, 08 Dec 2003 22:35:00 -0000 From: Kevin Buettner Message-Id: <1031208223524.ZM4932@localhost.localdomain> To: gdb-patches@sources.redhat.com Subject: [RFC] Add gdb.asm/frv.inc for FR-V assembly tests MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-12/txt/msg00264.txt.bz2 Any comments on the following changes? If not, I'll commit towards the end of the week. Kevin * gdb.asm/frv.inc: New file. * gdb.asm/asm-source.exp: Add frv-*-* as a supported target. Index: ./testsuite/gdb.asm/asm-source.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/asm-source.exp,v retrieving revision 1.45 diff -u -p -r1.45 asm-source.exp --- ./testsuite/gdb.asm/asm-source.exp 29 Nov 2003 13:55:17 -0000 1.45 +++ ./testsuite/gdb.asm/asm-source.exp 8 Dec 2003 22:19:09 -0000 @@ -52,6 +52,9 @@ switch -glob -- [istarget] { "d10v-*-*" { set asm-arch d10v } + "frv-*-*" { + set asm-arch frv + } "s390-*-*" { set asm-arch s390 } Index: ./testsuite/gdb.asm/frv.inc =================================================================== RCS file: ./testsuite/gdb.asm/frv.inc diff -N ./testsuite/gdb.asm/frv.inc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ ./testsuite/gdb.asm/frv.inc 8 Dec 2003 22:19:09 -0000 @@ -0,0 +1,54 @@ + comment "subroutine prologue" + .macro gdbasm_enter + addi sp,#-16,sp + sti fp, @(sp,0) + mov sp, fp + movsg lr, gr5 + sti gr5, @(fp,8) + .endm + + comment "subroutine epilogue" + .macro gdbasm_leave + ldi @(fp,8), gr5 + ld @(fp,gr0), fp + addi sp,#16,sp + jmpl @(gr5,gr0) + .endm + + .macro gdbasm_call subr + call \subr + .endm + + .macro gdbasm_several_nops + nop + nop + nop + nop + .endm + + comment "exit (0)" + .macro gdbasm_exit0 + comment "Don't know how to exit, but this will certainly halt..." + ldi @(gr0,0), gr5 + .endm + + comment "crt0 startup" + .macro gdbasm_startup + call .Lcall +.Lcall: movsg lr, gr4 + sethi #gprelhi(.Lcall), gr5 + setlo #gprello(.Lcall), gr5 + sub gr4, gr5, gr16 + + sethi #gprelhi(_stack), sp + setlo #gprello(_stack), sp + setlos #0, fp + add sp, gr16, sp + .endm + + comment "Declare a data variable" + .macro gdbasm_datavar name value + .data +\name: + .long \value + .endm