diff options
author | Chris Demetriou <cgd@google.com> | 2003-04-04 17:35:44 +0000 |
---|---|---|
committer | Chris Demetriou <cgd@google.com> | 2003-04-04 17:35:44 +0000 |
commit | 97f2bd8bacc60d16694951c323cdf1c7213b75f5 (patch) | |
tree | cf550e892afa92365a0fcd81982f88fb69d2a9a1 /gas | |
parent | 50bbdbd931ec00d2cc73a88dcdc3f4ebeea0460c (diff) | |
download | gdb-97f2bd8bacc60d16694951c323cdf1c7213b75f5.zip gdb-97f2bd8bacc60d16694951c323cdf1c7213b75f5.tar.gz gdb-97f2bd8bacc60d16694951c323cdf1c7213b75f5.tar.bz2 |
2003-04-04 Chris Demetriou <cgd@broadcom.com>
* gas/mips/mips5.d: New test.
* gas/mips/mips5.l: New test stderr listing.
* gas/mips/mips5.s: New test source file.
* gas/mips/mips.exp: Run the mips5 test.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips5.d | 68 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips5.l | 3 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips5.s | 65 |
5 files changed, 144 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 93004a9..b550e71 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2003-04-04 Chris Demetriou <cgd@broadcom.com> + + * gas/mips/mips5.d: New test. + * gas/mips/mips5.l: New test stderr listing. + * gas/mips/mips5.s: New test source file. + * gas/mips/mips.exp: Run the mips5 test. + 2003-04-03 Philip Blundell <philb@gnu.org> * gas/arm/offset.s: New test. diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index aa68573..cb0240d 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -481,6 +481,7 @@ if { [istarget mips*-*-*] } then { # 2000-03-12 00:00 UTC. if $ecoff { run_dump_test "lif-empic" } run_dump_test_arches "mips4" [mips_arch_list_matching mips4] + run_dump_test_arches "mips5" [mips_arch_list_matching mips5] if $ilocks { run_dump_test "mul-ilocks" } else { diff --git a/gas/testsuite/gas/mips/mips5.d b/gas/testsuite/gas/mips/mips5.d new file mode 100644 index 0000000..3b4570c --- /dev/null +++ b/gas/testsuite/gas/mips/mips5.d @@ -0,0 +1,68 @@ +#objdump: -dr --prefix-addresses --show-raw-insn -M reg-names=numeric +#name: MIPS mips5 instructions +#stderr: mips5.l + +# Check MIPS V instruction assembly + +.*: +file format .*mips.* + +Disassembly of section \.text: +0+0000 <[^>]*> 46c01045 abs\.ps \$f1,\$f2 +0+0004 <[^>]*> 46c520c0 add\.ps \$f3,\$f4,\$f5 +0+0008 <[^>]*> 4c68399e alnv\.ps \$f6,\$f7,\$f8,\$3 +0+000c <[^>]*> 46ca4832 c\.eq\.ps \$f9,\$f10 +0+0010 <[^>]*> 46cc5a32 c\.eq\.ps \$fcc2,\$f11,\$f12 +0+0014 <[^>]*> 46ca4830 c\.f\.ps \$f9,\$f10 +0+0018 <[^>]*> 46cc5a30 c\.f\.ps \$fcc2,\$f11,\$f12 +0+001c <[^>]*> 46ca483e c\.le\.ps \$f9,\$f10 +0+0020 <[^>]*> 46cc5a3e c\.le\.ps \$fcc2,\$f11,\$f12 +0+0024 <[^>]*> 46ca483c c\.lt\.ps \$f9,\$f10 +0+0028 <[^>]*> 46cc5a3c c\.lt\.ps \$fcc2,\$f11,\$f12 +0+002c <[^>]*> 46ca483d c\.nge\.ps \$f9,\$f10 +0+0030 <[^>]*> 46cc5a3d c\.nge\.ps \$fcc2,\$f11,\$f12 +0+0034 <[^>]*> 46ca483b c\.ngl\.ps \$f9,\$f10 +0+0038 <[^>]*> 46cc5a3b c\.ngl\.ps \$fcc2,\$f11,\$f12 +0+003c <[^>]*> 46ca4839 c\.ngle\.ps \$f9,\$f10 +0+0040 <[^>]*> 46cc5a39 c\.ngle\.ps \$fcc2,\$f11,\$f12 +0+0044 <[^>]*> 46ca483f c\.ngt\.ps \$f9,\$f10 +0+0048 <[^>]*> 46cc5a3f c\.ngt\.ps \$fcc2,\$f11,\$f12 +0+004c <[^>]*> 46ca4836 c\.ole\.ps \$f9,\$f10 +0+0050 <[^>]*> 46cc5a36 c\.ole\.ps \$fcc2,\$f11,\$f12 +0+0054 <[^>]*> 46ca4834 c\.olt\.ps \$f9,\$f10 +0+0058 <[^>]*> 46cc5a34 c\.olt\.ps \$fcc2,\$f11,\$f12 +0+005c <[^>]*> 46ca483a c\.seq\.ps \$f9,\$f10 +0+0060 <[^>]*> 46cc5a3a c\.seq\.ps \$fcc2,\$f11,\$f12 +0+0064 <[^>]*> 46ca4838 c\.sf\.ps \$f9,\$f10 +0+0068 <[^>]*> 46cc5a38 c\.sf\.ps \$fcc2,\$f11,\$f12 +0+006c <[^>]*> 46ca4833 c\.ueq\.ps \$f9,\$f10 +0+0070 <[^>]*> 46cc5a33 c\.ueq\.ps \$fcc2,\$f11,\$f12 +0+0074 <[^>]*> 46ca4837 c\.ule\.ps \$f9,\$f10 +0+0078 <[^>]*> 46cc5a37 c\.ule\.ps \$fcc2,\$f11,\$f12 +0+007c <[^>]*> 46ca4835 c\.ult\.ps \$f9,\$f10 +0+0080 <[^>]*> 46cc5a35 c\.ult\.ps \$fcc2,\$f11,\$f12 +0+0084 <[^>]*> 46ca4831 c\.un\.ps \$f9,\$f10 +0+0088 <[^>]*> 46cc5a31 c\.un\.ps \$fcc2,\$f11,\$f12 +0+008c <[^>]*> 460f7366 cvt\.ps\.s \$f13,\$f14,\$f15 +0+0090 <[^>]*> 46c08c28 cvt\.s\.pl \$f16,\$f17 +0+0094 <[^>]*> 46c09ca0 cvt\.s\.pu \$f18,\$f19 +0+0098 <[^>]*> 4ca40505 luxc1 \$f20,\$4\(\$5\) +0+009c <[^>]*> 4ed8bd66 madd\.ps \$f21,\$f22,\$f23,\$f24 +0+00a0 <[^>]*> 46c0d646 mov\.ps \$f25,\$f26 +0+00a4 <[^>]*> 46c8e6d1 movf\.ps \$f27,\$f28,\$fcc2 +0+00a8 <[^>]*> 46c3e6d3 movn\.ps \$f27,\$f28,\$3 +0+00ac <[^>]*> 46d1f751 movt\.ps \$f29,\$f30,\$fcc4 +0+00b0 <[^>]*> 46c5f752 movz\.ps \$f29,\$f30,\$5 +0+00b4 <[^>]*> 4c020fee msub\.ps \$f31,\$f0,\$f1,\$f2 +0+00b8 <[^>]*> 46c520c2 mul\.ps \$f3,\$f4,\$f5 +0+00bc <[^>]*> 46c03987 neg\.ps \$f6,\$f7 +0+00c0 <[^>]*> 4d2b5236 nmadd\.ps \$f8,\$f9,\$f10,\$f11 +0+00c4 <[^>]*> 4d2b523e nmsub\.ps \$f8,\$f9,\$f10,\$f11 +0+00c8 <[^>]*> 46ce6b2c pll\.ps \$f12,\$f13,\$f14 +0+00cc <[^>]*> 46d183ed plu\.ps \$f15,\$f16,\$f17 +0+00d0 <[^>]*> 46d49cae pul\.ps \$f18,\$f19,\$f20 +0+00d4 <[^>]*> 46d7b56f puu\.ps \$f21,\$f22,\$f23 +0+00d8 <[^>]*> 46dace01 sub\.ps \$f24,\$f25,\$f26 +0+00dc <[^>]*> 4ce6d80d suxc1 \$f27,\$6\(\$7\) +0+00e0 <[^>]*> 46cc5b32 c\.eq\.ps \$fcc3,\$f11,\$f12 +0+00e4 <[^>]*> 46cce6d1 movf\.ps \$f27,\$f28,\$fcc3 + \.\.\. diff --git a/gas/testsuite/gas/mips/mips5.l b/gas/testsuite/gas/mips/mips5.l new file mode 100644 index 0000000..9cacb2e --- /dev/null +++ b/gas/testsuite/gas/mips/mips5.l @@ -0,0 +1,3 @@ +.*: Assembler messages: +.*:61: Warning: Condition flag should be even for c.eq.ps, was 3 +.*:62: Warning: Condition flag should be even for movf.ps, was 3 diff --git a/gas/testsuite/gas/mips/mips5.s b/gas/testsuite/gas/mips/mips5.s new file mode 100644 index 0000000..b60935c --- /dev/null +++ b/gas/testsuite/gas/mips/mips5.s @@ -0,0 +1,65 @@ +# Source file used to test -mips5 instructions. + +text_label: + abs.ps $f1, $f2 + add.ps $f3, $f4, $f5 + alnv.ps $f6, $f7, $f8, $3 + c.eq.ps $f9, $f10 + c.eq.ps $fcc2, $f11, $f12 + c.f.ps $f9, $f10 + c.f.ps $fcc2, $f11, $f12 + c.le.ps $f9, $f10 + c.le.ps $fcc2, $f11, $f12 + c.lt.ps $f9, $f10 + c.lt.ps $fcc2, $f11, $f12 + c.nge.ps $f9, $f10 + c.nge.ps $fcc2, $f11, $f12 + c.ngl.ps $f9, $f10 + c.ngl.ps $fcc2, $f11, $f12 + c.ngle.ps $f9, $f10 + c.ngle.ps $fcc2, $f11, $f12 + c.ngt.ps $f9, $f10 + c.ngt.ps $fcc2, $f11, $f12 + c.ole.ps $f9, $f10 + c.ole.ps $fcc2, $f11, $f12 + c.olt.ps $f9, $f10 + c.olt.ps $fcc2, $f11, $f12 + c.seq.ps $f9, $f10 + c.seq.ps $fcc2, $f11, $f12 + c.sf.ps $f9, $f10 + c.sf.ps $fcc2, $f11, $f12 + c.ueq.ps $f9, $f10 + c.ueq.ps $fcc2, $f11, $f12 + c.ule.ps $f9, $f10 + c.ule.ps $fcc2, $f11, $f12 + c.ult.ps $f9, $f10 + c.ult.ps $fcc2, $f11, $f12 + c.un.ps $f9, $f10 + c.un.ps $fcc2, $f11, $f12 + cvt.ps.s $f13, $f14, $f15 + cvt.s.pl $f16, $f17 + cvt.s.pu $f18, $f19 + luxc1 $f20, $4($5) + madd.ps $f21, $f22, $f23, $f24 + mov.ps $f25, $f26 + movf.ps $f27, $f28, $fcc2 + movn.ps $f27, $f28, $3 + movt.ps $f29, $f30, $fcc4 + movz.ps $f29, $f30, $5 + msub.ps $f31, $f0, $f1, $f2 + mul.ps $f3, $f4, $f5 + neg.ps $f6, $f7 + nmadd.ps $f8, $f9, $f10, $f11 + nmsub.ps $f8, $f9, $f10, $f11 + pll.ps $f12, $f13, $f14 + plu.ps $f15, $f16, $f17 + pul.ps $f18, $f19, $f20 + puu.ps $f21, $f22, $f23 + sub.ps $f24, $f25, $f26 + suxc1 $f27, $6($7) + + c.eq.ps $fcc3, $f11, $f12 # warns + movf.ps $f27, $f28, $fcc3 # warns + +# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ... + .space 8 |