MIPS/gas: Fix order of instructions in LI macro expansion
[external/binutils.git] / gas / testsuite / gas / mips / li-d.s
1 # Source file used to test the li macro.
2
3 foo:
4         # Both words zero
5         .set mips1
6         .set fp=32
7         li.d $2, 0
8         li.d $f0, 0
9         .set mips2
10         li.d $f0, 0
11         .set fp=xx
12         li.d $f0, 0
13         .set mips32r2
14         .set fp=32
15         li.d $f0, 0
16         .set fp=xx
17         li.d $f0, 0
18         .set fp=64
19         li.d $f0, 0
20         .set mips3
21         li.d $f0, 0
22
23         # Only upper 16 bits of 64 non-zero
24         .set mips1
25         .set fp=32
26         li.d $2, 1.0
27         li.d $f0, 1.0
28         .set mips2
29         li.d $f0, 1.0
30         .set fp=xx
31         li.d $f0, 1.0
32         .set mips32r2
33         .set fp=32
34         li.d $f0, 1.0
35         .set fp=xx
36         li.d $f0, 1.0
37         .set fp=64
38         li.d $f0, 1.0
39         .set mips3
40         li.d $f0, 1.0
41
42         # Only lower 16 bits of 64 non-zero
43         .set mips1
44         .set fp=32
45         li.d $2, 2.1e-320
46         li.d $f0, 2.1e-320
47         .set mips2
48         li.d $f0, 2.1e-320
49         .set fp=xx
50         li.d $f0, 2.1e-320
51         .set mips32r2
52         .set fp=32
53         li.d $f0, 2.1e-320
54         .set fp=xx
55         li.d $f0, 2.1e-320
56         .set fp=64
57         li.d $f0, 2.1e-320
58         .set mips3
59         li.d $f0, 2.1e-320
60
61 # Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
62         .align  2
63         .space  8