blob: ed3907bc8271592e13c599d6c2a79e919e9ff5fc [file] [log] [blame]
Krzysztof Parzyszek762dee52018-07-12 18:54:04 +00001// REQUIRES: hexagon-registered-target
2// RUN: %clang_cc1 %s -triple hexagon -fsyntax-only -verify -target-cpu hexagonv62
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 return __builtin_HEXAGON_S6_vsplatrbp(Rs);
10}
11
12unsigned builtin_needs_v65(unsigned long long Rss, unsigned long long Rtt) {
13 // expected-error@+1 {{builtin is not supported on this CPU}}
14 return __builtin_HEXAGON_A6_vcmpbeq_notany(Rss, Rtt);
15}