| 1 |
# RUN: not llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -skip-unsupported-instructions=lack-sched %s 2>&1 | FileCheck --check-prefixes=CHECK-ALL,CHECK-SKIP %s |
| 2 |
# RUN: not llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 %s 2>&1 | FileCheck --check-prefixes=CHECK-ALL,CHECK-ERROR %s |
| 3 |
|
| 4 |
# Test defends that if all instructions are skipped leaving an empty input, an error is printed. |
| 5 |
|
| 6 |
bzhi %eax, %ebx, %ecx |
| 7 |
|
| 8 |
# CHECK-ALL-NOT: error |
| 9 |
|
| 10 |
# CHECK-ERROR: error: found an unsupported instruction in the input assembly sequence, use -skip-unsupported-instructions=lack-sched to ignore these on the input. |
| 11 |
|
| 12 |
# CHECK-SKIP: warning: found an unsupported instruction in the input assembly sequence, skipping with -skip-unsupported-instructions, note accuracy will be impacted: |
| 13 |
# CHECK-SKIP: note: instruction: bzhil %eax, %ebx, %ecx |
| 14 |
# CHECK-SKIP: error: no assembly instructions found. |