Commit | Line | Data |
---|---|---|
f17c8bfc YZ |
1 | /* fp-const0-parse.s Test file For AArch64 float constant 0 parse. |
2 | ||
4b95cf5c | 3 | Copyright (C) 2014 Free Software Foundation, Inc. |
f17c8bfc YZ |
4 | Contributed by ARM Ltd. |
5 | ||
6 | This file is part of GAS. | |
7 | ||
8 | GAS is free software; you can redistribute it and/or modify | |
9 | it under the terms of the GNU General Public License as published by | |
10 | the Free Software Foundation; either version 3 of the license, or | |
11 | (at your option) any later version. | |
12 | ||
13 | GAS is distributed in the hope that it will be useful, | |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | GNU General Public License for more details. | |
17 | ||
18 | You should have received a copy of the GNU General Public License | |
19 | along with this program; see the file COPYING3. If not, | |
20 | see <http://www.gnu.org/licenses/>. */ | |
21 | ||
22 | ||
23 | .text | |
24 | // Check #0 with scalar register. | |
25 | fcmeq s0, s30, #0 | |
26 | fcmge s1, s29, #0 | |
27 | fcmgt s2, s28, #0 | |
28 | fcmle s3, s27, #0 | |
29 | fcmlt s4, s26, #0 | |
30 | fcmeq d0, d30, #0 | |
31 | fcmge d1, d29, #0 | |
32 | fcmgt d2, d28, #0 | |
33 | fcmle d3, d27, #0 | |
34 | fcmlt d4, d26, #0 | |
35 | ||
36 | // Check #0 with vector register. | |
37 | fcmeq v0.2s, v30.2s, #0 | |
38 | fcmge v1.4s, v29.4s, #0 | |
39 | fcmgt v2.2d, v28.2d, #0 | |
40 | fcmle v3.2s, v27.2s, #0 | |
41 | fcmlt v4.4s, v26.4s, #0 | |
42 | ||
43 | // Check #0.0 with scalar register. | |
44 | fcmeq s0, s30, #0.0 | |
45 | fcmge s1, s29, #0.0 | |
46 | fcmgt s2, s28, #0.0 | |
47 | fcmle s3, s27, #0.0 | |
48 | fcmlt s4, s26, #0.0 | |
49 | fcmeq d0, d30, #0.0 | |
50 | fcmge d1, d29, #0.0 | |
51 | fcmgt d2, d28, #0.0 | |
52 | fcmle d3, d27, #0.0 | |
53 | fcmlt d4, d26, #0.0 | |
54 | ||
55 | // Check #0.0 with vector register. | |
56 | fcmeq v0.2s, v30.2s, #0.0 | |
57 | fcmge v1.4s, v29.4s, #0.0 | |
58 | fcmgt v2.2d, v28.2d, #0.0 | |
59 | fcmle v3.2s, v27.2s, #0.0 | |
60 | fcmlt v4.4s, v26.4s, #0.0 |