From dfcb88ec92527df214242a4352f9d99b2f78ab37 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Tue, 29 Aug 1995 22:30:13 +0000 Subject: [PATCH] Start of sparc generic testsuite. asi.[ds]: new test. --- gas/testsuite/gas/sparc/.Sanitize | 34 +++++++++++++++++++++++++++++++ gas/testsuite/gas/sparc/asi.d | 33 ++++++++++++++++++++++++++++++ gas/testsuite/gas/sparc/asi.s | 28 +++++++++++++++++++++++++ gas/testsuite/gas/sparc/sparc.exp | 8 ++++++++ 4 files changed, 103 insertions(+) create mode 100644 gas/testsuite/gas/sparc/.Sanitize create mode 100644 gas/testsuite/gas/sparc/asi.d create mode 100644 gas/testsuite/gas/sparc/asi.s create mode 100644 gas/testsuite/gas/sparc/sparc.exp diff --git a/gas/testsuite/gas/sparc/.Sanitize b/gas/testsuite/gas/sparc/.Sanitize new file mode 100644 index 0000000000..089e7d2336 --- /dev/null +++ b/gas/testsuite/gas/sparc/.Sanitize @@ -0,0 +1,34 @@ +# .Sanitize for devo/gas/testsuite/gas/sparc. + +# Each directory to survive it's way into a release will need a file +# like this one called "./.Sanitize". All keyword lines must exist, +# and must exist in the order specified by this file. Each directory +# in the tree will be processed, top down, in the following order. + +# Hash started lines like this one are comments and will be deleted +# before anything else is done. Blank lines will also be squashed +# out. + +# The lines between the "Do-first:" line and the "Things-to-keep:" +# line are executed as a /bin/sh shell script before anything else is +# done in this + +Do-first: + +# All files listed between the "Things-to-keep:" line and the +# "Files-to-sed:" line will be kept. All other files will be removed. +# Directories listed in this section will have their own Sanitize +# called. Directories not listed will be removed in their entirety +# with rm -rf. + +Things-to-keep: + +asi.d +asi.s +sparc.exp + +Things-to-lose: + +Do-last: + +# End of file. diff --git a/gas/testsuite/gas/sparc/asi.d b/gas/testsuite/gas/sparc/asi.d new file mode 100644 index 0000000000..3e69bcaaa1 --- /dev/null +++ b/gas/testsuite/gas/sparc/asi.d @@ -0,0 +1,33 @@ +#objdump: -dr +#name: sparc64 asi + +.*: +file format .*sparc.* + +No symbols in .* +Disassembly of section .text: +0+0000 lda \[ %g1 \] \(0\), %g2 +0+0004 lda \[ %g1 \] \(255\), %g2 +0+0008 lda \[ %g1 \] #ASI_AIUP, %g2 +0+000c lda \[ %g1 \] #ASI_AIUS, %g2 +0+0010 lda \[ %g1 \] #ASI_AIUP_L, %g2 +0+0014 lda \[ %g1 \] #ASI_AIUS_L, %g2 +0+0018 lda \[ %g1 \] #ASI_P, %g2 +0+001c lda \[ %g1 \] #ASI_S, %g2 +0+0020 lda \[ %g1 \] #ASI_PNF, %g2 +0+0024 lda \[ %g1 \] #ASI_SNF, %g2 +0+0028 lda \[ %g1 \] #ASI_P_L, %g2 +0+002c lda \[ %g1 \] #ASI_S_L, %g2 +0+0030 lda \[ %g1 \] #ASI_PNF_L, %g2 +0+0034 lda \[ %g1 \] #ASI_SNF_L, %g2 +0+0038 lda \[ %g1 \] #ASI_AIUP, %g2 +0+003c lda \[ %g1 \] #ASI_AIUS, %g2 +0+0040 lda \[ %g1 \] #ASI_AIUP_L, %g2 +0+0044 lda \[ %g1 \] #ASI_AIUS_L, %g2 +0+0048 lda \[ %g1 \] #ASI_P, %g2 +0+004c lda \[ %g1 \] #ASI_S, %g2 +0+0050 lda \[ %g1 \] #ASI_PNF, %g2 +0+0054 lda \[ %g1 \] #ASI_SNF, %g2 +0+0058 lda \[ %g1 \] #ASI_P_L, %g2 +0+005c lda \[ %g1 \] #ASI_S_L, %g2 +0+0060 lda \[ %g1 \] #ASI_PNF_L, %g2 +0+0064 lda \[ %g1 \] #ASI_SNF_L, %g2 diff --git a/gas/testsuite/gas/sparc/asi.s b/gas/testsuite/gas/sparc/asi.s new file mode 100644 index 0000000000..6ade4100f5 --- /dev/null +++ b/gas/testsuite/gas/sparc/asi.s @@ -0,0 +1,28 @@ +# Test asi's. + .text + lduwa [%g1]0,%g2 + lduwa [%g1]255,%g2 + lduwa [%g1]#ASI_AIUP,%g2 + lduwa [%g1]#ASI_AIUS,%g2 + lduwa [%g1]#ASI_AIUP_L,%g2 + lduwa [%g1]#ASI_AIUS_L,%g2 + lduwa [%g1]#ASI_P,%g2 + lduwa [%g1]#ASI_S,%g2 + lduwa [%g1]#ASI_PNF,%g2 + lduwa [%g1]#ASI_SNF,%g2 + lduwa [%g1]#ASI_P_L,%g2 + lduwa [%g1]#ASI_S_L,%g2 + lduwa [%g1]#ASI_PNF_L,%g2 + lduwa [%g1]#ASI_SNF_L,%g2 + lduwa [%g1]#ASI_AS_IF_USER_PRIMARY,%g2 + lduwa [%g1]#ASI_AS_IF_USER_SECONDARY,%g2 + lduwa [%g1]#ASI_AS_IF_USER_PRIMARY_L,%g2 + lduwa [%g1]#ASI_AS_IF_USER_SECONDARY_L,%g2 + lduwa [%g1]#ASI_PRIMARY,%g2 + lduwa [%g1]#ASI_SECONDARY,%g2 + lduwa [%g1]#ASI_PRIMARY_NOFAULT,%g2 + lduwa [%g1]#ASI_SECONDARY_NOFAULT,%g2 + lduwa [%g1]#ASI_PRIMARY_LITTLE,%g2 + lduwa [%g1]#ASI_SECONDARY_LITTLE,%g2 + lduwa [%g1]#ASI_PRIMARY_NOFAULT_LITTLE,%g2 + lduwa [%g1]#ASI_SECONDARY_NOFAULT_LITTLE,%g2 diff --git a/gas/testsuite/gas/sparc/sparc.exp b/gas/testsuite/gas/sparc/sparc.exp new file mode 100644 index 0000000000..8071966d3b --- /dev/null +++ b/gas/testsuite/gas/sparc/sparc.exp @@ -0,0 +1,8 @@ +# +# Some generic SPARC and SPARC64 tests +# +if [istarget sparc*-*-*] then { + set sparc64 [istarget sparc64*-*-*] + + if $sparc64 { run_dump_test "asi" } +} -- 2.34.1