[llvm] [PowerPC] Spill non-volatile registers required for traceback table (PR #71115)

Chen Zheng via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 16 18:20:43 PDT 2024


================
@@ -1,15 +1,16 @@
+# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
 # RUN: llc -mtriple powerpc64le-unknown-linux-gnu -x mir -mcpu=pwr8 -mattr=-altivec \
-# RUN: -run-pass=prologepilog --verify-machineinstrs < %s | \
-# RUN: FileCheck %s --check-prefixes=CHECK,SAVEONE
+# RUN: -run-pass=prologepilog --verify-machineinstrs %s -o - | \
+# RUN: FileCheck %s --check-prefixes=SAVEONE
 
 # RUN: llc -mtriple powerpc64-unknown-linux-gnu -x mir -mcpu=pwr7 -mattr=-altivec \
-# RUN: -run-pass=prologepilog --verify-machineinstrs < %s | \
-# RUN: FileCheck %s --check-prefixes=CHECK,SAVEALL
+# RUN: -run-pass=prologepilog --verify-machineinstrs %s -o - | \
+# RUN: FileCheck %s --check-prefixes=SAVEALL
 
 
 # RUN: llc -mtriple powerpc64-unknown-aix-xcoff -x mir -mcpu=pwr4 -mattr=-altivec \
-# RUN: -run-pass=prologepilog --verify-machineinstrs < %s | \
-# RUN: FileCheck %s --check-prefixes=CHECK,SAVEALL
+# RUN: -run-pass=prologepilog --verify-machineinstrs %s -o - | \
+# RUN: FileCheck %s --check-prefixes=SAVEALL-AIX
----------------
chenzheng1030 wrote:

nit: the second RUN line and the third RUN line have exactly same output for this file. So maybe we can use same check prefix for these two RUN lines? The first RUN line has some slight difference, it uses `MFOCRF8` instead of `MFCR8`, so still need another check prefix for it.

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


More information about the llvm-commits mailing list