From 0630b39c7d7ecec04d1d42674a6e3564afbde609 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 17 May 1993 19:13:38 +0000 Subject: [PATCH] new tests --- gas/testsuite/gas/all/.Sanitize | 2 ++ gas/testsuite/gas/all/float.s | 4 ++++ gas/testsuite/gas/all/p1480.s | 3 +++ gas/testsuite/gas/i386/.Sanitize | 34 ++++++++++++++++++++++++++++++++ gas/testsuite/gas/i386/all.exp | 3 +++ gas/testsuite/gas/i386/inout.s | 11 +++++++++++ gas/testsuite/gas/m68k/.Sanitize | 1 + gas/testsuite/gas/m68k/p2410.s | 15 ++++++++++++++ 8 files changed, 73 insertions(+) create mode 100644 gas/testsuite/gas/all/float.s create mode 100644 gas/testsuite/gas/all/p1480.s create mode 100644 gas/testsuite/gas/i386/.Sanitize create mode 100644 gas/testsuite/gas/i386/all.exp create mode 100644 gas/testsuite/gas/i386/inout.s create mode 100644 gas/testsuite/gas/m68k/p2410.s diff --git a/gas/testsuite/gas/all/.Sanitize b/gas/testsuite/gas/all/.Sanitize index 98aa749c9dc..0a8a0115a3e 100644 --- a/gas/testsuite/gas/all/.Sanitize +++ b/gas/testsuite/gas/all/.Sanitize @@ -28,6 +28,8 @@ Things-to-keep: gas.exp comment.s +float.s +p1480.s p2425.s x930509.s diff --git a/gas/testsuite/gas/all/float.s b/gas/testsuite/gas/all/float.s new file mode 100644 index 00000000000..66050b9bd2e --- /dev/null +++ b/gas/testsuite/gas/all/float.s @@ -0,0 +1,4 @@ +.text +foo: .single 0r1.2345e+06 + .single 0f3.14159 + .double 0r2.718282 diff --git a/gas/testsuite/gas/all/p1480.s b/gas/testsuite/gas/all/p1480.s new file mode 100644 index 00000000000..183b40138c7 --- /dev/null +++ b/gas/testsuite/gas/all/p1480.s @@ -0,0 +1,3 @@ +start: .long 0, 1, 2, 3, 4, 5, 6, 7 + .space 0x20 - (. - start) +foo: .long 42 diff --git a/gas/testsuite/gas/i386/.Sanitize b/gas/testsuite/gas/i386/.Sanitize new file mode 100644 index 00000000000..1a7f0a2fd3e --- /dev/null +++ b/gas/testsuite/gas/i386/.Sanitize @@ -0,0 +1,34 @@ +# Sanitize.in for devo. +# $Id$ +# + +# 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: + +all.exp +inout.s + +Do-last: + +# End of file. diff --git a/gas/testsuite/gas/i386/all.exp b/gas/testsuite/gas/i386/all.exp new file mode 100644 index 00000000000..752567a377f --- /dev/null +++ b/gas/testsuite/gas/i386/all.exp @@ -0,0 +1,3 @@ +if [istarget i386-*] then { + gas_test "inout.s" "" $stdoptlist "various in/out syntaxes" +} diff --git a/gas/testsuite/gas/i386/inout.s b/gas/testsuite/gas/i386/inout.s new file mode 100644 index 00000000000..36c38ded448 --- /dev/null +++ b/gas/testsuite/gas/i386/inout.s @@ -0,0 +1,11 @@ +# Various syntaxes + inb %dx + outl %eax,%dx +# For these two, fix up the test case to check what modes are used -- they +# should be using outb and inw. Currently the assembler is getting them +# both wrong. + out %al, $42 + in $13, %ax +# These are used in AIX. + inw (%dx) + outw (%dx) diff --git a/gas/testsuite/gas/m68k/.Sanitize b/gas/testsuite/gas/m68k/.Sanitize index 5d0fbc506e6..a559c5d05b6 100644 --- a/gas/testsuite/gas/m68k/.Sanitize +++ b/gas/testsuite/gas/m68k/.Sanitize @@ -27,6 +27,7 @@ Do-first: Things-to-keep: all.exp +p2410.s p2663.s t2.s diff --git a/gas/testsuite/gas/m68k/p2410.s b/gas/testsuite/gas/m68k/p2410.s new file mode 100644 index 00000000000..4f0337a980e --- /dev/null +++ b/gas/testsuite/gas/m68k/p2410.s @@ -0,0 +1,15 @@ +.text +start: nop + nop + nop + bras label1 + bras label2 +.globl label1 +label1: nop + .space 0xa0 + nop + nop +.globl label2 +label2: bras label1 + bras label2 + nop -- 2.30.2