summaryrefslogtreecommitdiff
path: root/test/Sema/builtins-hexagon-v65.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/builtins-hexagon-v65.c')
-rw-r--r--test/Sema/builtins-hexagon-v65.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Sema/builtins-hexagon-v65.c b/test/Sema/builtins-hexagon-v65.c
new file mode 100644
index 0000000000000..bb8a1ce5e167c
--- /dev/null
+++ b/test/Sema/builtins-hexagon-v65.c
@@ -0,0 +1,15 @@
+// REQUIRES: hexagon-registered-target
+// RUN: %clang_cc1 %s -triple hexagon -fsyntax-only -verify -target-cpu hexagonv65
+
+// expected-no-diagnostics
+unsigned builtin_needs_v60(unsigned Rs) {
+ return __builtin_HEXAGON_S6_rol_i_r(Rs, 3);
+}
+
+unsigned long long builtin_needs_v62(unsigned Rs) {
+ return __builtin_HEXAGON_S6_vsplatrbp(Rs);
+}
+
+unsigned builtin_needs_v65(unsigned long long Rss, unsigned long long Rtt) {
+ return __builtin_HEXAGON_A6_vcmpbeq_notany(Rss, Rtt);
+}