1// RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+neon -show-encoding < %s | FileCheck %s 2 3// Check that the assembler can handle the documented syntax for AArch64 4 5//---------------------------------------------------------------------- 6// Scalar Signed Saturating Extract Unsigned Narrow 7//---------------------------------------------------------------------- 8 9 sqxtun b19, h14 10 sqxtun h21, s15 11 sqxtun s20, d12 12 13// CHECK: sqxtun b19, h14 // encoding: [0xd3,0x29,0x21,0x7e] 14// CHECK: sqxtun h21, s15 // encoding: [0xf5,0x29,0x61,0x7e] 15// CHECK: sqxtun s20, d12 // encoding: [0x94,0x29,0xa1,0x7e] 16 17//---------------------------------------------------------------------- 18// Scalar Signed Saturating Extract Signed Narrow 19//---------------------------------------------------------------------- 20 21 sqxtn b18, h18 22 sqxtn h20, s17 23 sqxtn s19, d14 24 25// CHECK: sqxtn b18, h18 // encoding: [0x52,0x4a,0x21,0x5e] 26// CHECK: sqxtn h20, s17 // encoding: [0x34,0x4a,0x61,0x5e] 27// CHECK: sqxtn s19, d14 // encoding: [0xd3,0x49,0xa1,0x5e] 28 29 30//---------------------------------------------------------------------- 31// Scalar Unsigned Saturating Extract Narrow 32//---------------------------------------------------------------------- 33 34 uqxtn b18, h18 35 uqxtn h20, s17 36 uqxtn s19, d14 37 38// CHECK: uqxtn b18, h18 // encoding: [0x52,0x4a,0x21,0x7e] 39// CHECK: uqxtn h20, s17 // encoding: [0x34,0x4a,0x61,0x7e] 40// CHECK: uqxtn s19, d14 // encoding: [0xd3,0x49,0xa1,0x7e] 41