bfd/
[external/binutils.git] / gas / testsuite / gas / mips / cache.s
1 # Source file to test offsets used with the CACHE and PREF instruction.
2
3 # By default test CACHE.
4
5 # If defined, test PREF.
6         .ifdef  tpref
7         .macro  cache ops:vararg
8         pref    \ops
9         .endm
10         .endif
11
12         .set    noreorder
13         .set    noat
14
15         .text
16 text_label:
17
18         cache   5, 2047($2)
19         cache   5, -2048($3)
20
21         # 12 bits accepted for microMIPS code.
22         .ifdef  micromips
23         .set    at
24         .endif
25         cache   5, 2048($4)
26         cache   5, -2049($5)
27         cache   5, 32767($6)
28         cache   5, -32768($7)
29
30         # 16 bits accepted for standard MIPS code.
31         .ifndef micromips
32         .set    at
33         .endif
34         cache   5, 32768($8)
35         cache   5, -32769($9)
36         cache   5, 36864($10)
37         cache   5, -36865($11)
38
39 # Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
40         .align  2
41         .space  8