[clang] [llvm] [X86] Support SM4 EVEX version intrinsics/instructions. (PR #113402)

Phoebe Wang via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 22 23:30:07 PDT 2024


================
@@ -0,0 +1,64 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -verify-machineinstrs -mtriple=x86_64-- --show-mc-encoding -mattr=+sm4,+avx10.2-512 | FileCheck %s
+; RUN: llc < %s -verify-machineinstrs -mtriple=i686-- --show-mc-encoding -mattr=+sm4,+avx10.2-512 | FileCheck %s
+
+define <4 x i32> @test_int_x86_vsm4key4128(<4 x i32> %A, <4 x i32> %B) {
+; CHECK-LABEL: test_int_x86_vsm4key4128:
+; CHECK:       # %bb.0:
+; CHECK-NEXT:    vsm4key4 %xmm1, %xmm0, %xmm0 # encoding: [0xc4,0xe2,0x7a,0xda,0xc1]
----------------
phoebewang wrote:

I assume there's a comment about EVEX2VEX compress.

https://github.com/llvm/llvm-project/pull/113402


More information about the cfe-commits mailing list