[llvm-bugs] [Bug 33610] New: Semantics of __attribute__((target("...")) on platforms without the feature
llvm-bugs at lists.llvm.org
Tue Jun 27 06:40:32 PDT 2017
Bug ID: 33610
Summary: Semantics of __attribute__((target("...")) on
platforms without the feature
Assignee: unassignedclangbugs at nondot.org
Reporter: gonzalobg88 at gmail.com
CC: llvm-bugs at lists.llvm.org
Intrinsics in the AVX headers are annotated with
__attribute__((__target__("avx"))) and have no preconditions.
The documentation of the target attribute is here:
It doesn't specify any pre/post conditions either.
What are the semantics of calling such a function on a target that does not
support the feature specified by the target attribute?
In practice I can get a SIGILL exception, but am I guaranteed to get one (and
can I reliably catch it?)? That is, is this defined or implementation defined
behavior? If is so, how and where is it defined? Otherwise, is this undefined
behavior? And if so, where is this undefined(clang, llvm, the assembler, the
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs