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