AArch64/ARM64: run AArch64 NEON MC tests through ARM64 too.
[oota-llvm.git] / test / MC / AArch64 / neon-scalar-saturating-shift.s
1 // RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+neon -show-encoding < %s | FileCheck %s
2 // RUN: llvm-mc -triple arm64-none-linux-gnu -mattr=+neon -show-encoding < %s | FileCheck %s
3
4 //------------------------------------------------------------------------------
5 // Scalar Integer Saturating Shift Lef (Signed)
6 //------------------------------------------------------------------------------
7          sqshl b0, b1, b2
8          sqshl h10, h11, h12
9          sqshl s20, s21, s2
10          sqshl d17, d31, d8
11
12 // CHECK: sqshl b0, b1, b2        // encoding: [0x20,0x4c,0x22,0x5e]
13 // CHECK: sqshl h10, h11, h12     // encoding: [0x6a,0x4d,0x6c,0x5e]
14 // CHECK: sqshl s20, s21, s2      // encoding: [0xb4,0x4e,0xa2,0x5e]
15 // CHECK: sqshl d17, d31, d8      // encoding: [0xf1,0x4f,0xe8,0x5e]
16
17 //------------------------------------------------------------------------------
18 // Scalar Integer Saturating Shift Lef (Unsigned)
19 //------------------------------------------------------------------------------
20          uqshl b0, b1, b2
21          uqshl h10, h11, h12
22          uqshl s20, s21, s2
23          uqshl d17, d31, d8
24
25 // CHECK: uqshl b0, b1, b2        // encoding: [0x20,0x4c,0x22,0x7e]
26 // CHECK: uqshl h10, h11, h12     // encoding: [0x6a,0x4d,0x6c,0x7e]
27 // CHECK: uqshl s20, s21, s2      // encoding: [0xb4,0x4e,0xa2,0x7e]
28 // CHECK: uqshl d17, d31, d8      // encoding: [0xf1,0x4f,0xe8,0x7e]
29
30