This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 2/2] Add a gas regression test case for aarch64 'fmov' argument checking


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]