aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/aarch64/advsimd-fp16.d16
-rw-r--r--gas/testsuite/gas/aarch64/advsimd-fp16.s15
3 files changed, 37 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 6e27869..4a44439 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,6 +1,12 @@
2015-12-14 Matthew Wahab <matthew.wahab@arm.com>
* gas/aarch64/advsimd-fp16.d: Update expected output.
+ * gas/aarch64/advsimd-fp16.s: Add tests for scalar indexed element
+ instructions.
+
+2015-12-14 Matthew Wahab <matthew.wahab@arm.com>
+
+ * gas/aarch64/advsimd-fp16.d: Update expected output.
* gas/aarch64/advsimd-fp16.s: Add tests for vector indexed element
instructions.
diff --git a/gas/testsuite/gas/aarch64/advsimd-fp16.d b/gas/testsuite/gas/aarch64/advsimd-fp16.d
index 3fd4dcb..dacd51b 100644
--- a/gas/testsuite/gas/aarch64/advsimd-fp16.d
+++ b/gas/testsuite/gas/aarch64/advsimd-fp16.d
@@ -456,3 +456,19 @@ Disassembly of section \.text:
[0-9a-f]+: 2f039041 fmulx v1.4h, v2.4h, v3.h\[0\]
[0-9a-f]+: 6f009000 fmulx v0.8h, v0.8h, v0.h\[0\]
[0-9a-f]+: 6f039041 fmulx v1.8h, v2.8h, v3.h\[0\]
+ [0-9a-f]+: 5fc31841 fmla d1, d2, v3.d\[1\]
+ [0-9a-f]+: 5fa31041 fmla s1, s2, v3.s\[1\]
+ [0-9a-f]+: 5f131041 fmla h1, h2, v3.h\[1\]
+ [0-9a-f]+: 5f001000 fmla h0, h0, v0.h\[0\]
+ [0-9a-f]+: 5fc35841 fmls d1, d2, v3.d\[1\]
+ [0-9a-f]+: 5fa35041 fmls s1, s2, v3.s\[1\]
+ [0-9a-f]+: 5f135041 fmls h1, h2, v3.h\[1\]
+ [0-9a-f]+: 5f005000 fmls h0, h0, v0.h\[0\]
+ [0-9a-f]+: 5fc39841 fmul d1, d2, v3.d\[1\]
+ [0-9a-f]+: 5fa39041 fmul s1, s2, v3.s\[1\]
+ [0-9a-f]+: 5f139041 fmul h1, h2, v3.h\[1\]
+ [0-9a-f]+: 5f009000 fmul h0, h0, v0.h\[0\]
+ [0-9a-f]+: 7fc39841 fmulx d1, d2, v3.d\[1\]
+ [0-9a-f]+: 7fa39041 fmulx s1, s2, v3.s\[1\]
+ [0-9a-f]+: 7f139041 fmulx h1, h2, v3.h\[1\]
+ [0-9a-f]+: 7f009000 fmulx h0, h0, v0.h\[0\]
diff --git a/gas/testsuite/gas/aarch64/advsimd-fp16.s b/gas/testsuite/gas/aarch64/advsimd-fp16.s
index ebdb97a..10f9067 100644
--- a/gas/testsuite/gas/aarch64/advsimd-fp16.s
+++ b/gas/testsuite/gas/aarch64/advsimd-fp16.s
@@ -172,3 +172,18 @@
indexed_elem fmul
indexed_elem fmulx
+
+ /* Scalar indexed element. */
+
+ .macro sindexed_elem, op
+ \op d1, d2, v3.d[1]
+ \op s1, s2, v3.s[1]
+ \op h1, h2, v3.h[1]
+ \op h0, h0, v0.h[0]
+ .endm
+
+ sindexed_elem fmla
+ sindexed_elem fmls
+
+ sindexed_elem fmul
+ sindexed_elem fmulx