Krzysztof Parzyszek | 762dee5 | 2018-07-12 18:54:04 +0000 | [diff] [blame] | 1 | // REQUIRES: hexagon-registered-target |
| 2 | // RUN: %clang_cc1 %s -triple hexagon -fsyntax-only -verify -target-cpu hexagonv62 |
| 3 | |
| 4 | unsigned builtin_needs_v60(unsigned Rs) { |
| 5 | return __builtin_HEXAGON_S6_rol_i_r(Rs, 3); |
| 6 | } |
| 7 | |
| 8 | unsigned long long builtin_needs_v62(unsigned Rs) { |
| 9 | return __builtin_HEXAGON_S6_vsplatrbp(Rs); |
| 10 | } |
| 11 | |
| 12 | unsigned 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 | } |