https://bugs.llvm.org/show_bug.cgi?id=45387

            Bug ID: 45387
           Summary: Compiler no longer allowing the creation of vectors
                    with >= 1024 elements
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

On my x64 linux machine, I noticed that the compiler no longer seems to allow
creating a vector with >= 1024 elements after commit 6f28e09. Is this
intentional? Gcc allows it, and clang prior to this change did as well.

Here is the code I tried to build:

_attribute__((vector_size_(1024))) char foo;

And here is the compiler output:

dyung@rigel:~$ ~/src/upstream/6f428e09-linux/bin/clang -c -Wall test.cpp
test.cpp:1:16: error: vector size too large
__attribute__((__vector_size__(1024))) char foo;
               ^               ~~~~
1 error generated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to