1// RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+neon,+fullfp16 -show-encoding < %s | FileCheck %s 2 3// Check that the assembler can handle the documented syntax for AArch64 4 5//---------------------------------------------------------------------- 6// Scalar Integer Saturating Doubling Multiply Half High 7//---------------------------------------------------------------------- 8 9 sqdmulh h10, h11, h12 10 sqdmulh s20, s21, s2 11 12// CHECK: sqdmulh h10, h11, h12 // encoding: [0x6a,0xb5,0x6c,0x5e] 13// CHECK: sqdmulh s20, s21, s2 // encoding: [0xb4,0xb6,0xa2,0x5e] 14 15//---------------------------------------------------------------------- 16// Scalar Integer Saturating Rounding Doubling Multiply Half High 17//---------------------------------------------------------------------- 18 19 sqrdmulh h10, h11, h12 20 sqrdmulh s20, s21, s2 21 22// CHECK: sqrdmulh h10, h11, h12 // encoding: [0x6a,0xb5,0x6c,0x7e] 23// CHECK: sqrdmulh s20, s21, s2 // encoding: [0xb4,0xb6,0xa2,0x7e] 24 25//---------------------------------------------------------------------- 26// Floating-point Multiply Extended 27//---------------------------------------------------------------------- 28 29 fmulx h20, h22, h15 30 fmulx s20, s22, s15 31 fmulx d23, d11, d1 32 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] 36 37//---------------------------------------------------------------------- 38// Signed Saturating Doubling Multiply-Add Long 39//---------------------------------------------------------------------- 40 41 sqdmlal s17, h27, h12 42 sqdmlal d19, s24, s12 43 44// CHECK: sqdmlal s17, h27, h12 // encoding: [0x71,0x93,0x6c,0x5e] 45// CHECK: sqdmlal d19, s24, s12 // encoding: [0x13,0x93,0xac,0x5e] 46 47//---------------------------------------------------------------------- 48// Signed Saturating Doubling Multiply-Subtract Long 49//---------------------------------------------------------------------- 50 51 sqdmlsl s14, h12, h25 52 sqdmlsl d12, s23, s13 53 54// CHECK: sqdmlsl s14, h12, h25 // encoding: [0x8e,0xb1,0x79,0x5e] 55// CHECK: sqdmlsl d12, s23, s13 // encoding: [0xec,0xb2,0xad,0x5e] 56 57//---------------------------------------------------------------------- 58// Signed Saturating Doubling Multiply Long 59//---------------------------------------------------------------------- 60 61 sqdmull s12, h22, h12 62 sqdmull d15, s22, s12 63 64// CHECK: sqdmull s12, h22, h12 // encoding: [0xcc,0xd2,0x6c,0x5e] 65// CHECK: sqdmull d15, s22, s12 // encoding: [0xcf,0xd2,0xac,0x5e] 66