Commit | Line | Data |
---|---|---|
df58fc94 RS |
1 | # Source file to test immediates used with the DADDI instruction. |
2 | ||
3 | .set noreorder | |
4 | .set noat | |
5 | ||
6 | .text | |
7 | text_label: | |
8 | ||
9 | daddi $3, $2, 511 | |
10 | daddi $5, $4, -512 | |
11 | ||
12 | # 10 bits accepted for microMIPS code. | |
13 | .ifdef micromips | |
14 | .set at | |
15 | .endif | |
16 | daddi $7, $6, 512 | |
17 | daddi $9, $8, -513 | |
18 | daddi $11, $10, 32767 | |
19 | daddi $13, $12, -32768 | |
20 | ||
21 | # 16 bits accepted for standard MIPS code. | |
22 | .ifndef micromips | |
23 | .set at | |
24 | .endif | |
25 | dadd $15, $14, 32768 | |
26 | dadd $17, $16, -32769 | |
27 | dadd $19, $18, 33280 | |
28 | dadd $21, $20, -33281 | |
29 | ||
30 | # Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ... | |
31 | .align 2 | |
32 | .space 8 |