summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX
diff options
context:
space:
mode:
authorBradley Smith <bradley.smith@arm.com>2014-04-30 10:52:05 +0000
committerBradley Smith <bradley.smith@arm.com>2014-04-30 10:52:05 +0000
commit4da7dd837db6b504564076907fd750b476f78dd5 (patch)
tree5aeea3a1699f298373fbcc36800d7a39cde50db8 /clang/test/CodeGenCXX
parent5217c945225ba9d5c393e56e2a1e2eeed914c4b3 (diff)
downloadbcm5719-llvm-4da7dd837db6b504564076907fd750b476f78dd5.tar.gz
bcm5719-llvm-4da7dd837db6b504564076907fd750b476f78dd5.zip
[ARM64] Port remaining relevant AArch64 clang tests over to ARM64
llvm-svn: 207632
Diffstat (limited to 'clang/test/CodeGenCXX')
-rw-r--r--clang/test/CodeGenCXX/aarch64-arguments.cpp1
-rw-r--r--clang/test/CodeGenCXX/aarch64-cxxabi.cpp1
-rw-r--r--clang/test/CodeGenCXX/aarch64-mangle-neon-vectors.cpp2
-rw-r--r--clang/test/CodeGenCXX/aarch64-neon.cpp5
-rw-r--r--clang/test/CodeGenCXX/int64_uint64.cpp5
5 files changed, 13 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/aarch64-arguments.cpp b/clang/test/CodeGenCXX/aarch64-arguments.cpp
index f56ad0bbdcf..6e5e9f4a10e 100644
--- a/clang/test/CodeGenCXX/aarch64-arguments.cpp
+++ b/clang/test/CodeGenCXX/aarch64-arguments.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -triple aarch64-none-linux -emit-llvm -w -o - %s | FileCheck -check-prefix=PCS %s
+// RUN: %clang_cc1 -triple arm64-none-linux -emit-llvm -w -o - %s | FileCheck -check-prefix=PCS %s
// PCS: define void @{{.*}}(i8 %a
struct s0 {};
diff --git a/clang/test/CodeGenCXX/aarch64-cxxabi.cpp b/clang/test/CodeGenCXX/aarch64-cxxabi.cpp
index c7d910d5f00..92ceb08e90e 100644
--- a/clang/test/CodeGenCXX/aarch64-cxxabi.cpp
+++ b/clang/test/CodeGenCXX/aarch64-cxxabi.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -emit-llvm -w -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple arm64-none-linux-gnu -emit-llvm -w -o - %s | FileCheck %s
// Check differences between the generic Itanium ABI, the AArch32 version and
// the AArch64 version.
diff --git a/clang/test/CodeGenCXX/aarch64-mangle-neon-vectors.cpp b/clang/test/CodeGenCXX/aarch64-mangle-neon-vectors.cpp
index e54975d820d..4ed2df3e379 100644
--- a/clang/test/CodeGenCXX/aarch64-mangle-neon-vectors.cpp
+++ b/clang/test/CodeGenCXX/aarch64-mangle-neon-vectors.cpp
@@ -1,5 +1,7 @@
// REQUIRES: aarch64-registered-target
+// REQUIRES: arm64-registered-target
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +neon %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon %s -emit-llvm -o - | FileCheck %s
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
diff --git a/clang/test/CodeGenCXX/aarch64-neon.cpp b/clang/test/CodeGenCXX/aarch64-neon.cpp
index 5f7c63a614c..78876e2b08e 100644
--- a/clang/test/CodeGenCXX/aarch64-neon.cpp
+++ b/clang/test/CodeGenCXX/aarch64-neon.cpp
@@ -1,6 +1,9 @@
// REQUIRES: aarch64-registered-target
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +neon \
// RUN: -ffp-contract=fast -S -O3 -o - %s | FileCheck %s
+// REQUIRES: arm64-registered-target
+// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon \
+// RUN: -ffp-contract=fast -S -O3 -o - %s | FileCheck %s
// Test whether arm_neon.h can be used in .cpp file.
@@ -9,5 +12,5 @@
poly64x1_t test_vld1_p64(poly64_t const * ptr) {
// CHECK: test_vld1_p64
return vld1_p64(ptr);
- // CHECK: ld1 { {{v[0-9]+}}.1d }, [{{x[0-9]+|sp}}]
+ // CHECK: {{ld1 { v[0-9]+.1d }|ldr d[0-9]+}}, [{{x[0-9]+|sp}}]
}
diff --git a/clang/test/CodeGenCXX/int64_uint64.cpp b/clang/test/CodeGenCXX/int64_uint64.cpp
index 3ec976acecc..0e5f279e19f 100644
--- a/clang/test/CodeGenCXX/int64_uint64.cpp
+++ b/clang/test/CodeGenCXX/int64_uint64.cpp
@@ -8,6 +8,11 @@
// RUN: -target-feature +neon \
// RUN: -emit-llvm -w -O1 -o - %s | FileCheck --check-prefix=CHECK-AARCH64 %s
+// REQUIRES: arm64-registered-target
+// RUN: %clang_cc1 -triple arm64-linux-gnueabi \
+// RUN: -target-feature +neon \
+// RUN: -emit-llvm -w -O1 -o - %s | FileCheck --check-prefix=CHECK-AARCH64 %s
+
// Test if int64_t and uint64_t can be correctly mangled.
#include "arm_neon.h"
OpenPOWER on IntegriCloud