[clang] [compiler-rt] [llvm] [X86] Support AVX10.3 (1/4) (PR #248433)
Phoebe Wang via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 5 18:38:14 PST 2026
================
@@ -0,0 +1,266 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
+; RUN: llc -mtriple=x86_64-unknown-unknown -O2 -mattr=+avx10.3 < %s -o - | FileCheck %s --check-prefixes=X64
+
+define <16 x i8> @interleavehb_masked_select(ptr %mask, ptr %src) nounwind {
+; X64-LABEL: interleavehb_masked_select:
+; X64: # %bb.0:
+; X64-NEXT: kmovw (%rdi), %k1
+; X64-NEXT: vpbroadcastb {{.*#+}} xmm0 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
+; X64-NEXT: vmovdqu8 (%rsi), %xmm0 {%k1}
+; X64-NEXT: vpxor %xmm1, %xmm1, %xmm1
+; X64-NEXT: vpinterleavehb %xmm0, %xmm1, %xmm0 {%k1} {z}
----------------
phoebewang wrote:
I don't see any memory fold. If vpinterleave instructions don't support broadcast, we don't need to test it not fold.
https://github.com/llvm/llvm-project/pull/248433
More information about the cfe-commits
mailing list