[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AArch64 / neon-saturating-shift.s
blob9ae393a040b6bc4bcb72fd608ca3b18bba3cbe25
1 // RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+neon -show-encoding < %s | FileCheck %s
3 // Check that the assembler can handle the documented syntax for AArch64
6 //------------------------------------------------------------------------------
7 // Vector Integer Saturating Shift Lef (Signed)
8 //------------------------------------------------------------------------------
9 sqshl v0.8b, v1.8b, v2.8b
10 sqshl v0.16b, v1.16b, v2.16b
11 sqshl v0.4h, v1.4h, v2.4h
12 sqshl v0.8h, v1.8h, v2.8h
13 sqshl v0.2s, v1.2s, v2.2s
14 sqshl v0.4s, v1.4s, v2.4s
15 sqshl v0.2d, v1.2d, v2.2d
17 // CHECK: sqshl v0.8b, v1.8b, v2.8b // encoding: [0x20,0x4c,0x22,0x0e]
18 // CHECK: sqshl v0.16b, v1.16b, v2.16b // encoding: [0x20,0x4c,0x22,0x4e]
19 // CHECK: sqshl v0.4h, v1.4h, v2.4h // encoding: [0x20,0x4c,0x62,0x0e]
20 // CHECK: sqshl v0.8h, v1.8h, v2.8h // encoding: [0x20,0x4c,0x62,0x4e]
21 // CHECK: sqshl v0.2s, v1.2s, v2.2s // encoding: [0x20,0x4c,0xa2,0x0e]
22 // CHECK: sqshl v0.4s, v1.4s, v2.4s // encoding: [0x20,0x4c,0xa2,0x4e]
23 // CHECK: sqshl v0.2d, v1.2d, v2.2d // encoding: [0x20,0x4c,0xe2,0x4e]
25 //------------------------------------------------------------------------------
26 // Vector Integer Saturating Shift Lef (Unsigned)
27 //------------------------------------------------------------------------------
28 uqshl v0.8b, v1.8b, v2.8b
29 uqshl v0.16b, v1.16b, v2.16b
30 uqshl v0.4h, v1.4h, v2.4h
31 uqshl v0.8h, v1.8h, v2.8h
32 uqshl v0.2s, v1.2s, v2.2s
33 uqshl v0.4s, v1.4s, v2.4s
34 uqshl v0.2d, v1.2d, v2.2d
36 // CHECK: uqshl v0.8b, v1.8b, v2.8b // encoding: [0x20,0x4c,0x22,0x2e]
37 // CHECK: uqshl v0.16b, v1.16b, v2.16b // encoding: [0x20,0x4c,0x22,0x6e]
38 // CHECK: uqshl v0.4h, v1.4h, v2.4h // encoding: [0x20,0x4c,0x62,0x2e]
39 // CHECK: uqshl v0.8h, v1.8h, v2.8h // encoding: [0x20,0x4c,0x62,0x6e]
40 // CHECK: uqshl v0.2s, v1.2s, v2.2s // encoding: [0x20,0x4c,0xa2,0x2e]
41 // CHECK: uqshl v0.4s, v1.4s, v2.4s // encoding: [0x20,0x4c,0xa2,0x6e]
42 // CHECK: uqshl v0.2d, v1.2d, v2.2d // encoding: [0x20,0x4c,0xe2,0x6e]