[clang] [Clang][Sema] Do not accept "vector _Complex" for AltiVec/ZVector (PR #90467)
Chen Zheng via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 29 19:54:19 PDT 2024
================
@@ -111,6 +111,20 @@ vector __bool long long v_bll4; // expected-error {{use of 'long long' with
#endif
__vector long double vv_ld3; // expected-error {{cannot use 'long double' with '__vector'}}
vector long double v_ld4; // expected-error {{cannot use 'long double' with '__vector'}}
+vector float _Complex v_cf; // expected-error {{cannot use '_Complex' with '__vector'}}
+vector double _Complex v_cd; // expected-error {{cannot use '_Complex' with '__vector'}}
+#ifndef __VSX__
+ // expected-error at -2 {{use of 'double' with '__vector' requires VSX support to be enabled (available on POWER7 or later)}}
+#endif
+vector long double _Complex v_cld; // expected-error {{cannot use '_Complex' with '__vector'}}
+ // expected-error at -1 {{cannot use 'long double' with '__vector'}}
+__vector float _Complex v_cf2; // expected-error {{cannot use '_Complex' with '__vector'}}
+__vector double _Complex v_cd2; // expected-error {{cannot use '_Complex' with '__vector'}}
+#ifndef __VSX__
+ // expected-error at -2 {{use of 'double' with '__vector' requires VSX support to be enabled (available on POWER7 or later)}}
----------------
chenzheng1030 wrote:
Error message `cannot use '_Complex' with '__vector'` sounds like good enough. This error message is not accurate at all?
https://github.com/llvm/llvm-project/pull/90467
More information about the cfe-commits
mailing list