]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - gas/testsuite/gas/mips/mips64-cp2.s
Merge commit 'upstream/2.20'
[msp430-binutils.git] / gas / testsuite / gas / mips / mips64-cp2.s
diff --git a/gas/testsuite/gas/mips/mips64-cp2.s b/gas/testsuite/gas/mips/mips64-cp2.s
new file mode 100644 (file)
index 0000000..a9130f0
--- /dev/null
@@ -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