summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorJiangning Liu <jiangning.liu@arm.com>2013-11-19 01:38:19 +0000
committerJiangning Liu <jiangning.liu@arm.com>2013-11-19 01:38:19 +0000
commit3311f374a889b36b47c2994aa77a27f53cdbe578 (patch)
tree5a1dcf6f23bc7c586d8240abdbfcdd09b508718b /clang/test
parentc8b0a1ad951bf8d52213f7ce7699b26305f898ec (diff)
downloadbcm5719-llvm-3311f374a889b36b47c2994aa77a27f53cdbe578.tar.gz
bcm5719-llvm-3311f374a889b36b47c2994aa77a27f53cdbe578.zip
Add predicate for AArch64 crypto instructions.
llvm-svn: 195069
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGen/aarch64-neon-crypto.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/CodeGen/aarch64-neon-crypto.c b/clang/test/CodeGen/aarch64-neon-crypto.c
index 968ef2ed604..240f3794b96 100644
--- a/clang/test/CodeGen/aarch64-neon-crypto.c
+++ b/clang/test/CodeGen/aarch64-neon-crypto.c
@@ -1,6 +1,8 @@
// 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
+// RUN: -target-feature +crypto -S -O3 -o - %s | FileCheck %s
+// RUN: not %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +neon \
+// RUN: -S -O3 -o - %s 2>&1 | FileCheck --check-prefix=CHECK-NO-CRYPTO %s
// Test new aarch64 intrinsics and types
@@ -8,6 +10,7 @@
uint8x16_t test_vaeseq_u8(uint8x16_t data, uint8x16_t key) {
// CHECK: test_vaeseq_u8
+ // CHECK-NO-CRYPTO: warning: implicit declaration of function 'vaeseq_u8' is invalid in C99
return vaeseq_u8(data, key);
// CHECK: aese {{v[0-9]+}}.16b, {{v[0-9]+}}.16b
}
OpenPOWER on IntegriCloud