[llvm-bugs] [Bug 41932] New: intrinsic macro has ';' at the end
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat May 18 15:09:02 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41932
Bug ID: 41932
Summary: intrinsic macro has ';' at the end
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Headers
Assignee: unassignedclangbugs at nondot.org
Reporter: ntfs.hard at gmail.com
CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
Some intrinsic macro has a semicolon at the end therefore they can't be used
inside an expressions.
g++ could compile file:
#include <immintrin.h>
__m512 src, a, b;
__mmask16 k;
int main() {
_mm512_castps512_ps128( _mm512_mask_mul_round_ps (src, k, a, b,
(_MM_FROUND_TO_NEAREST_INT |_MM_FROUND_NO_EXC)) );
}
but clang++ reports error:
bug.cpp:9:29: error: unexpected ';' before ')'
_mm512_castps512_ps128( _mm512_mask_mul_round_ps (src, k, a, b,
(_MM_FROUND_TO_NEAREST_INT |_MM_FROUND_NO_EXC)) );
^
/usr/lib64/clang/7.0.1/include/avx512fintrin.h:2237:56: note: expanded from
macro '_mm512_mask_mul_round_ps'
(__v16sf)(__m512)(W));
Trunk seems still has this issue
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190518/a181edc5/attachment.html>
More information about the llvm-bugs
mailing list