Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for __attribute__((mode())) with vector types #17827

Closed
llvmbot opened this issue Oct 3, 2013 · 3 comments
Closed

support for __attribute__((mode())) with vector types #17827

llvmbot opened this issue Oct 3, 2013 · 3 comments
Labels
bugzilla Issues migrated from bugzilla clang:frontend Language frontend issues, e.g. anything involving "Sema" enhancement Improving things as opposed to bug fixing, e.g. new or missing feature

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Oct 3, 2013

Bugzilla Link 17453
Resolution FIXED
Resolved on Jun 19, 2015 02:49
Version trunk
OS Linux
Attachments gcc test
Reporter LLVM Bugzilla Contributor
CC @DougGregor

Extended Description

rkotler@mipssw006:/rt-rk-4doug/tmp$ ~/llvmw/install/bin/clang ../tests-c/pr23135.c -std=gnu89 -lm
../tests-c/pr23135.c:10:28: error: mode attribute only supported for integer
and floating-point types
typedef int attribute((mode(SI))) attribute((vector_size (8))) vecint;
^
../tests-c/pr23135.c:13:19: warning: excess elements in scalar initializer
vecint i = { 150, 100 };
^~~
../tests-c/pr23135.c:14:18: warning: excess elements in scalar initializer
vecint j = { 10, 13 };
^

../tests-c/pr23135.c:27:5: warning: implicitly declaring library function
'abort' with type 'void (void) attribute((noreturn))'
abort ();
^
../tests-c/pr23135.c:27:5: note: please include the header <stdlib.h> or
explicitly provide a declaration for 'abort'
../tests-c/pr23135.c:133:3: warning: implicitly declaring library function
'exit' with type 'void (int) attribute((noreturn))'
exit (0);
^
../tests-c/pr23135.c:133:3: note: please include the header <stdlib.h> or
explicitly provide a declaration for 'exit'
4 warnings and 1 error generated.
rkotler@mipssw006:~/rt-rk-4doug/tmp$

@lattner
Copy link
Collaborator

lattner commented Oct 3, 2013

It isn't clear that we want to support this. Our goal is not to pass the GCC testsuite.

@llvmbot
Copy link
Collaborator Author

llvmbot commented May 26, 2015

Reproducable in trunk. Mode attribute is not working with vector types.
I'm going to handle this one if there are no objections.

Alexey Frolov

Software Engineer
Intel Compiler Team
Intel

@llvmbot
Copy link
Collaborator Author

llvmbot commented Jun 19, 2015

Fixed in r240125.

Alexey Frolov

Software Engineer
Intel Compiler Team
Intel

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 9, 2021
@Endilll Endilll added enhancement Improving things as opposed to bug fixing, e.g. new or missing feature and removed missing-feature labels Aug 15, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang:frontend Language frontend issues, e.g. anything involving "Sema" enhancement Improving things as opposed to bug fixing, e.g. new or missing feature
Projects
None yet
Development

No branches or pull requests

3 participants