[llvm] [NFC][PowerPC] Add test to check lanemasks for subregisters. (PR #94363)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 09:26:35 PDT 2024


================
@@ -0,0 +1,68 @@
+# RUN: llc -mcpu=pwr10 -ppc-track-subreg-liveness -filetype=null  \
+# RUN:   -mtriple=powerpc64le-unknown-linux-gnu -run-pass=greedy,virtregrewriter \
+# RUN:   -debug-only=regalloc -o - %s 2>&1 | FileCheck %s
+# REQUIRES: asserts
+
+# Keep track of all of the lanemasks for various subregsiters.
+#
+# TODO: The mask for %6.sub_vsx1:accrc is the same as the mask for %10.sub_vsx1_then_sub_64:accrc
+#       even though one is a 128 bit register and the other is a 64 bit subregister. This should
----------------
arsenm wrote:

I've never really understood the generated subregister index logic. I'm not sure what "VSRL is marked as sub_vsx1:accrc" means 

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


More information about the llvm-commits mailing list