mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-05 10:57:57 +00:00
Start of sparc generic testsuite.
asi.[ds]: new test.
This commit is contained in:
parent
3332ea9c4f
commit
dfcb88ec92
34
gas/testsuite/gas/sparc/.Sanitize
Normal file
34
gas/testsuite/gas/sparc/.Sanitize
Normal file
@ -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.
|
33
gas/testsuite/gas/sparc/asi.d
Normal file
33
gas/testsuite/gas/sparc/asi.d
Normal file
@ -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
|
28
gas/testsuite/gas/sparc/asi.s
Normal file
28
gas/testsuite/gas/sparc/asi.s
Normal file
@ -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
|
8
gas/testsuite/gas/sparc/sparc.exp
Normal file
8
gas/testsuite/gas/sparc/sparc.exp
Normal file
@ -0,0 +1,8 @@
|
||||
#
|
||||
# Some generic SPARC and SPARC64 tests
|
||||
#
|
||||
if [istarget sparc*-*-*] then {
|
||||
set sparc64 [istarget sparc64*-*-*]
|
||||
|
||||
if $sparc64 { run_dump_test "asi" }
|
||||
}
|
Loading…
Reference in New Issue
Block a user