-
Notifications
You must be signed in to change notification settings - Fork 15.5k
[CIR][CIRGen][Builtin][X86] Multishift Intrinsics #169618
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,22 @@ | ||||||||||||||||||
| // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -target-feature +avx512vbmi \ | ||||||||||||||||||
| // RUN: -fclangir -emit-cir %s -o - | FileCheck %s | ||||||||||||||||||
|
Comment on lines
+1
to
+2
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
These lines perform the three variations of checks we expect. However, this test should be moved to |
||||||||||||||||||
|
|
||||||||||||||||||
| #include <immintrin.h> | ||||||||||||||||||
| __m512i test_multishift(__m512i x, __m512i y) { | ||||||||||||||||||
| return _mm512_multishift_epi64_epi8(x, y); | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| // // CHECK: cir.func @test_multishift | ||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Double |
||||||||||||||||||
| // // CHECK: cir.call @__builtin_ia32_vpmultishiftqb512 | ||||||||||||||||||
|
|
||||||||||||||||||
| __m128i test_mm_multishift_epi64_epi8(__m128i __X, __m128i __Y) | ||||||||||||||||||
| { | ||||||||||||||||||
| return (__m128i)_mm_multishift_epi64_epi8((__v16qi)__X, (__v16qi)__Y); | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
| __m256i test_mm256_multishift_epi64_epi8(__m256i __X, __m256i __Y) | ||||||||||||||||||
| { | ||||||||||||||||||
| return (__m256i)_mm256_multishift_epi64_epi8((__v32qi)__X, (__v32qi)__Y); | ||||||||||||||||||
| } | ||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to rebase your PR to get this new signature. It's been updated recently.