Debian Codegraph @

llvm/test/tools/llvm-mca/X86/BtVer2/unsupported-instruction.s

raw
1 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -skip-unsupported-instructions=any -timeline %s 2>&1 | FileCheck --check-prefix=CHECK-SKIP %s
2 # RUN: llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -skip-unsupported-instructions=lack-sched -timeline %s 2>&1 | FileCheck --check-prefix=CHECK-SKIP %s
3 # RUN: not llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 -skip-unsupported-instructions=parse-failure -timeline %s 2>&1 | FileCheck --check-prefix=CHECK-ERROR %s
4 # RUN: not llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 %s 2>&1 | FileCheck --check-prefix=CHECK-ERROR %s
5
6 # Test checks that unsupported instructions exit with an error, unless -skip-unsupported-instructions=lack-sched is passed, in which case the remaining instructions should be analysed.
7 # Additionally check that -skip-unsupported-instructions=parse-failure continues to raise the lack of scheduling information.
8
9 # CHECK-SKIP: warning: found an unsupported instruction in the input assembly sequence, skipping with -skip-unsupported-instructions, note accuracy will be impacted:
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 bzhi %eax, %ebx, %ecx
13
14 # Supported instruction that may be analysed.
15 add %eax, %eax
16
17 # CHECK-SKIP: Iterations: 100
18 # CHECK-SKIP: Instructions: 100
19 # CHECK-SKIP: Total Cycles: 103
20 # CHECK-SKIP: Total uOps: 100
21
22 # CHECK-SKIP: Dispatch Width: 2
23 # CHECK-SKIP: uOps Per Cycle: 0.97
24 # CHECK-SKIP: IPC: 0.97
25 # CHECK-SKIP: Block RThroughput: 0.5
26
27 # CHECK-SKIP: Instruction Info:
28 # CHECK-SKIP: [1]: #uOps
29 # CHECK-SKIP: [2]: Latency
30 # CHECK-SKIP: [3]: RThroughput
31 # CHECK-SKIP: [4]: MayLoad
32 # CHECK-SKIP: [5]: MayStore
33 # CHECK-SKIP: [6]: HasSideEffects (U)
34
35 # CHECK-SKIP: [1] [2] [3] [4] [5] [6] Instructions:
36 # CHECK-SKIP: 1 1 0.50 addl %eax, %eax
37
38 # CHECK-SKIP: Timeline view:
39
40 # CHECK-SKIP: [0,0] DeER . . . addl %eax, %eax
41 # CHECK-SKIP: [1,0] D=eER. . . addl %eax, %eax
42 # CHECK-SKIP: [2,0] .D=eER . . addl %eax, %eax
43 # CHECK-SKIP: [3,0] .D==eER . . addl %eax, %eax
44 # CHECK-SKIP: [4,0] . D==eER . . addl %eax, %eax
45 # CHECK-SKIP: [5,0] . D===eER . . addl %eax, %eax
46 # CHECK-SKIP: [6,0] . D===eER. . addl %eax, %eax
47 # CHECK-SKIP: [7,0] . D====eER . addl %eax, %eax
48 # CHECK-SKIP: [8,0] . D====eER. addl %eax, %eax
49 # CHECK-SKIP: [9,0] . D=====eER addl %eax, %eax
50
51 # CHECK-SKIP: Average Wait times (based on the timeline view):
52 # CHECK-SKIP: [0]: Executions
53 # CHECK-SKIP: [1]: Average time spent waiting in a scheduler's queue
54 # CHECK-SKIP: [2]: Average time spent waiting in a scheduler's queue while ready
55 # CHECK-SKIP: [3]: Average time elapsed from WB until retire stage
56
57 # CHECK-SKIP: [0] [1] [2] [3]
58 # CHECK-SKIP: 0. 10 3.5 0.1 0.0 addl %eax, %eax