aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/aarch64/fp-const0-parse.d37
-rw-r--r--gas/testsuite/gas/aarch64/fp-const0-parse.s60
3 files changed, 102 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 345d396..86fdf4f 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-02-27 Jiong Wang <jiong.wang@arm.com>
+
+ * gas/aarch64/fp-const0-parsing.s: New test.
+ * gas/aarch64/fp-const0-parsing.d: Likewise.
+
2014-02-27 Yufeng Zhang <yufeng.zhang@arm.com>
* gas/aarch64/ldst-reg-reg-offset.s: Add tests.
diff --git a/gas/testsuite/gas/aarch64/fp-const0-parse.d b/gas/testsuite/gas/aarch64/fp-const0-parse.d
new file mode 100644
index 0000000..172f35c
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/fp-const0-parse.d
@@ -0,0 +1,37 @@
+#objdump: -dr
+
+.*: file format .*
+
+Disassembly of section \.text:
+
+0000000000000000 <.*>:
+ 0: 5ea0dbc0 fcmeq s0, s30, #0.0
+ 4: 7ea0cba1 fcmge s1, s29, #0.0
+ 8: 5ea0cb82 fcmgt s2, s28, #0.0
+ c: 7ea0db63 fcmle s3, s27, #0.0
+ 10: 5ea0eb44 fcmlt s4, s26, #0.0
+ 14: 5ee0dbc0 fcmeq d0, d30, #0.0
+ 18: 7ee0cba1 fcmge d1, d29, #0.0
+ 1c: 5ee0cb82 fcmgt d2, d28, #0.0
+ 20: 7ee0db63 fcmle d3, d27, #0.0
+ 24: 5ee0eb44 fcmlt d4, d26, #0.0
+ 28: 0ea0dbc0 fcmeq v0.2s, v30.2s, #0.0
+ 2c: 6ea0cba1 fcmge v1.4s, v29.4s, #0.0
+ 30: 4ee0cb82 fcmgt v2.2d, v28.2d, #0.0
+ 34: 2ea0db63 fcmle v3.2s, v27.2s, #0.0
+ 38: 4ea0eb44 fcmlt v4.4s, v26.4s, #0.0
+ 3c: 5ea0dbc0 fcmeq s0, s30, #0.0
+ 40: 7ea0cba1 fcmge s1, s29, #0.0
+ 44: 5ea0cb82 fcmgt s2, s28, #0.0
+ 48: 7ea0db63 fcmle s3, s27, #0.0
+ 4c: 5ea0eb44 fcmlt s4, s26, #0.0
+ 50: 5ee0dbc0 fcmeq d0, d30, #0.0
+ 54: 7ee0cba1 fcmge d1, d29, #0.0
+ 58: 5ee0cb82 fcmgt d2, d28, #0.0
+ 5c: 7ee0db63 fcmle d3, d27, #0.0
+ 60: 5ee0eb44 fcmlt d4, d26, #0.0
+ 64: 0ea0dbc0 fcmeq v0.2s, v30.2s, #0.0
+ 68: 6ea0cba1 fcmge v1.4s, v29.4s, #0.0
+ 6c: 4ee0cb82 fcmgt v2.2d, v28.2d, #0.0
+ 70: 2ea0db63 fcmle v3.2s, v27.2s, #0.0
+ 74: 4ea0eb44 fcmlt v4.4s, v26.4s, #0.0
diff --git a/gas/testsuite/gas/aarch64/fp-const0-parse.s b/gas/testsuite/gas/aarch64/fp-const0-parse.s
new file mode 100644
index 0000000..b2d4d57
--- /dev/null
+++ b/gas/testsuite/gas/aarch64/fp-const0-parse.s
@@ -0,0 +1,60 @@
+/* fp-const0-parse.s Test file For AArch64 float constant 0 parse.
+
+ Copyright 2014 Free Software Foundation, Inc.
+ Contributed by ARM Ltd.
+
+ This file is part of GAS.
+
+ GAS is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the license, or
+ (at your option) any later version.
+
+ GAS is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; see the file COPYING3. If not,
+ see <http://www.gnu.org/licenses/>. */
+
+
+ .text
+ // Check #0 with scalar register.
+ fcmeq s0, s30, #0
+ fcmge s1, s29, #0
+ fcmgt s2, s28, #0
+ fcmle s3, s27, #0
+ fcmlt s4, s26, #0
+ fcmeq d0, d30, #0
+ fcmge d1, d29, #0
+ fcmgt d2, d28, #0
+ fcmle d3, d27, #0
+ fcmlt d4, d26, #0
+
+ // Check #0 with vector register.
+ fcmeq v0.2s, v30.2s, #0
+ fcmge v1.4s, v29.4s, #0
+ fcmgt v2.2d, v28.2d, #0
+ fcmle v3.2s, v27.2s, #0
+ fcmlt v4.4s, v26.4s, #0
+
+ // Check #0.0 with scalar register.
+ fcmeq s0, s30, #0.0
+ fcmge s1, s29, #0.0
+ fcmgt s2, s28, #0.0
+ fcmle s3, s27, #0.0
+ fcmlt s4, s26, #0.0
+ fcmeq d0, d30, #0.0
+ fcmge d1, d29, #0.0
+ fcmgt d2, d28, #0.0
+ fcmle d3, d27, #0.0
+ fcmlt d4, d26, #0.0
+
+ // Check #0.0 with vector register.
+ fcmeq v0.2s, v30.2s, #0.0
+ fcmge v1.4s, v29.4s, #0.0
+ fcmgt v2.2d, v28.2d, #0.0
+ fcmle v3.2s, v27.2s, #0.0
+ fcmlt v4.4s, v26.4s, #0.0