hjl.tools added a comment.

In https://reviews.llvm.org/D53919#1282811, @efriedma wrote:

> No, AVX512 wasn't even announced when clang 3.3 came out.


Try this with clang 3.3 and clang 7.0.

[hjl@gnu-cfl-1 tmp]$ cat z.c
typedef int __attribute__((mode(SI))) si;
typedef si __attribute__((vector_size (64))) v;

v
foo (void)
{
 v y = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f' };
 return y;
}
[hjl@gnu-cfl-1 tmp]$ gcc -S -O2 z.c
z.c: In function ‘foo’:
z.c:6:1: warning: AVX512F vector return without AVX512F enabled changes the ABI 
[-Wpsabi]
 {
 ^
[hjl@gnu-cfl-1 tmp]$


Repository:
  rC Clang

https://reviews.llvm.org/D53919



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to