Bug 97016 - [i386] _MM_CMPINT_ENUM type is missing
Summary: [i386] _MM_CMPINT_ENUM type is missing
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 10.2.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-11 02:16 UTC by Evan Nemerson
Modified: 2020-12-23 17:33 UTC (History)
1 user (show)

See Also:
Host:
Target: x86_64-*-* i?86-*-*
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evan Nemerson 2020-09-11 02:16:13 UTC
The _mm{,256,512}_cmp_epi{8,16,32,64}_mask functions take a _MM_CMPINT_ENUM according to the Intel Intrinsics Guide (e.g., <https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm512_cmp_epi32_mask&expand=697>), but in GCC they take an int.

FWIW ICC and clang both define an enum.  I haven't checked MSVC.

Using an int is more consistent with other Intel SIMD APIs, but it seems Intel has chosen to break tradition here and use an enum.