diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2017-01-18 17:08:34 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2017-01-18 17:08:34 +0000 |
commit | c13a63b04677906020ee72a28d5869d979e36a6f (patch) | |
tree | f7226c7bf6fab48fe431804570effeead9956d01 /gas/testsuite | |
parent | d1dff2266d29c4739aee6f68c8c587d44b03a717 (diff) | |
download | gdb-c13a63b04677906020ee72a28d5869d979e36a6f.zip gdb-c13a63b04677906020ee72a28d5869d979e36a6f.tar.gz gdb-c13a63b04677906020ee72a28d5869d979e36a6f.tar.bz2 |
[ARM] Fix the decoding of indexed element VCMLA instruction
Bit 24 of the indexed element vcmla decode mask was incorrectly
left unset. This could cause incorrect disassembly of some
currently undefined instructions as vcmla.
Rotatation immediates were not printed correctly in the disassembly
(could print 170 and 280 instead of 180 and 270).
opcodes/
* arm-dis.c (coprocessor_opcodes): Fix vcmla mask and disassembly.
gas/
* testsuite/gas/arm/armv8_3-a-simd.s: Add vcmla tests.
* testsuite/gas/arm/armv8_3-a-simd.d: Update.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/arm/armv8_3-a-simd.d | 12 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/armv8_3-a-simd.s | 14 |
2 files changed, 26 insertions, 0 deletions
diff --git a/gas/testsuite/gas/arm/armv8_3-a-simd.d b/gas/testsuite/gas/arm/armv8_3-a-simd.d index c420cff..356b5a6 100644 --- a/gas/testsuite/gas/arm/armv8_3-a-simd.d +++ b/gas/testsuite/gas/arm/armv8_3-a-simd.d @@ -25,6 +25,12 @@ Disassembly of section .text: +[0-9a-f]+: fe142863 vcmla.f16 q1, q2, d3\[1\], #90 +[0-9a-f]+: fed658a7 vcmla.f32 d21, d22, d23\[0\], #90 +[0-9a-f]+: fe942867 vcmla.f32 q1, q2, d23\[0\], #90 + +[0-9a-f]+: fe042863 vcmla.f16 q1, q2, d3\[1\], #0 + +[0-9a-f]+: fe242863 vcmla.f16 q1, q2, d3\[1\], #180 + +[0-9a-f]+: fe342863 vcmla.f16 q1, q2, d3\[1\], #270 + +[0-9a-f]+: fe842843 vcmla.f32 q1, q2, d3\[0\], #0 + +[0-9a-f]+: fea42843 vcmla.f32 q1, q2, d3\[0\], #180 + +[0-9a-f]+: feb42843 vcmla.f32 q1, q2, d3\[0\], #270 [0-9a-f]+ <.*>: +[0-9a-f]+: fc94 2846 vcadd.f32 q1, q2, q3, #90 @@ -45,3 +51,9 @@ Disassembly of section .text: +[0-9a-f]+: fe14 2863 vcmla.f16 q1, q2, d3\[1\], #90 +[0-9a-f]+: fed6 58a7 vcmla.f32 d21, d22, d23\[0\], #90 +[0-9a-f]+: fe94 2867 vcmla.f32 q1, q2, d23\[0\], #90 + +[0-9a-f]+: fe04 2863 vcmla.f16 q1, q2, d3\[1\], #0 + +[0-9a-f]+: fe24 2863 vcmla.f16 q1, q2, d3\[1\], #180 + +[0-9a-f]+: fe34 2863 vcmla.f16 q1, q2, d3\[1\], #270 + +[0-9a-f]+: fe84 2843 vcmla.f32 q1, q2, d3\[0\], #0 + +[0-9a-f]+: fea4 2843 vcmla.f32 q1, q2, d3\[0\], #180 + +[0-9a-f]+: feb4 2843 vcmla.f32 q1, q2, d3\[0\], #270 diff --git a/gas/testsuite/gas/arm/armv8_3-a-simd.s b/gas/testsuite/gas/arm/armv8_3-a-simd.s index fde2f76..4ff5817 100644 --- a/gas/testsuite/gas/arm/armv8_3-a-simd.s +++ b/gas/testsuite/gas/arm/armv8_3-a-simd.s @@ -24,6 +24,13 @@ A1: vcmla.f32 d21,d22,d23[0],#90 vcmla.f32 q1,q2,d23[0],#90 + vcmla.f16 q1,q2,d3[1],#0 + vcmla.f16 q1,q2,d3[1],#180 + vcmla.f16 q1,q2,d3[1],#270 + vcmla.f32 q1,q2,d3[0],#0 + vcmla.f32 q1,q2,d3[0],#180 + vcmla.f32 q1,q2,d3[0],#270 + T1: .thumb @@ -47,3 +54,10 @@ T1: vcmla.f16 q1,q2,d3[1],#90 vcmla.f32 d21,d22,d23[0],#90 vcmla.f32 q1,q2,d23[0],#90 + + vcmla.f16 q1,q2,d3[1],#0 + vcmla.f16 q1,q2,d3[1],#180 + vcmla.f16 q1,q2,d3[1],#270 + vcmla.f32 q1,q2,d3[0],#0 + vcmla.f32 q1,q2,d3[0],#180 + vcmla.f32 q1,q2,d3[0],#270 |