xref: /aosp_15_r20/external/llvm/test/MC/AArch64/neon-scalar-saturating-rounding-shift.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+neon -show-encoding < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker//------------------------------------------------------------------------------
4*9880d681SAndroid Build Coastguard Worker// Scalar Integer Saturating Rounding Shift Lef (Signed)
5*9880d681SAndroid Build Coastguard Worker//------------------------------------------------------------------------------
6*9880d681SAndroid Build Coastguard Worker         sqrshl b0, b1, b2
7*9880d681SAndroid Build Coastguard Worker         sqrshl h10, h11, h12
8*9880d681SAndroid Build Coastguard Worker         sqrshl s20, s21, s2
9*9880d681SAndroid Build Coastguard Worker         sqrshl d17, d31, d8
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker// CHECK: sqrshl b0, b1, b2        // encoding: [0x20,0x5c,0x22,0x5e]
12*9880d681SAndroid Build Coastguard Worker// CHECK: sqrshl h10, h11, h12     // encoding: [0x6a,0x5d,0x6c,0x5e]
13*9880d681SAndroid Build Coastguard Worker// CHECK: sqrshl s20, s21, s2      // encoding: [0xb4,0x5e,0xa2,0x5e]
14*9880d681SAndroid Build Coastguard Worker// CHECK: sqrshl d17, d31, d8      // encoding: [0xf1,0x5f,0xe8,0x5e]
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard Worker//------------------------------------------------------------------------------
17*9880d681SAndroid Build Coastguard Worker// Scalar Integer Saturating Rounding Shift Lef (Unsigned)
18*9880d681SAndroid Build Coastguard Worker//------------------------------------------------------------------------------
19*9880d681SAndroid Build Coastguard Worker         uqrshl b0, b1, b2
20*9880d681SAndroid Build Coastguard Worker         uqrshl h10, h11, h12
21*9880d681SAndroid Build Coastguard Worker         uqrshl s20, s21, s2
22*9880d681SAndroid Build Coastguard Worker         uqrshl d17, d31, d8
23*9880d681SAndroid Build Coastguard Worker
24*9880d681SAndroid Build Coastguard Worker// CHECK: uqrshl b0, b1, b2        // encoding: [0x20,0x5c,0x22,0x7e]
25*9880d681SAndroid Build Coastguard Worker// CHECK: uqrshl h10, h11, h12     // encoding: [0x6a,0x5d,0x6c,0x7e]
26*9880d681SAndroid Build Coastguard Worker// CHECK: uqrshl s20, s21, s2      // encoding: [0xb4,0x5e,0xa2,0x7e]
27*9880d681SAndroid Build Coastguard Worker// CHECK: uqrshl d17, d31, d8      // encoding: [0xf1,0x5f,0xe8,0x7e]
28*9880d681SAndroid Build Coastguard Worker
29