diff options
author | Frank Ch. Eigler <fche@redhat.com> | 1998-05-18 10:15:38 +0000 |
---|---|---|
committer | Frank Ch. Eigler <fche@redhat.com> | 1998-05-18 10:15:38 +0000 |
commit | 838aec1918013df18555769494f34e55d3371a0b (patch) | |
tree | b7aed3bfbe5c433821583d7bb9efa13850349be1 /gas/testsuite | |
parent | 58b60bec0db542ebfe9b7a5e53eb04d9c65232eb (diff) | |
download | gdb-838aec1918013df18555769494f34e55d3371a0b.zip gdb-838aec1918013df18555769494f34e55d3371a0b.tar.gz gdb-838aec1918013df18555769494f34e55d3371a0b.tar.bz2 |
* Various MIPS test case tweaks.
Mon May 18 13:11:45 1998 Frank Ch. Eigler <fche@cygnus.com>
* gas/mips/{div,ld,mul}.d: Add assembler -mcpu= flag to match
disassembler.
start-sanitize-r5900
* gas/mips/break5900.[sd]: Test that break instructions generated
in div/etc. macro instructions are of 20-bit variety for R5900.
end-sanitize-r5900
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/break5900.s | 27 |
2 files changed, 37 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index addf47b..6a391d2 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,13 @@ +Mon May 18 13:11:45 1998 Frank Ch. Eigler <fche@cygnus.com> + + * gas/mips/{div,ld,mul}.d: Add assembler -mcpu= flag to match + disassembler. +start-sanitize-r5900 + * gas/mips/break5900.[sd]: Test that break instructions generated + in div/etc. macro instructions are of 20-bit variety for R5900. +end-sanitize-r5900 + + Fri May 15 14:51:01 1998 Gavin Koch <gavin@cygnus.com> * gas/mips/mips.exp: Distinguish chains with 32-bit addresses. diff --git a/gas/testsuite/gas/mips/break5900.s b/gas/testsuite/gas/mips/break5900.s new file mode 100644 index 0000000..2659b73 --- /dev/null +++ b/gas/testsuite/gas/mips/break5900.s @@ -0,0 +1,27 @@ +# Source file used to test the 20-bit break instructions +foo: + break + break 0 + break 20 + break 40 + break 1023 + break 0xffff0 + break 0xfffff + +# Test div macros to confirm its use of 20-bit break - from div.s testcase + + + div $4,1 + div $4,$5,1 + divu $0,$4,$5 + divu $4,$5 + divu $4,1 + rem $4,$5,$6 + remu $4,$5,2 + ddiv $4,$5,$6 + ddivu $4,$5,2 + drem $4,$5,0x8000 + +# force some padding, to make objdump consistently report that there's some +# here... + .space 8 |