[llvm] [llvm-mca] Abort on parse error without -skip-unsupported-instructions (PR #90474)
Peter Waller via llvm-commits
llvm-commits at lists.llvm.org
Tue May 7 05:12:13 PDT 2024
================
@@ -0,0 +1,14 @@
+# RUN: not llvm-mca %s -o /dev/null 2>&1 | FileCheck --check-prefixes=CHECK-ALL,CHECK %s
+# RUN: not llvm-mca -skip-unsupported-instructions=none %s -o /dev/null 2>&1 | FileCheck --check-prefixes=CHECK-ALL,CHECK %s
+# RUN: not llvm-mca -skip-unsupported-instructions=lack-sched %s -o /dev/null 2>&1 | FileCheck --check-prefixes=CHECK-ALL,CHECK %s
+# RUN: not llvm-mca -skip-unsupported-instructions=parse-failure %s -o /dev/null 2>&1 | FileCheck --check-prefixes=CHECK-ALL,CHECK-SKIP %s
+# RUN: not llvm-mca -skip-unsupported-instructions=any %s -o /dev/null 2>&1 | FileCheck --check-prefixes=CHECK-ALL,CHECK-SKIP %s
----------------
peterwaller-arm wrote:
Not quite there. Looks like we can't rely on the default mcpu for bad inputs, since this fails if we run on a CPU for which there is no scheduling information.
So I've gone for supplying mtriple and mcpu for this case, committed in 458d70674190c4d043d5dfd2e41aecddff5cdb69.
https://github.com/llvm/llvm-project/pull/90474
More information about the llvm-commits
mailing list