From: Chao-ying Fu Date: Thu, 6 Nov 2008 19:43:00 +0000 (+0000) Subject: 2008-11-06 Chao-ying Fu X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=5fb8dac1536c9f06fdfcf467830c2ac4a515b539;p=deliverable%2Fbinutils-gdb.git 2008-11-06 Chao-ying Fu * gas/mips/mips32-sync.d, gas/mip/mips32-sync.s: New tests. * gas/mips/mips.exp: Run them. --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 871913471d..7fec932402 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-11-06 Chao-ying Fu + + * gas/mips/mips32-sync.d, gas/mip/mips32-sync.s: New tests. + * gas/mips/mips.exp: Run them. + 2008-11-04 Bob Wilson * gas/xtensa/all.exp: Run jlong test. diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index e48b81f08c..f1445bc050 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -833,5 +833,7 @@ if { [istarget mips*-*-vxworks*] } { run_dump_test "mips16-vis-1" run_dump_test "call-nonpic-1" + run_dump_test "mips32-sync" + if $has_newabi { run_dump_test "cfi-n64-1" } } diff --git a/gas/testsuite/gas/mips/mips32-sync.d b/gas/testsuite/gas/mips/mips32-sync.d new file mode 100644 index 0000000000..a86783dfee --- /dev/null +++ b/gas/testsuite/gas/mips/mips32-sync.d @@ -0,0 +1,14 @@ +#objdump: -dr --prefix-addresses --show-raw-insn -mmips:isa32 +#name: MIPS32 sync instructions +#as: -32 -mips32 + +.*: +file format .*mips.* + +Disassembly of section \.text: +0+0000 0000000f[ ]*sync +0+0004 0000000f[ ]*sync +0+0008 0000004f[ ]*sync 0x1 +0+000c 0000008f[ ]*sync 0x2 +0+0010 0000078f[ ]*sync 0x1e +0+0014 000007cf[ ]*sync 0x1f +#pass diff --git a/gas/testsuite/gas/mips/mips32-sync.s b/gas/testsuite/gas/mips/mips32-sync.s new file mode 100644 index 0000000000..bab4b1bd26 --- /dev/null +++ b/gas/testsuite/gas/mips/mips32-sync.s @@ -0,0 +1,10 @@ + .text +foo: + .ent foo + sync + sync 0 + sync 1 + sync 2 + sync 30 + sync 31 + .end foo