aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-12-01 04:33:38 +0000
committerBill Wendling <isanbard@gmail.com>2013-12-01 04:33:38 +0000
commit681fbd79b0308515e39b2581ecf66c545acb6215 (patch)
tree154d6a2448144942492b8c860fcbe5f5628e9b6b /test
parent2d3cdb0f41422b1aaf2451aabfef752577bd89f1 (diff)
downloadclang-681fbd79b0308515e39b2581ecf66c545acb6215.tar.gz
Merging r195937:
------------------------------------------------------------------------ r195937 | jiangning | 2013-11-28 17:29:57 -0800 (Thu, 28 Nov 2013) | 2 lines Add missing intrinsic function vcombine_f64 for AArch64 NEON. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_34@196017 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/aarch64-neon-vcombine.c91
1 files changed, 91 insertions, 0 deletions
diff --git a/test/CodeGen/aarch64-neon-vcombine.c b/test/CodeGen/aarch64-neon-vcombine.c
new file mode 100644
index 0000000000..3e170c8c4c
--- /dev/null
+++ b/test/CodeGen/aarch64-neon-vcombine.c
@@ -0,0 +1,91 @@
+// REQUIRES: aarch64-registered-target
+// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +neon \
+// RUN: -S -O3 -o - %s | FileCheck %s
+
+// Test new aarch64 intrinsics and types
+
+#include <arm_neon.h>
+
+int8x16_t test_vcombine_s8(int8x8_t low, int8x8_t high) {
+ // CHECK-LABEL: test_vcombine_s8:
+ return vcombine_s8(low, high);
+ // CHECK: ins v0.d[1], v1.d[0]
+}
+
+int16x8_t test_vcombine_s16(int16x4_t low, int16x4_t high) {
+ // CHECK-LABEL: test_vcombine_s16:
+ return vcombine_s16(low, high);
+ // CHECK: ins v0.d[1], v1.d[0]
+}
+
+int32x4_t test_vcombine_s32(int32x2_t low, int32x2_t high) {
+ // CHECK-LABEL: test_vcombine_s32:
+ return vcombine_s32(low, high);
+ // CHECK: ins v0.d[1], v1.d[0]
+}
+
+int64x2_t test_vcombine_s64(int64x1_t low, int64x1_t high) {
+ // CHECK-LABEL: test_vcombine_s64:
+ return vcombine_s64(low, high);
+ // CHECK: ins v0.d[1], v1.d[0]
+}
+
+uint8x16_t test_vcombine_u8(uint8x8_t low, uint8x8_t high) {
+ // CHECK-LABEL: test_vcombine_u8:
+ return vcombine_u8(low, high);
+ // CHECK: ins v0.d[1], v1.d[0]
+}
+
+uint16x8_t test_vcombine_u16(uint16x4_t low, uint16x4_t high) {
+ // CHECK-LABEL: test_vcombine_u16:
+ return vcombine_u16(low, high);
+ // CHECK: ins v0.d[1], v1.d[0]
+}
+
+uint32x4_t test_vcombine_u32(uint32x2_t low, uint32x2_t high) {
+ // CHECK-LABEL: test_vcombine_u32:
+ return vcombine_u32(low, high);
+ // CHECK: ins v0.d[1], v1.d[0]
+}
+
+uint64x2_t test_vcombine_u64(uint64x1_t low, uint64x1_t high) {
+ // CHECK-LABEL: test_vcombine_u64:
+ return vcombine_u64(low, high);
+ // CHECK: ins v0.d[1], v1.d[0]
+}
+
+poly64x2_t test_vcombine_p64(poly64x1_t low, poly64x1_t high) {
+ // CHECK-LABEL: test_vcombine_p64:
+ return vcombine_p64(low, high);
+ // CHECK: ins v0.d[1], v1.d[0]
+}
+
+float16x8_t test_vcombine_f16(float16x4_t low, float16x4_t high) {
+ // CHECK-LABEL: test_vcombine_f16:
+ return vcombine_f16(low, high);
+ // CHECK: ins v0.d[1], v1.d[0]
+}
+
+float32x4_t test_vcombine_f32(float32x2_t low, float32x2_t high) {
+ // CHECK-LABEL: test_vcombine_f32:
+ return vcombine_f32(low, high);
+ // CHECK: ins v0.d[1], v1.d[0]
+}
+
+poly8x16_t test_vcombine_p8(poly8x8_t low, poly8x8_t high) {
+ // CHECK-LABEL: test_vcombine_p8:
+ return vcombine_p8(low, high);
+ // CHECK: ins v0.d[1], v1.d[0]
+}
+
+poly16x8_t test_vcombine_p16(poly16x4_t low, poly16x4_t high) {
+ // CHECK-LABEL: test_vcombine_p16:
+ return vcombine_p16(low, high);
+ // CHECK: ins v0.d[1], v1.d[0]
+}
+
+float64x2_t test_vcombine_f64(float64x1_t low, float64x1_t high) {
+ // CHECK-LABEL: test_vcombine_f64:
+ return vcombine_f64(low, high);
+ // CHECK: ins v0.d[1], v1.d[0]
+}