Eric Christopher | 758aad7 | 2017-03-21 22:06:18 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple=powerpc64-unknown-linux-gnu -target-feature +altivec -target-feature +vsx -fsyntax-only -verify %s |
| 2 | // RUN: %clang_cc1 -triple=powerpc64le-unknown-linux-gnu -target-feature +altivec -target-feature +vsx -fsyntax-only -verify %s |
Bill Schmidt | 691e01d | 2014-10-31 19:19:24 +0000 | [diff] [blame] | 3 | |
| 4 | // Legitimate for VSX. |
| 5 | __vector double vv_d1; |
| 6 | vector double v_d2; |
| 7 | |
| 8 | // These should have errors. |
| 9 | __vector long double vv_ld3; // expected-error {{cannot use 'long double' with '__vector'}} |
| 10 | vector long double v_ld4; // expected-error {{cannot use 'long double' with '__vector'}} |