summaryrefslogtreecommitdiff
path: root/test/MC/ARM/neon-dup-encoding.s
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-10-29 19:09:08 +0000
committerOwen Anderson <resistor@mac.com>2010-10-29 19:09:08 +0000
commit95d3711a159b1db06d4233e8670dcc92ac1e3b70 (patch)
treeae1013e9271c64beff6899733c219a959ba713de /test/MC/ARM/neon-dup-encoding.s
parentb0cb6b820b958ea7f92d491bbc8df558a6b7464b (diff)
downloadllvm-95d3711a159b1db06d4233e8670dcc92ac1e3b70.tar.gz
llvm-95d3711a159b1db06d4233e8670dcc92ac1e3b70.tar.bz2
llvm-95d3711a159b1db06d4233e8670dcc92ac1e3b70.tar.xz
Convert this test to .s form.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM/neon-dup-encoding.s')
-rw-r--r--test/MC/ARM/neon-dup-encoding.s27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/MC/ARM/neon-dup-encoding.s b/test/MC/ARM/neon-dup-encoding.s
new file mode 100644
index 0000000000..05380cab12
--- /dev/null
+++ b/test/MC/ARM/neon-dup-encoding.s
@@ -0,0 +1,27 @@
+// RUN: llvm-mc -triple arm-unknown-unkown -show-encoding < %s | FileCheck %s
+// XFAIL: *
+
+// CHECK: vdup.8 d16, r0 @ encoding: [0x90,0x0b,0xc0,0xee]
+ vdup.8 d16, r0
+// CHECK: vdup.16 d16, r0 @ encoding: [0xb0,0x0b,0x80,0xee]
+ vdup.16 d16, r0
+// CHECK: vdup.32 d16, r0 @ encoding: [0x90,0x0b,0x80,0xee]
+ vdup.32 d16, r0
+// CHECK: vdup.8 q8, r0 @ encoding: [0x90,0x0b,0xe0,0xee]
+ vdup.8 q8, r0
+// CHECK: vdup.16 q8, r0 @ encoding: [0xb0,0x0b,0xa0,0xee]
+ vdup.16 q8, r0
+// CHECK: vdup.32 q8, r0 @ encoding: [0x90,0x0b,0xa0,0xee]
+ vdup.32 q8, r0
+// CHECK: vdup.8 d16, d16[1] @ encoding: [0x20,0x0c,0xf3,0xf3]
+ vdup.8 d16, d16[1]
+// CHECK: vdup.16 d16, d16[1] @ encoding: [0x20,0x0c,0xf6,0xf3]
+ vdup.16 d16, d16[1]
+// CHECK: vdup.32 d16, d16[1] @ encoding: [0x20,0x0c,0xfc,0xf3]
+ vdup.32 d16, d16[1]
+// CHECK: vdup.8 q8, d16[1] @ encoding: [0x60,0x0c,0xf3,0xf3]
+ vdup.8 q8, d16[1]
+// CHECK: vdup.16 q8, d16[1] @ encoding: [0x60,0x0c,0xf6,0xf3]
+ vdup.16 q8, d16[1]
+// CHECK: vdup.32 q8, d16[1] @ encoding: [0x60,0x0c,0xfc,0xf3]
+ vdup.32 q8, d16[1]