]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/testsuite/gas/mips/daddi.s
Add macro expansions for ADD, SUB, DADD and DSUB for MIPS r6
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / mips / daddi.s
CommitLineData
df58fc94
RS
1# Source file to test immediates used with the DADDI instruction.
2
3 .set noreorder
4 .set noat
5
6 .text
7text_label:
387e7624 8 .ifndef r6
df58fc94
RS
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
387e7624 20 .endif
df58fc94
RS
21
22 # 16 bits accepted for standard MIPS code.
23 .ifndef micromips
24 .set at
25 .endif
26 dadd $15, $14, 32768
27 dadd $17, $16, -32769
28 dadd $19, $18, 33280
29 dadd $21, $20, -33281
30
31# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
32 .align 2
33 .space 8