Home | History | Annotate | Download | only in mips
      1 # source file to test assembly of mips32 cop2 instructions
      2 
      3       .set noreorder
      4       .set noat
      5 
      6       .text
      7 text_label:
      8       # unprivileged coprocessor instructions.
      9       # these tests use cp2 to avoid other (cp0, fpu, prefetch) opcodes.
     10 
     11 	.ifndef r6
     12       bc2f    text_label
     13       nop
     14       bc2fl   text_label
     15       nop
     16       bc2t    text_label
     17       nop
     18       bc2tl   text_label
     19       nop
     20 	.endif
     21       # XXX other BCzCond encodings not currently expressable
     22       cfc2    $1, $2
     23       cop2    0x1234567               # disassembles as c2 ...
     24       ctc2    $2, $3
     25       mfc2    $3, $4
     26       mfc2    $4, $5, 0               # disassembles without sel
     27       mfc2    $5, $6, 7
     28       mtc2    $6, $7
     29       mtc2    $7, $8, 0               # disassembles without sel
     30       mtc2    $8, $9, 7
     31 
     32 
     33 	.ifndef r6
     34       # Cop2 branches with cond code number, like bc1t/f
     35       bc2f    $cc0,text_label
     36       nop
     37       bc2fl   $cc1,text_label
     38       nop
     39       bc2t    $cc6,text_label
     40       nop
     41       bc2tl   $cc7,text_label
     42       nop
     43 	.endif
     44