* gas/mri/*: New tests for MRI mode.

This commit is contained in:
Ian Lance Taylor
1995-08-01 22:10:10 +00:00
parent 064ba683c9
commit 9c92373a6c
14 changed files with 152 additions and 0 deletions

View File

@ -41,6 +41,7 @@ ieee-fp
m68k
m68k-coff
mips
mri
sparc-solaris
sun4
template

View File

@ -0,0 +1,45 @@
# .Sanitize for devo/gas/testsuite/gas/mri.
# 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:
char.d
char.s
constants.d
constants.s
equ.d
equ.s
expr.d
expr.s
float.d
float.s
label.d
label.s
mri.exp
Things-to-lose:
Do-last:
# End of file.

View File

@ -0,0 +1,9 @@
#objcopy: -O srec
#name: MRI character constants
#as: -M
# Test MRI character constants
S0.*
S113....61616263616263646500000061276200.*
#pass

View File

@ -0,0 +1,6 @@
; Test MRI style character constants.
dc.b 'a'
dc.b 'abc'
dc.l 'abcde'
dc.l 'a''b'

View File

@ -0,0 +1,19 @@
#nm: --extern-only
#name: MRI constants
#as: -M
# Test MRI style constants
0*a A s01
0*a A s02
0*a A s03
0*a A s04
0*a A s05
0*a A s06
0*a A s07
0*a A s08
0*a A s09
0*61 A s10
0*61 A s11
0*61626364 A s12
0*61276200 A s13

View File

@ -0,0 +1,14 @@
xdef s01,s02,s03,s04,s05,s06,s07,s08,s09,s10,s11,s12,s13
s01 equ %1010
s02 equ 1010b
s03 equ @12
s04 equ 12o
s05 equ 12q
s06 equ 10
s07 equ 10d
s08 equ $a
s09 equ 0ah
s10 equ 'a'
s11 equ A'a'
s12 equ 'abcd'
s13 equ 'a''b'

View File

@ -0,0 +1,7 @@
#nm: --extern-only
#name: MRI EQU
#as: -M
# Test the MRI EQU directive
0*4 A SYMBOL

View File

@ -0,0 +1,3 @@
# Test the MRI EQU directive
XDEF SYMBOL
SYMBOL EQU 4

View File

@ -0,0 +1,11 @@
#nm: --extern-only
#name: MRI expressions
#as: -M
# Test expressions in MRI mode
00* A s1
00*12 A s2
00*6 A s3
ff* A s4
00* A s5

View File

@ -0,0 +1,7 @@
; Test expressions in MRI mode
xdef s1,s2,s3,s4,s5
s1 equ 1 > 2
s2 equ 3 << 1 * 3
s3 equ 5 !! 3
s4 equ "0
s5 equ (1 >= 2) ! (1 <> 1)

View File

@ -0,0 +1,10 @@
#objcopy: -O srec
#name: MRI floating point constants
#as: -M
# Test MRI floating point constants
S0.*
S118....123456789ABCDEF03F800000412000004120000042.*
S10.....C80000.*
#pass

View File

@ -0,0 +1,7 @@
; Test floating point constants in MRI mode.
dc.d :1234_5678_9abc_def0
dc.s 1.0
dc.s 1e1
dc.s 1_e_1
dc.s 1E2

View File

@ -0,0 +1,8 @@
#nm: --extern-only
#name: MRI label
#as: -M
# Test using an MRI style label
0000* T LABEL
[ ]*U SYMBOL

View File

@ -0,0 +1,5 @@
; Test using an MRI style label
* Also test MRI style comments
! And another comment
XDEF LABEL
LABEL DC.L SYMBOL ; And yet another comment