[llvm] [llvm-mca][AArch64] Add AArch64 version of clearsSuperRegisters. (PR #92548)

Peter Waller via llvm-commits llvm-commits at lists.llvm.org
Mon May 20 07:53:19 PDT 2024


================
@@ -0,0 +1,650 @@
+# NOTE: Assertions have been autogenerated by utils/update_mca_test_checks.py
+# RUN: llvm-mca -mtriple=aarch64 -mcpu=neoverse-v2 --timeline --timeline-max-iterations=4 < %s | FileCheck %s
+
+# LLVM-MCA-BEGIN FPR8-bit
+ldr b0, [sp]
+add z0.d, z0.d, z0.d
+# LLVM-MCA-END
+
+# LLVM-MCA-BEGIN FPR16-bit
+ldr h0, [sp]
+add z0.d, z0.d, z0.d
+# LLVM-MCA-END
+
+# LLVM-MCA-BEGIN FPR32-bit
+ldr s0, [sp]
+add z0.d, z0.d, z0.d
+# LLVM-MCA-END
----------------
peterwaller-arm wrote:

I think this could have a FPR64 (`ldr d0`) and FPR128 (`ldr q0`) test, the latter of which also looks like it needs implementing.

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


More information about the llvm-commits mailing list