[llvm] [X86][CodeGen] Prefer KMOVkk_EVEX than KMOVkk when EGPR is supported (PR #74048)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 1 06:24:34 PST 2023
================
@@ -0,0 +1,14 @@
+; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+avx512f,+egpr -show-mc-encoding | FileCheck --check-prefix=EGPR %s
+
+define <16 x i32> @kmovkk(ptr %base, <16 x i32> %ind, i16 %mask) {
+; EGPR: kmovq %k1, %k2 # EVEX TO VEX Compression encoding: [0xc4,0xe1,0xf8,0x90,0xd1]
----------------
phoebewang wrote:
Is it possible to add a test to cover the memory fold case?
https://github.com/llvm/llvm-project/pull/74048
More information about the llvm-commits
mailing list