Skip to content

Commit e1489ca

Browse files
committed
Define AVX blend intrinsics
This defines the `_mm256_blendv_pd` and `_mm256_blendv_ps` intrinsics. The `_mm256_blend_pd` and `_mm256_blend_ps` intrinsics are not available as LLVM intrinsics. In Clang they are implemented using the shufflevector builtin. Intel reference: https://software.intel.com/en-us/node/524070.
1 parent ddfe9b6 commit e1489ca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/etc/platform-intrinsics/x86/avx.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
"ret": "f(32-64)",
99
"args": ["0", "0"]
1010
},
11+
{
12+
"intrinsic": "256_blendv_{0.data_type}",
13+
"width": [256],
14+
"llvm": "blendv.{0.data_type}.256",
15+
"ret": "f(32-64)",
16+
"args": ["0", "0", "0"]
17+
},
1118
{
1219
"intrinsic": "256_broadcast_{0.data_type}",
1320
"width": [256],

0 commit comments

Comments
 (0)