[llvm] [X86] Fix shuffle comment decoding for vinsertps immediate operand (PR #117009)
Andrea Di Biagio via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 21 02:28:49 PST 2024
================
@@ -0,0 +1,7 @@
+# RUN: llvm-mc -triple x86_64-unknown-unknown %s | FileCheck %s
+
+.intel_syntax
+
+# CHECK: vinsertps $176, 76(%r14,%rdi,8), %xmm2, %xmm2 # xmm2 = xmm2[0,1,2],mem[0]
+
+vinsertps xmm2,xmm2,dword ptr [r14+rdi*8+0x4C],0x0B0
----------------
adibiagio wrote:
minor: you can simplify the address computation. For the purpose of this test, you don't need index/scale/offset. It is all about testing that you still get mem[0] even if some of the top bits of the immediate are set.
https://github.com/llvm/llvm-project/pull/117009
More information about the llvm-commits
mailing list