From d9767021f83879429e930b068d1d6aef22285b33 Mon Sep 17 00:00:00 2001 From: Hao Liu Date: Thu, 15 Aug 2013 08:26:11 +0000 Subject: Clang and AArch64 backend patches to support shll/shl and vmovl instructions and ACLE functions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188451 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/AArch64/neon-shift.s | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test/MC/AArch64/neon-shift.s') diff --git a/test/MC/AArch64/neon-shift.s b/test/MC/AArch64/neon-shift.s index be1799e..23d687c 100644 --- a/test/MC/AArch64/neon-shift.s +++ b/test/MC/AArch64/neon-shift.s @@ -55,3 +55,21 @@ // CHECK: ushl d17, d31, d8 // encoding: [0xf1,0x47,0xe8,0x7e] +//------------------------------------------------------------------------------ +// Vector Integer Shift Left by Immediate +//------------------------------------------------------------------------------ + shl v0.8b, v1.8b, #3 + shl v0.4h, v1.4h, #3 + shl v0.2s, v1.2s, #3 + shl v0.16b, v1.16b, #3 + shl v0.8h, v1.8h, #3 + shl v0.4s, v1.4s, #3 + shl v0.2d, v1.2d, #3 + +// CHECK: shl v0.8b, v1.8b, #3 // encoding: [0x20,0x54,0x0b,0x0f] +// CHECK: shl v0.4h, v1.4h, #3 // encoding: [0x20,0x54,0x13,0x0f] +// CHECK: shl v0.2s, v1.2s, #3 // encoding: [0x20,0x54,0x23,0x0f] +// CHECK: shl v0.16b, v1.16b, #3 // encoding: [0x20,0x54,0x0b,0x4f] +// CHECK: shl v0.8h, v1.8h, #3 // encoding: [0x20,0x54,0x13,0x4f] +// CHECK: shl v0.4s, v1.4s, #3 // encoding: [0x20,0x54,0x23,0x4f] +// CHECK: shl v0.2d, v1.2d, #3 // encoding: [0x20,0x54,0x43,0x4f] -- cgit v1.1