aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAdam Nemet <anemet@caviumnetworks.com>2008-07-07 19:28:02 +0000
committerAdam Nemet <anemet@caviumnetworks.com>2008-07-07 19:28:02 +0000
commita6d8f55bfd14a16835ce7ed05b700e57cf08ead1 (patch)
tree964eb80c32aeee292a4753b1f3768ad0c54ba9b6 /gas
parentb19e8a9baee7c520847208842502e38e7b5116dc (diff)
downloadgdb-a6d8f55bfd14a16835ce7ed05b700e57cf08ead1.zip
gdb-a6d8f55bfd14a16835ce7ed05b700e57cf08ead1.tar.gz
gdb-a6d8f55bfd14a16835ce7ed05b700e57cf08ead1.tar.bz2
* gas/mips/mips32.s: Move out coprocessor2 insns from here ...
* gas/mips/mips32-cp2.s: ... to here. * gas/mips/mips32.d: Update. * gas/mips/mips32-cp2.d: New file. * gas/mips/mips32r2.s: Move out coprocessor2 insns from here ... * gas/mips/mips32r2-cp2.s: ... to here. * gas/mips/mips32r2.d: Update. * gas/mips/mips32r2-cp2.d: New file. * gas/mips/mips64.s: Move out coprocessor2 insns from here ... * gas/mips/mips64-cp2.s: ... to here. * gas/mips/mips64.d: Update. * gas/mips/mips64-cp2.d: New file. * gas/mips/mips.exp: Run mips32-cp2, mips32r2-cp2 and mips64-cp except for Octeon. * gas/mips/octeon.s: Add supported coprocessor insns. Move pop down to keep alphabetical order. * gas/mips/octeon.d: Update. * gas/mips/octeon-ill.s: Add unsupported coprocessor insns. * gas/mips/octeon-ill.l: Update.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog22
-rw-r--r--gas/testsuite/gas/mips/mips.exp6
-rw-r--r--gas/testsuite/gas/mips/mips32-cp2.d35
-rw-r--r--gas/testsuite/gas/mips/mips32-cp2.s39
-rw-r--r--gas/testsuite/gas/mips/mips32.d81
-rw-r--r--gas/testsuite/gas/mips/mips32.s33
-rw-r--r--gas/testsuite/gas/mips/mips32r2-cp2.d12
-rw-r--r--gas/testsuite/gas/mips/mips32r2-cp2.s12
-rw-r--r--gas/testsuite/gas/mips/mips32r2.d2
-rw-r--r--gas/testsuite/gas/mips/mips32r2.s5
-rw-r--r--gas/testsuite/gas/mips/mips64-cp2.d16
-rw-r--r--gas/testsuite/gas/mips/mips64-cp2.s17
-rw-r--r--gas/testsuite/gas/mips/mips64.d7
-rw-r--r--gas/testsuite/gas/mips/mips64.s10
-rw-r--r--gas/testsuite/gas/mips/octeon-ill.l44
-rw-r--r--gas/testsuite/gas/mips/octeon-ill.s29
-rw-r--r--gas/testsuite/gas/mips/octeon.d20
-rw-r--r--gas/testsuite/gas/mips/octeon.s23
18 files changed, 286 insertions, 127 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index aca2c7e..bf70efe 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,25 @@
+2008-07-07 Adam Nemet <anemet@caviumnetworks.com>
+
+ * gas/mips/mips32.s: Move out coprocessor2 insns from here ...
+ * gas/mips/mips32-cp2.s: ... to here.
+ * gas/mips/mips32.d: Update.
+ * gas/mips/mips32-cp2.d: New file.
+ * gas/mips/mips32r2.s: Move out coprocessor2 insns from here ...
+ * gas/mips/mips32r2-cp2.s: ... to here.
+ * gas/mips/mips32r2.d: Update.
+ * gas/mips/mips32r2-cp2.d: New file.
+ * gas/mips/mips64.s: Move out coprocessor2 insns from here ...
+ * gas/mips/mips64-cp2.s: ... to here.
+ * gas/mips/mips64.d: Update.
+ * gas/mips/mips64-cp2.d: New file.
+ * gas/mips/mips.exp: Run mips32-cp2, mips32r2-cp2 and mips64-cp
+ except for Octeon.
+ * gas/mips/octeon.s: Add supported coprocessor insns. Move pop
+ down to keep alphabetical order.
+ * gas/mips/octeon.d: Update.
+ * gas/mips/octeon-ill.s: Add unsupported coprocessor insns.
+ * gas/mips/octeon-ill.l: Update.
+
2008-07-07 Paul Brook <paul@codesourcery.com>
* gas/arm/movw-local.d: New test.
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index c960bf2..8ee4646 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -552,8 +552,12 @@ if { [istarget mips*-*-vxworks*] } {
run_dump_test_arches "mips32-sf32" [mips_arch_list_matching mips32]
run_list_test_arches "mips32-sf32" "-32 -msoft-float" \
[mips_arch_list_matching mips32]
+ run_dump_test_arches "mips32-cp2" [mips_arch_list_matching mips32 \
+ !octeon]
run_dump_test_arches "mips32r2" [mips_arch_list_matching mips32r2]
+ run_dump_test_arches "mips32r2-cp2" [mips_arch_list_matching mips32r2 \
+ !octeon]
run_dump_test_arches "mips32r2-fp32" \
[mips_arch_list_matching mips32r2]
run_list_test_arches "mips32r2-fp32" "-32 -msoft-float" \
@@ -566,6 +570,8 @@ if { [istarget mips*-*-vxworks*] } {
[mips_arch_list_matching mips32r2]
run_dump_test_arches "mips64" [mips_arch_list_matching mips64]
+ run_dump_test_arches "mips64-cp2" [mips_arch_list_matching mips64 \
+ !octeon]
run_dump_test_arches "mips64r2" [mips_arch_list_matching mips64r2]
run_list_test_arches "mips64r2-ill" "" [mips_arch_list_matching mips64r2]
diff --git a/gas/testsuite/gas/mips/mips32-cp2.d b/gas/testsuite/gas/mips/mips32-cp2.d
new file mode 100644
index 0000000..60b3f76
--- /dev/null
+++ b/gas/testsuite/gas/mips/mips32-cp2.d
@@ -0,0 +1,35 @@
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: MIPS MIPS32 cop2 instructions
+#as: -32
+
+# Check MIPS32 cop2 instruction assembly
+
+.*: +file format .*mips.*
+
+Disassembly of section .text:
+0+0000 <[^>]*> 4900ffff bc2f 0+0000 <text_label>
+0+0004 <[^>]*> 00000000 nop
+0+0008 <[^>]*> 4902fffd bc2fl 0+0000 <text_label>
+0+000c <[^>]*> 00000000 nop
+0+0010 <[^>]*> 4901fffb bc2t 0+0000 <text_label>
+0+0014 <[^>]*> 00000000 nop
+0+0018 <[^>]*> 4903fff9 bc2tl 0+0000 <text_label>
+0+001c <[^>]*> 00000000 nop
+0+0020 <[^>]*> 48411000 cfc2 at,\$2
+0+0024 <[^>]*> 4b234567 c2 0x1234567
+0+0028 <[^>]*> 48c21800 ctc2 v0,\$3
+0+002c <[^>]*> 48032000 mfc2 v1,\$4
+0+0030 <[^>]*> 48042800 mfc2 a0,\$5
+0+0034 <[^>]*> 48053007 mfc2 a1,\$6,7
+0+0038 <[^>]*> 48863800 mtc2 a2,\$7
+0+003c <[^>]*> 48874000 mtc2 a3,\$8
+0+0040 <[^>]*> 48884807 mtc2 t0,\$9,7
+0+0044 <[^>]*> 4900ffee bc2f 0+0000 <text_label>
+0+0048 <[^>]*> 00000000 nop
+0+004c <[^>]*> 4906ffec bc2fl \$cc1,0+0000 <text_label>
+0+0050 <[^>]*> 00000000 nop
+0+0054 <[^>]*> 4919ffea bc2t \$cc6,0+0000 <text_label>
+0+0058 <[^>]*> 00000000 nop
+0+005c <[^>]*> 491fffe8 bc2tl \$cc7,0+0000 <text_label>
+0+0060 <[^>]*> 00000000 nop
+#pass
diff --git a/gas/testsuite/gas/mips/mips32-cp2.s b/gas/testsuite/gas/mips/mips32-cp2.s
new file mode 100644
index 0000000..182ba87
--- /dev/null
+++ b/gas/testsuite/gas/mips/mips32-cp2.s
@@ -0,0 +1,39 @@
+# source file to test assembly of mips32 cop2 instructions
+
+ .set noreorder
+ .set noat
+
+ .text
+text_label:
+ # unprivileged coprocessor instructions.
+ # these tests use cp2 to avoid other (cp0, fpu, prefetch) opcodes.
+
+ bc2f text_label
+ nop
+ bc2fl text_label
+ nop
+ bc2t text_label
+ nop
+ bc2tl text_label
+ nop
+ # XXX other BCzCond encodings not currently expressable
+ cfc2 $1, $2
+ cop2 0x1234567 # disassembles as c2 ...
+ ctc2 $2, $3
+ mfc2 $3, $4
+ mfc2 $4, $5, 0 # disassembles without sel
+ mfc2 $5, $6, 7
+ mtc2 $6, $7
+ mtc2 $7, $8, 0 # disassembles without sel
+ mtc2 $8, $9, 7
+
+
+ # Cop2 branches with cond code number, like bc1t/f
+ bc2f $cc0,text_label
+ nop
+ bc2fl $cc1,text_label
+ nop
+ bc2t $cc6,text_label
+ nop
+ bc2tl $cc7,text_label
+ nop
diff --git a/gas/testsuite/gas/mips/mips32.d b/gas/testsuite/gas/mips/mips32.d
index 14693fc..afcdfd4e 100644
--- a/gas/testsuite/gas/mips/mips32.d
+++ b/gas/testsuite/gas/mips/mips32.d
@@ -18,57 +18,32 @@ Disassembly of section .text:
0+0020 <[^>]*> ce247fff pref 0x4,32767\(s1\)
0+0024 <[^>]*> ce448000 pref 0x4,-32768\(s2\)
0+0028 <[^>]*> 00000040 ssnop
-0+002c <[^>]*> 4900fff4 bc2f 0+0000 <text_label>
-0+0030 <[^>]*> 00000000 nop
-0+0034 <[^>]*> 4902fff2 bc2fl 0+0000 <text_label>
-0+0038 <[^>]*> 00000000 nop
-0+003c <[^>]*> 4901fff0 bc2t 0+0000 <text_label>
-0+0040 <[^>]*> 00000000 nop
-0+0044 <[^>]*> 4903ffee bc2tl 0+0000 <text_label>
-0+0048 <[^>]*> 00000000 nop
-0+004c <[^>]*> 48411000 cfc2 at,\$2
-0+0050 <[^>]*> 4b234567 c2 0x1234567
-0+0054 <[^>]*> 48c21800 ctc2 v0,\$3
-0+0058 <[^>]*> 48032000 mfc2 v1,\$4
-0+005c <[^>]*> 48042800 mfc2 a0,\$5
-0+0060 <[^>]*> 48053007 mfc2 a1,\$6,7
-0+0064 <[^>]*> 48863800 mtc2 a2,\$7
-0+0068 <[^>]*> 48874000 mtc2 a3,\$8
-0+006c <[^>]*> 48884807 mtc2 t0,\$9,7
-0+0070 <[^>]*> bc250000 cache 0x5,0\(at\)
-0+0074 <[^>]*> bc457fff cache 0x5,32767\(v0\)
-0+0078 <[^>]*> bc658000 cache 0x5,-32768\(v1\)
-0+007c <[^>]*> 3c010001 lui at,0x1
-0+0080 <[^>]*> 00240821 addu at,at,a0
-0+0084 <[^>]*> bc258000 cache 0x5,-32768\(at\)
-0+0088 <[^>]*> 3c01ffff lui at,0xffff
-0+008c <[^>]*> 00250821 addu at,at,a1
-0+0090 <[^>]*> bc257fff cache 0x5,32767\(at\)
-0+0094 <[^>]*> 3c010001 lui at,0x1
-0+0098 <[^>]*> bc258000 cache 0x5,-32768\(at\)
-0+009c <[^>]*> 3c01ffff lui at,0xffff
-0+00a0 <[^>]*> bc257fff cache 0x5,32767\(at\)
-0+00a4 <[^>]*> 42000018 eret
-0+00a8 <[^>]*> 42000008 tlbp
-0+00ac <[^>]*> 42000001 tlbr
-0+00b0 <[^>]*> 42000002 tlbwi
-0+00b4 <[^>]*> 42000006 tlbwr
-0+00b8 <[^>]*> 42000020 wait
-0+00bc <[^>]*> 42000020 wait
-0+00c0 <[^>]*> 4359e260 wait 0x56789
-0+00c4 <[^>]*> 0000000d break
-0+00c8 <[^>]*> 0000000d break
-0+00cc <[^>]*> 0345000d break 0x345
-0+00d0 <[^>]*> 0048d14d break 0x48,0x345
-0+00d4 <[^>]*> 7000003f sdbbp
-0+00d8 <[^>]*> 7000003f sdbbp
-0+00dc <[^>]*> 7159e27f sdbbp 0x56789
-0+00e0 <[^>]*> 4900ffc7 bc2f 0+0000 <text_label>
-0+00e4 <[^>]*> 00000000 nop
-0+00e8 <[^>]*> 4906ffc5 bc2fl \$cc1,0+0000 <text_label>
-0+00ec <[^>]*> 00000000 nop
-0+00f0 <[^>]*> 4919ffc3 bc2t \$cc6,0+0000 <text_label>
-0+00f4 <[^>]*> 00000000 nop
-0+00f8 <[^>]*> 491fffc1 bc2tl \$cc7,0+0000 <text_label>
-0+00fc <[^>]*> 00000000 nop
+0+002c <[^>]*> bc250000 cache 0x5,0\(at\)
+0+0030 <[^>]*> bc457fff cache 0x5,32767\(v0\)
+0+0034 <[^>]*> bc658000 cache 0x5,-32768\(v1\)
+0+0038 <[^>]*> 3c010001 lui at,0x1
+0+003c <[^>]*> 00240821 addu at,at,a0
+0+0040 <[^>]*> bc258000 cache 0x5,-32768\(at\)
+0+0044 <[^>]*> 3c01ffff lui at,0xffff
+0+0048 <[^>]*> 00250821 addu at,at,a1
+0+004c <[^>]*> bc257fff cache 0x5,32767\(at\)
+0+0050 <[^>]*> 3c010001 lui at,0x1
+0+0054 <[^>]*> bc258000 cache 0x5,-32768\(at\)
+0+0058 <[^>]*> 3c01ffff lui at,0xffff
+0+005c <[^>]*> bc257fff cache 0x5,32767\(at\)
+0+0060 <[^>]*> 42000018 eret
+0+0064 <[^>]*> 42000008 tlbp
+0+0068 <[^>]*> 42000001 tlbr
+0+006c <[^>]*> 42000002 tlbwi
+0+0070 <[^>]*> 42000006 tlbwr
+0+0074 <[^>]*> 42000020 wait
+0+0078 <[^>]*> 42000020 wait
+0+007c <[^>]*> 4359e260 wait 0x56789
+0+0080 <[^>]*> 0000000d break
+0+0084 <[^>]*> 0000000d break
+0+0088 <[^>]*> 0345000d break 0x345
+0+008c <[^>]*> 0048d14d break 0x48,0x345
+0+0090 <[^>]*> 7000003f sdbbp
+0+0094 <[^>]*> 7000003f sdbbp
+0+0098 <[^>]*> 7159e27f sdbbp 0x56789
\.\.\.
diff --git a/gas/testsuite/gas/mips/mips32.s b/gas/testsuite/gas/mips/mips32.s
index f542658..9b3e44c 100644
--- a/gas/testsuite/gas/mips/mips32.s
+++ b/gas/testsuite/gas/mips/mips32.s
@@ -21,29 +21,6 @@ text_label:
ssnop
- # unprivileged coprocessor instructions.
- # these tests use cp2 to avoid other (cp0, fpu, prefetch) opcodes.
-
- bc2f text_label
- nop
- bc2fl text_label
- nop
- bc2t text_label
- nop
- bc2tl text_label
- nop
- # XXX other BCzCond encodings not currently expressable
- cfc2 $1, $2
- cop2 0x1234567 # disassembles as c2 ...
- ctc2 $2, $3
- mfc2 $3, $4
- mfc2 $4, $5, 0 # disassembles without sel
- mfc2 $5, $6, 7
- mtc2 $6, $7
- mtc2 $7, $8, 0 # disassembles without sel
- mtc2 $8, $9, 7
-
-
# privileged instructions
cache 5, ($1)
@@ -79,15 +56,5 @@ text_label:
sdbbp 0 # disassembles without code
sdbbp 0x56789
- # Cop2 branches with cond code number, like bc1t/f
- bc2f $cc0,text_label
- nop
- bc2fl $cc1,text_label
- nop
- bc2t $cc6,text_label
- nop
- bc2tl $cc7,text_label
- nop
-
# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
.space 8
diff --git a/gas/testsuite/gas/mips/mips32r2-cp2.d b/gas/testsuite/gas/mips/mips32r2-cp2.d
new file mode 100644
index 0000000..f7f5f83
--- /dev/null
+++ b/gas/testsuite/gas/mips/mips32r2-cp2.d
@@ -0,0 +1,12 @@
+#objdump: -dr --prefix-addresses --show-raw-insn -M reg-names=numeric
+#name: MIPS MIPS32r2 cop2 instructions
+#as: -32
+
+# Check MIPS32 Release 2 (mips32r2) cop2 instruction assembly
+
+.*: +file format .*mips.*
+
+Disassembly of section .text:
+0+0000 <[^>]*> 48715555 mfhc2 \$17,0x5555
+0+0004 <[^>]*> 48f15555 mthc2 \$17,0x5555
+#pass
diff --git a/gas/testsuite/gas/mips/mips32r2-cp2.s b/gas/testsuite/gas/mips/mips32r2-cp2.s
new file mode 100644
index 0000000..27cfdaa
--- /dev/null
+++ b/gas/testsuite/gas/mips/mips32r2-cp2.s
@@ -0,0 +1,12 @@
+# source file to test assembly of mips32r2 cop2 instructions
+
+ .set noreorder
+ .set noat
+
+ .text
+text_label:
+ # cp2 instructions
+
+ mfhc2 $17, 0x5555
+ mthc2 $17, 0x5555
+
diff --git a/gas/testsuite/gas/mips/mips32r2.d b/gas/testsuite/gas/mips/mips32r2.d
index 62a689d..5d72709 100644
--- a/gas/testsuite/gas/mips/mips32r2.d
+++ b/gas/testsuite/gas/mips/mips32r2.d
@@ -40,6 +40,4 @@ Disassembly of section .text:
0+0078 <[^>]*> 416a6020 ei \$10
0+007c <[^>]*> 41595000 rdpgpr \$10,\$25
0+0080 <[^>]*> 41d95000 wrpgpr \$10,\$25
-0+0084 <[^>]*> 48715555 mfhc2 \$17,0x5555
-0+0088 <[^>]*> 48f15555 mthc2 \$17,0x5555
...
diff --git a/gas/testsuite/gas/mips/mips32r2.s b/gas/testsuite/gas/mips/mips32r2.s
index d91f8b2..8dc6a51 100644
--- a/gas/testsuite/gas/mips/mips32r2.s
+++ b/gas/testsuite/gas/mips/mips32r2.s
@@ -63,10 +63,5 @@ text_label:
wrpgpr $10, $25
- # cp2 instructions
-
- mfhc2 $17, 0x5555
- mthc2 $17, 0x5555
-
# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
.space 8
diff --git a/gas/testsuite/gas/mips/mips64-cp2.d b/gas/testsuite/gas/mips/mips64-cp2.d
new file mode 100644
index 0000000..bf1a218
--- /dev/null
+++ b/gas/testsuite/gas/mips/mips64-cp2.d
@@ -0,0 +1,16 @@
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: MIPS MIPS64 cop2 instructions
+#as: -32
+
+# Check MIPS64 cop2 instruction assembly
+
+.*: +file format .*mips.*
+
+Disassembly of section .text:
+0+0000 <[^>]*> 48232000 dmfc2 v1,\$4
+0+0004 <[^>]*> 48242800 dmfc2 a0,\$5
+0+0008 <[^>]*> 48253007 dmfc2 a1,\$6,7
+0+000c <[^>]*> 48a63800 dmtc2 a2,\$7
+0+0010 <[^>]*> 48a74000 dmtc2 a3,\$8
+0+0014 <[^>]*> 48a84807 dmtc2 t0,\$9,7
+#pass
diff --git a/gas/testsuite/gas/mips/mips64-cp2.s b/gas/testsuite/gas/mips/mips64-cp2.s
new file mode 100644
index 0000000..a9130f0
--- /dev/null
+++ b/gas/testsuite/gas/mips/mips64-cp2.s
@@ -0,0 +1,17 @@
+# source file to test assembly of mips64 cop2 instructions
+
+ .set noreorder
+ .set noat
+
+ .globl text_label .text
+text_label:
+
+ # unprivileged coprocessor instructions.
+ # these tests use cp2 to avoid other (cp0, fpu, prefetch) opcodes.
+
+ dmfc2 $3, $4
+ dmfc2 $4, $5, 0 # disassembles without sel
+ dmfc2 $5, $6, 7
+ dmtc2 $6, $7
+ dmtc2 $7, $8, 0 # disassembles without sel
+ dmtc2 $8, $9, 7
diff --git a/gas/testsuite/gas/mips/mips64.d b/gas/testsuite/gas/mips/mips64.d
index 97679eb..0c49503 100644
--- a/gas/testsuite/gas/mips/mips64.d
+++ b/gas/testsuite/gas/mips/mips64.d
@@ -9,9 +9,4 @@
Disassembly of section .text:
0+0000 <[^>]*> 70410825 dclo at,v0
0+0004 <[^>]*> 70831824 dclz v1,a0
-0+0008 <[^>]*> 48232000 dmfc2 v1,\$4
-0+000c <[^>]*> 48242800 dmfc2 a0,\$5
-0+0010 <[^>]*> 48253007 dmfc2 a1,\$6,7
-0+0014 <[^>]*> 48a63800 dmtc2 a2,\$7
-0+0018 <[^>]*> 48a74000 dmtc2 a3,\$8
-0+001c <[^>]*> 48a84807 dmtc2 t0,\$9,7
+#pass
diff --git a/gas/testsuite/gas/mips/mips64.s b/gas/testsuite/gas/mips/mips64.s
index bf5e6b7..ab0b8eb 100644
--- a/gas/testsuite/gas/mips/mips64.s
+++ b/gas/testsuite/gas/mips/mips64.s
@@ -10,13 +10,3 @@ text_label:
dclo $1, $2
dclz $3, $4
-
- # unprivileged coprocessor instructions.
- # these tests use cp2 to avoid other (cp0, fpu, prefetch) opcodes.
-
- dmfc2 $3, $4
- dmfc2 $4, $5, 0 # disassembles without sel
- dmfc2 $5, $6, 7
- dmtc2 $6, $7
- dmtc2 $7, $8, 0 # disassembles without sel
- dmtc2 $8, $9, 7
diff --git a/gas/testsuite/gas/mips/octeon-ill.l b/gas/testsuite/gas/mips/octeon-ill.l
index 880f2f5..ffb1e6d 100644
--- a/gas/testsuite/gas/mips/octeon-ill.l
+++ b/gas/testsuite/gas/mips/octeon-ill.l
@@ -8,12 +8,38 @@
.*:18: Error: Improper size \(25\)
.*:20: Error: Improper position \(64\)
.*:21: Error: Improper size \(14\)
-.*:23: Error: Improper size \(32\)
-.*:25: Error: Improper position \(32\)
-.*:26: Error: Improper size \(29\)
-.*:28: Error: Improper position \(70\)
-.*:29: Error: Improper size \(25\)
-.*:31: Error: Improper immediate \(512\)
-.*:32: Error: Improper immediate \(-771\)
-.*:33: Error: Improper immediate \(615\)
-.*:34: Error: Improper immediate \(-513\)
+.*:23: Error: opcode not supported on this processor.*
+.*:24: Error: opcode not supported on this processor.*
+.*:25: Error: opcode not supported on this processor.*
+.*:26: Error: opcode not supported on this processor.*
+.*:27: Error: opcode not supported on this processor.*
+.*:28: Error: opcode not supported on this processor.*
+.*:29: Error: opcode not supported on this processor.*
+.*:30: Error: opcode not supported on this processor.*
+.*:31: Error: opcode not supported on this processor.*
+.*:32: Error: opcode not supported on this processor.*
+.*:33: Error: opcode not supported on this processor.*
+.*:34: Error: opcode not supported on this processor.*
+.*:35: Error: opcode not supported on this processor.*
+.*:36: Error: opcode not supported on this processor.*
+.*:37: Error: opcode not supported on this processor.*
+.*:39: Error: opcode not supported on this processor.*
+.*:40: Error: opcode not supported on this processor.*
+.*:41: Error: opcode not supported on this processor.*
+.*:42: Error: opcode not supported on this processor.*
+.*:43: Error: opcode not supported on this processor.*
+.*:45: Error: expression out of range
+.*:46: Error: expression out of range
+.*:47: Error: register value used as expression
+.*:48: Error: illegal operands `dmfc2'
+.*:49: Error: register value used as expression
+.*:50: Error: illegal operands `dmtc2'
+.*:52: Error: Improper size \(32\)
+.*:54: Error: Improper position \(32\)
+.*:55: Error: Improper size \(29\)
+.*:57: Error: Improper position \(70\)
+.*:58: Error: Improper size \(25\)
+.*:60: Error: Improper immediate \(512\)
+.*:61: Error: Improper immediate \(-771\)
+.*:62: Error: Improper immediate \(615\)
+.*:63: Error: Improper immediate \(-513\)
diff --git a/gas/testsuite/gas/mips/octeon-ill.s b/gas/testsuite/gas/mips/octeon-ill.s
index 1319938..d7ce7db 100644
--- a/gas/testsuite/gas/mips/octeon-ill.s
+++ b/gas/testsuite/gas/mips/octeon-ill.s
@@ -20,6 +20,35 @@ foo:
cins $24,$10,64,8
cins $21,$30,50,14
+ c2 1
+ bc2f foo
+ bc2fl foo
+ bc2t foo
+ bc2tl foo
+ cfc2 $25,$12
+ ctc2 $12,$2
+ ldc2 $10,0($25)
+ lwc2 $11,12($31)
+ mfc2 $24,$1
+ mfhc2 $17,$20
+ mtc2 $2,$21
+ mthc2 $13,$25
+ sdc2 $22,8($4)
+ swc2 $2,24($2)
+
+ cop2 23
+ ldc2 $8,foo
+ lwc2 $16,foo+4
+ sdc2 $10,0x12345678
+ swc2 $16,0x12345($15)
+
+ dmfc2 $2,0x10000
+ dmtc2 $2,0x12345
+ dmfc2 $9,$12
+ dmfc2 $4,$15,4
+ dmtc2 $16,$8
+ dmtc2 $22,$7,$4
+
exts $26,26,32
exts32 $7,$21,32,10
diff --git a/gas/testsuite/gas/mips/octeon.d b/gas/testsuite/gas/mips/octeon.d
index ede90a3..73c4bee 100644
--- a/gas/testsuite/gas/mips/octeon.d
+++ b/gas/testsuite/gas/mips/octeon.d
@@ -29,22 +29,34 @@ Disassembly of section .text:
.*: 71ef2973 cins32 \$15,\$15,0x5,0x5
.*: 731c9803 dmul \$19,\$24,\$28
.*: 72b9a803 dmul \$21,\$21,\$25
-.*: 7260402c pop \$8,\$19
-.*: 7040102c pop \$2,\$2
-.*: 72c0782d dpop \$15,\$22
-.*: 7180602d dpop \$12,\$12
.*: 73847efa exts \$4,\$28,0x1b,0xf
.*: 71ef347a exts \$15,\$15,0x11,0x6
.*: 71a442bb exts32 \$4,\$13,0xa,0x8
.*: 71efa2fb exts32 \$15,\$15,0xb,0x14
.*: 70874dbb exts32 \$7,\$4,0x16,0x9
.*: 7339c97b exts32 \$25,\$25,0x5,0x19
+.*: 400dc800 mfc0 \$13,\$25
+.*: 400d5807 mfc0 \$13,\$11,7
+.*: 40861000 mtc0 \$6,\$2
+.*: 40954806 mtc0 \$21,\$9,6
+.*: 4023e800 dmfc0 \$3,\$29
+.*: 402ba005 dmfc0 \$11,\$20,5
+.*: 40b71000 dmtc0 \$23,\$2
+.*: 40a77002 dmtc0 \$7,\$14,2
+.*: 41606000 di
+.*: 41606020 ei
+.*: 48230084 dmfc2 \$3,0x84
+.*: 48a84200 dmtc2 \$8,0x4200
.*: 73400008 mtm0 \$26
.*: 7260000c mtm1 \$19
.*: 7240000d mtm2 \$18
.*: 72000009 mtp0 \$16
.*: 7320000a mtp1 \$25
.*: 7120000b mtp2 \$9
+.*: 7260402c pop \$8,\$19
+.*: 7040102c pop \$2,\$2
+.*: 72c0782d dpop \$15,\$22
+.*: 7180602d dpop \$12,\$12
.*: 72f8e82a seq \$29,\$23,\$24
.*: 70dc302a seq \$6,\$6,\$28
.*: 71f1802e seqi \$17,\$15,-512
diff --git a/gas/testsuite/gas/mips/octeon.s b/gas/testsuite/gas/mips/octeon.s
index b759504..4772b4c 100644
--- a/gas/testsuite/gas/mips/octeon.s
+++ b/gas/testsuite/gas/mips/octeon.s
@@ -29,11 +29,6 @@ foo:
dmul $19,$24,$28
dmul $21,$25
- pop $8,$19
- pop $2
- dpop $15,$22
- dpop $12
-
exts $4,$28,27,15
exts $15,17,6
exts32 $4,$13,10,8
@@ -41,6 +36,19 @@ foo:
exts $7,$4,54,9
exts $25,37,25
+ mfc0 $13,$25
+ mfc0 $13,$11,7
+ mtc0 $6,$2
+ mtc0 $21,$9,6
+ dmfc0 $3,$29
+ dmfc0 $11,$20,5
+ dmtc0 $23,$2
+ dmtc0 $7,$14,2
+ di
+ ei
+ dmfc2 $3,0x84
+ dmtc2 $8,0x4200
+
mtm0 $26
mtm1 $19
mtm2 $18
@@ -49,6 +57,11 @@ foo:
mtp1 $25
mtp2 $9
+ pop $8,$19
+ pop $2
+ dpop $15,$22
+ dpop $12
+
seq $29,$23,$24
seq $6,$28