xref: /aosp_15_r20/external/llvm/test/MC/AArch64/neon-scalar-saturating-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 Shift Lef (Signed)
5*9880d681SAndroid Build Coastguard Worker//------------------------------------------------------------------------------
6*9880d681SAndroid Build Coastguard Worker         sqshl b0, b1, b2
7*9880d681SAndroid Build Coastguard Worker         sqshl h10, h11, h12
8*9880d681SAndroid Build Coastguard Worker         sqshl s20, s21, s2
9*9880d681SAndroid Build Coastguard Worker         sqshl d17, d31, d8
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker// CHECK: sqshl b0, b1, b2        // encoding: [0x20,0x4c,0x22,0x5e]
12*9880d681SAndroid Build Coastguard Worker// CHECK: sqshl h10, h11, h12     // encoding: [0x6a,0x4d,0x6c,0x5e]
13*9880d681SAndroid Build Coastguard Worker// CHECK: sqshl s20, s21, s2      // encoding: [0xb4,0x4e,0xa2,0x5e]
14*9880d681SAndroid Build Coastguard Worker// CHECK: sqshl d17, d31, d8      // encoding: [0xf1,0x4f,0xe8,0x5e]
15*9880d681SAndroid Build Coastguard Worker
16*9880d681SAndroid Build Coastguard Worker//------------------------------------------------------------------------------
17*9880d681SAndroid Build Coastguard Worker// Scalar Integer Saturating Shift Lef (Unsigned)
18*9880d681SAndroid Build Coastguard Worker//------------------------------------------------------------------------------
19*9880d681SAndroid Build Coastguard Worker         uqshl b0, b1, b2
20*9880d681SAndroid Build Coastguard Worker         uqshl h10, h11, h12
21*9880d681SAndroid Build Coastguard Worker         uqshl s20, s21, s2
22*9880d681SAndroid Build Coastguard Worker         uqshl d17, d31, d8
23*9880d681SAndroid Build Coastguard Worker
24*9880d681SAndroid Build Coastguard Worker// CHECK: uqshl b0, b1, b2        // encoding: [0x20,0x4c,0x22,0x7e]
25*9880d681SAndroid Build Coastguard Worker// CHECK: uqshl h10, h11, h12     // encoding: [0x6a,0x4d,0x6c,0x7e]
26*9880d681SAndroid Build Coastguard Worker// CHECK: uqshl s20, s21, s2      // encoding: [0xb4,0x4e,0xa2,0x7e]
27*9880d681SAndroid Build Coastguard Worker// CHECK: uqshl d17, d31, d8      // encoding: [0xf1,0x4f,0xe8,0x7e]
28*9880d681SAndroid Build Coastguard Worker
29*9880d681SAndroid Build Coastguard Worker
30