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 .ifdef r6 19 cache 5, 255($2) 20 cache 5, -256($3) 21 .else 22 cache 5, 2047($2) 23 cache 5, -2048($3) 24 25 # 12 bits accepted for microMIPS code. 26 .ifdef micromips 27 .set at 28 .endif 29 cache 5, 2048($4) 30 cache 5, -2049($5) 31 cache 5, 32767($6) 32 cache 5, -32768($7) 33 34 # 16 bits accepted for standard MIPS code. 35 .ifndef micromips 36 .set at 37 .endif 38 cache 5, 32768($8) 39 cache 5, -32769($9) 40 cache 5, 36864($10) 41 cache 5, -36865($11) 42 .endif 43 44 # Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ... 45 .align 2 46 .space 8 47