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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to