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 //----------------------------------------------------------------------
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
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 //----------------------------------------------------------------------
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 //----------------------------------------------------------------------
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 //----------------------------------------------------------------------
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 //----------------------------------------------------------------------
64 // CHECK
: sqdmull s12
, h22
, h12
// encoding
: [0xcc,0xd2,0x6c,0x5e]
65 // CHECK
: sqdmull d15
, s22
, s12
// encoding
: [0xcf,0xd2,0xac,0x5e]