summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/builtins-hexagon-v55.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/builtins-hexagon-v55.c')
-rw-r--r--clang/test/Sema/builtins-hexagon-v55.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/Sema/builtins-hexagon-v55.c b/clang/test/Sema/builtins-hexagon-v55.c
new file mode 100644
index 00000000000..e5e233d1f1e
--- /dev/null
+++ b/clang/test/Sema/builtins-hexagon-v55.c
@@ -0,0 +1,17 @@
+// REQUIRES: hexagon-registered-target
+// RUN: %clang_cc1 %s -triple hexagon -fsyntax-only -verify -target-cpu hexagonv55
+
+unsigned builtin_needs_v60(unsigned Rs) {
+ // expected-error@+1 {{builtin is not supported on this CPU}}
+ return __builtin_HEXAGON_S6_rol_i_r(Rs, 3);
+}
+
+unsigned long long builtin_needs_v62(unsigned Rs) {
+ // expected-error@+1 {{builtin is not supported on this CPU}}
+ return __builtin_HEXAGON_S6_vsplatrbp(Rs);
+}
+
+unsigned builtin_needs_v65(unsigned long long Rss, unsigned long long Rtt) {
+ // expected-error@+1 {{builtin is not supported on this CPU}}
+ return __builtin_HEXAGON_A6_vcmpbeq_notany(Rss, Rtt);
+}
OpenPOWER on IntegriCloud