[ARM64] Port basic-a64-diagnostics.s over to ARM64
[oota-llvm.git] / test / MC / AArch64 / neon-scalar-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 Shift Lef (Signed)
6 //------------------------------------------------------------------------------
7          sshl d17, d31, d8
8
9 // CHECK: sshl d17, d31, d8      // encoding: [0xf1,0x47,0xe8,0x5e]
10
11 //------------------------------------------------------------------------------
12 // Scalar Integer Shift Lef (Unsigned)
13 //------------------------------------------------------------------------------
14          ushl d17, d31, d8
15
16 // CHECK: ushl d17, d31, d8      // encoding: [0xf1,0x47,0xe8,0x7e]
17