gas/
[deliverable/binutils-gdb.git] / gas / testsuite / gas / mips / mips32-cp2.s
CommitLineData
a6d8f55b
AN
1# source file to test assembly of mips32 cop2 instructions
2
3 .set noreorder
4 .set noat
5
6 .text
7text_label:
8 # unprivileged coprocessor instructions.
9 # these tests use cp2 to avoid other (cp0, fpu, prefetch) opcodes.
10
11 bc2f text_label
12 nop
13 bc2fl text_label
14 nop
15 bc2t text_label
16 nop
17 bc2tl text_label
18 nop
19 # XXX other BCzCond encodings not currently expressable
20 cfc2 $1, $2
21 cop2 0x1234567 # disassembles as c2 ...
22 ctc2 $2, $3
23 mfc2 $3, $4
24 mfc2 $4, $5, 0 # disassembles without sel
25 mfc2 $5, $6, 7
26 mtc2 $6, $7
27 mtc2 $7, $8, 0 # disassembles without sel
28 mtc2 $8, $9, 7
29
30
31 # Cop2 branches with cond code number, like bc1t/f
32 bc2f $cc0,text_label
33 nop
34 bc2fl $cc1,text_label
35 nop
36 bc2t $cc6,text_label
37 nop
38 bc2tl $cc7,text_label
39 nop
This page took 0.239719 seconds and 4 git commands to generate.