[llvm] [X86] Add test for VPBLENDW Tuning (PR #179906)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 5 02:46:58 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-x86
Author: Mahesh-Attarde (mahesh-attarde)
<details>
<summary>Changes</summary>
In PR https://github.com/llvm/llvm-project/pull/178883 we fixed tuning for VPBLENDW with negative masked. Current test adds more cover for masks for both unsigned and signed case.
---
Full diff: https://github.com/llvm/llvm-project/pull/179906.diff
1 Files Affected:
- (added) llvm/test/CodeGen/X86/x86-inst-tuning.mir (+17)
``````````diff
diff --git a/llvm/test/CodeGen/X86/x86-inst-tuning.mir b/llvm/test/CodeGen/X86/x86-inst-tuning.mir
new file mode 100644
index 0000000000000..2079faf714522
--- /dev/null
+++ b/llvm/test/CodeGen/X86/x86-inst-tuning.mir
@@ -0,0 +1,17 @@
+# RUN: llc -mtriple=x86_64-unknown-linux-gnu -mattr=+avx512f -run-pass=x86-fixup-inst-tuning %s -o - | FileCheck %s
+
+---
+name: vblendw_test
+tracksRegLiveness: true
+body: |
+ bb.0:
+ liveins: $xmm0, $xmm1
+ ; CHECK-LABEL: name: vblendw_test
+ ; CHECK: renamable $xmm0 = VPBLENDDrri killed renamable $xmm0, renamable $xmm1, 5
+ ; CHECK: renamable $xmm0 = VPBLENDDrri killed renamable $xmm0, renamable $xmm1, 10
+ ; CHECK: renamable $xmm0 = VPBLENDWrri killed renamable $xmm0, killed renamable $xmm1, -86
+ ; CHECK: RET64 implicit $xmm0
+ renamable $xmm0 = VPBLENDWrri killed renamable $xmm0, renamable $xmm1, -205
+ renamable $xmm0 = VPBLENDWrri killed renamable $xmm0, renamable $xmm1, 204
+ renamable $xmm0 = VPBLENDWrri killed renamable $xmm0, killed renamable $xmm1, -86
+ RET64 implicit $xmm0
``````````
</details>
https://github.com/llvm/llvm-project/pull/179906
More information about the llvm-commits
mailing list