[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / AArch64 / neon-scalar-mul.s
blob323fad206c4d979002060d0bcdd0d6a2787d4a4f
1 // RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+neon,+fullfp16 -show-encoding < %s | FileCheck %s
3 // Check that the assembler can handle the documented syntax for AArch64
5 //----------------------------------------------------------------------
6 // Scalar Integer Saturating Doubling Multiply Half High
7 //----------------------------------------------------------------------
9 sqdmulh h10, h11, h12
10 sqdmulh s20, s21, s2
12 // CHECK: sqdmulh h10, h11, h12 // encoding: [0x6a,0xb5,0x6c,0x5e]
13 // CHECK: sqdmulh s20, s21, s2 // encoding: [0xb4,0xb6,0xa2,0x5e]
15 //----------------------------------------------------------------------
16 // Scalar Integer Saturating Rounding Doubling Multiply Half High
17 //----------------------------------------------------------------------
19 sqrdmulh h10, h11, h12
20 sqrdmulh s20, s21, s2
22 // CHECK: sqrdmulh h10, h11, h12 // encoding: [0x6a,0xb5,0x6c,0x7e]
23 // CHECK: sqrdmulh s20, s21, s2 // encoding: [0xb4,0xb6,0xa2,0x7e]
25 //----------------------------------------------------------------------
26 // Floating-point Multiply Extended
27 //----------------------------------------------------------------------
29 fmulx h20, h22, h15
30 fmulx s20, s22, s15
31 fmulx d23, d11, d1
33 // CHECK: fmulx h20, h22, h15 // encoding: [0xd4,0x1e,0x4f,0x5e]
34 // CHECK: fmulx s20, s22, s15 // encoding: [0xd4,0xde,0x2f,0x5e]
35 // CHECK: fmulx d23, d11, d1 // encoding: [0x77,0xdd,0x61,0x5e]
37 //----------------------------------------------------------------------
38 // Signed Saturating Doubling Multiply-Add Long
39 //----------------------------------------------------------------------
41 sqdmlal s17, h27, h12
42 sqdmlal d19, s24, s12
44 // CHECK: sqdmlal s17, h27, h12 // encoding: [0x71,0x93,0x6c,0x5e]
45 // CHECK: sqdmlal d19, s24, s12 // encoding: [0x13,0x93,0xac,0x5e]
47 //----------------------------------------------------------------------
48 // Signed Saturating Doubling Multiply-Subtract Long
49 //----------------------------------------------------------------------
51 sqdmlsl s14, h12, h25
52 sqdmlsl d12, s23, s13
54 // CHECK: sqdmlsl s14, h12, h25 // encoding: [0x8e,0xb1,0x79,0x5e]
55 // CHECK: sqdmlsl d12, s23, s13 // encoding: [0xec,0xb2,0xad,0x5e]
57 //----------------------------------------------------------------------
58 // Signed Saturating Doubling Multiply Long
59 //----------------------------------------------------------------------
61 sqdmull s12, h22, h12
62 sqdmull d15, s22, s12
64 // CHECK: sqdmull s12, h22, h12 // encoding: [0xcc,0xd2,0x6c,0x5e]
65 // CHECK: sqdmull d15, s22, s12 // encoding: [0xcf,0xd2,0xac,0x5e]