[llvm] [X86][APX] Support APX + MOVRS (PR #123264)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 22:27:24 PST 2025


================
@@ -1746,8 +1746,25 @@ def MOVRS32rm    : I<0x8B, MRMSrcMem, (outs GR32:$dst), (ins i32mem:$src),
 def MOVRS64rm    : RI<0x8B, MRMSrcMem, (outs GR64:$dst), (ins i64mem:$src),
                    "movrs{q}\t{$src, $dst|$dst, $src}",
                    [(set GR64:$dst, (int_x86_movrsdi addr:$src))]>, T8;
+}
+
+let Predicates = [HasMOVRS] in
 def PREFETCHRST2 : I<0x18, MRM4m, (outs), (ins i8mem:$src),
                    "prefetchrst2\t$src",
                    [(int_x86_prefetchrs addr:$src)]>, TB;
+
----------------
phoebewang wrote:

Do you have any idea how to handle the difference between OpSize16/OpSize32 and PD?

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


More information about the llvm-commits mailing list