~ubuntu-branches/ubuntu/utopic/binutils-arm64-cross/utopic

« back to all changes in this revision

Viewing changes to binutils-2.23.52.20130611/gas/testsuite/gas/mips/micromips@mips32-cp2.s

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-06-20 17:38:09 UTC
  • Revision ID: package-import@ubuntu.com-20130620173809-app8lzgvymy5fg6c
Tags: 0.7
Build-depend on binutils-source (>= 2.23.52.20130620-1~).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Source file to test assembly of MIPS32-derived microMIPS 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
        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
 
 
21
        cfc2    $1, $2
 
22
        # Different cop2 range for microMIPS.
 
23
        cop2    0x12345                 # disassembles as c2 ...
 
24
        ctc2    $2, $3
 
25
 
 
26
        # No sel with cp2 for microMIPS.
 
27
        mfc2    $3, $4
 
28
        mtc2    $6, $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
 
40
 
 
41
# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
 
42
        .align  2
 
43
        .space  8