[llvm] [AArch64] improve zero-cycle regmov test (PR #143680)
Tomer Shafir via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 12 01:30:14 PDT 2025
================
@@ -0,0 +1,39 @@
+; RUN: llc < %s -march=arm64 | FileCheck %s -check-prefixes=CHECK,NOTCPU
+; RUN: llc < %s -march=arm64 -mcpu=apple-m1 | FileCheck %s -check-prefixes=CHECK,CPU
+; RUN: llc < %s -march=arm64 -mcpu=apple-m1 -mattr=-zcm | FileCheck %s -check-prefixes=CHECK,NOTATTR
+; RUN: llc < %s -march=arm64 -mattr=+zcm | FileCheck %s -check-prefixes=CHECK,ATTR
+
+define i32 @t(i32 %a, i32 %b, i32 %c, i32 %d) nounwind ssp {
+entry:
+; CHECK-LABEL: t:
----------------
tomershafir wrote:
its only 20-30 lines of assembly, I think its small enough to keep it manual and more manageable
https://github.com/llvm/llvm-project/pull/143680
More information about the llvm-commits
mailing list