[llvm] [RISCV] Port RISCVZacasABIFix to NewPM (PR #214866)

Sam Elliott via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 10 20:48:13 PDT 2026


================
@@ -0,0 +1,41 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
+; RUN: opt %s -S -riscv-zacas-abi-fix -mtriple=riscv64 -mattr=+a,+zacas | FileCheck %s --check-prefixes=CHECK,ZACAS
+; RUN: opt %s -S -passes=riscv-zacas-abi-fix -mtriple=riscv64 -mattr=+a,+zacas | FileCheck %s --check-prefixes=CHECK,ZACAS
+; RUN: opt %s -S -riscv-zacas-abi-fix -mtriple=riscv64 -mattr=+a | FileCheck %s --check-prefixes=CHECK,NOZACAS
+; RUN: opt %s -S -passes=riscv-zacas-abi-fix -mtriple=riscv64 -mattr=+a | FileCheck %s --check-prefixes=CHECK,NOZACAS
----------------
lenary wrote:

Yeah, I would like a test with both old and new PM run lines for each pass. In this case, the AI created it for me, but it looks reasonable and is testing both new and old functionality so I'm happy with what it added.

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


More information about the llvm-commits mailing list