This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 2/2] Add a gas regression test case for aarch64 'fmov' argument checking
- From: Ralph Campbell <ralph dot campbell at broadcom dot com>
- To: <binutils at sourceware dot org>
- Date: Mon, 19 Jan 2015 10:43:17 -0800
- Subject: [PATCH 2/2] Add a gas regression test case for aarch64 'fmov' argument checking
- Authentication-results: sourceware.org; auth=none
- References: <20150119184311 dot 585 dot 69737 dot stgit at lc-sj1-5012 dot sj dot broadcom dot com>
This patch adds 4 test cases for regression testing 'fmov' argument
checking that previously did not generate error messages.
---
gas/testsuite/gas/aarch64/diagnostic.l | 20 ++++++++++++++++++++
gas/testsuite/gas/aarch64/diagnostic.s | 6 ++++++
2 files changed, 26 insertions(+)
diff --git a/gas/testsuite/gas/aarch64/diagnostic.l b/gas/testsuite/gas/aarch64/diagnostic.l
index 61ce5d2..82f67bd 100644
--- a/gas/testsuite/gas/aarch64/diagnostic.l
+++ b/gas/testsuite/gas/aarch64/diagnostic.l
@@ -114,3 +114,23 @@
[^:]*:123: Warning: unpredictable transfer with writeback -- `str x1,\[x1\],#8'
[^:]*:124: Warning: unpredictable transfer with writeback -- `stp x0,x1,\[x0,#16\]!'
[^:]*:125: Warning: unpredictable transfer with writeback -- `ldp x0,x1,\[x1\],#16'
+[^:]*:128: Error: operand mismatch -- `fmov x0,s0'
+[^:]*:128: Info: did you mean this\?
+[^:]*:128: Info: fmov w0,s0
+[^:]*:128: Info: other valid variant\(s\):
+[^:]*:128: Info: fmov x0,d0
+[^:]*:129: Error: operand mismatch -- `fmov w1,d0'
+[^:]*:129: Info: did you mean this\?
+[^:]*:129: Info: fmov w1,s0
+[^:]*:129: Info: other valid variant\(s\):
+[^:]*:129: Info: fmov x1,d0
+[^:]*:130: Error: operand mismatch -- `fmov s0,xzr'
+[^:]*:130: Info: did you mean this\?
+[^:]*:130: Info: fmov s0,wzr
+[^:]*:130: Info: other valid variant\(s\):
+[^:]*:130: Info: fmov d0,xzr
+[^:]*:131: Error: operand mismatch -- `fmov d0,wzr'
+[^:]*:131: Info: did you mean this\?
+[^:]*:131: Info: fmov s0,wzr
+[^:]*:131: Info: other valid variant\(s\):
+[^:]*:131: Info: fmov d0,xzr
diff --git a/gas/testsuite/gas/aarch64/diagnostic.s b/gas/testsuite/gas/aarch64/diagnostic.s
index 88001da..560321c 100644
--- a/gas/testsuite/gas/aarch64/diagnostic.s
+++ b/gas/testsuite/gas/aarch64/diagnostic.s
@@ -123,3 +123,9 @@
str x1, [x1], #8
stp x0, x1, [x0, #16]!
ldp x0, x1, [x1], #16
+
+ # test mismatched fmov arguments
+ fmov x0, s0
+ fmov w1, d0
+ fmov s0, xzr
+ fmov d0, wzr