From f7a7f8ab1908ba4e934f3b07bba66a771bcaab7a Mon Sep 17 00:00:00 2001 From: chaoyingfu Date: Thu, 6 Nov 2008 19:43:00 +0000 Subject: [PATCH] 2008-11-06 Chao-ying Fu * gas/mips/mips32-sync.d, gas/mip/mips32-sync.s: New tests. * gas/mips/mips.exp: Run them. --- gas/testsuite/ChangeLog | 5 +++++ gas/testsuite/gas/mips/mips.exp | 2 ++ gas/testsuite/gas/mips/mips32-sync.d | 14 ++++++++++++++ gas/testsuite/gas/mips/mips32-sync.s | 10 ++++++++++ 4 files changed, 31 insertions(+) create mode 100644 gas/testsuite/gas/mips/mips32-sync.d create mode 100644 gas/testsuite/gas/mips/mips32-sync.s 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 -- 2.11.0