| 1 |
# This test is generic but not all builders have an llvm-mca which can run natively. |
| 2 |
|
| 3 |
# RUN: not llvm-mca -mtriple=x86_64 -mcpu=x86-64 %s -o /dev/null 2>&1 | FileCheck --check-prefixes=CHECK-ALL,CHECK %s |
| 4 |
# RUN: not llvm-mca -mtriple=x86_64 -mcpu=x86-64 -skip-unsupported-instructions=none %s -o /dev/null 2>&1 | FileCheck --check-prefixes=CHECK-ALL,CHECK %s |
| 5 |
# RUN: not llvm-mca -mtriple=x86_64 -mcpu=x86-64 -skip-unsupported-instructions=lack-sched %s -o /dev/null 2>&1 | FileCheck --check-prefixes=CHECK-ALL,CHECK %s |
| 6 |
# RUN: not llvm-mca -mtriple=x86_64 -mcpu=x86-64 -skip-unsupported-instructions=parse-failure %s -o /dev/null 2>&1 | FileCheck --check-prefixes=CHECK-ALL,CHECK-SKIP %s |
| 7 |
# RUN: not llvm-mca -mtriple=x86_64 -mcpu=x86-64 -skip-unsupported-instructions=any %s -o /dev/null 2>&1 | FileCheck --check-prefixes=CHECK-ALL,CHECK-SKIP %s |
| 8 |
|
| 9 |
# Test checks that MCA does not produce a total cycles estimate if it encounters parse errors. |
| 10 |
|
| 11 |
# CHECK-ALL-NOT: Total Cycles: |
| 12 |
|
| 13 |
# CHECK: error: Assembly input parsing had errors, use -skip-unsupported-instructions=parse-failure to drop failing lines from the input. |
| 14 |
# CHECK-SKIP: error: no assembly instructions found. |
| 15 |
|
| 16 |
This is not a valid assembly file for any architecture (by virtue of this text.) |