Clang Project

clang_source_code/test/Sema/builtins-hexagon-v60.c
1// REQUIRES: hexagon-registered-target
2// RUN: %clang_cc1 %s -triple hexagon -fsyntax-only -verify -target-cpu hexagonv60
3
4unsigned builtin_needs_v60(unsigned Rs) {
5  return __builtin_HEXAGON_S6_rol_i_r(Rs, 3);
6}
7
8unsigned long long builtin_needs_v62(unsigned Rs) {
9  // expected-error@+1 {{builtin is not supported on this CPU}}
10  return __builtin_HEXAGON_S6_vsplatrbp(Rs);
11}
12
13unsigned builtin_needs_v65(unsigned long long Rss, unsigned long long Rtt) {
14  // expected-error@+1 {{builtin is not supported on this CPU}}
15  return __builtin_HEXAGON_A6_vcmpbeq_notany(Rss, Rtt);
16}
17