Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-remarkutil / size-diff / json-increase-decrease-inst-count.test
blobb99874fe2431222b0cdf9899f85e59b7b93e42b4
1 RUN: llvm-remarkutil size-diff %p/Inputs/1-func-1-instr-1-stack.yaml %p/Inputs/1-func-2-instr-2-stack.yaml --parser=yaml  --report_style=json --pretty | FileCheck -strict-whitespace %s --check-prefix=INCREASE
2 RUN: llvm-remarkutil size-diff %p/Inputs/1-func-2-instr-2-stack.yaml %p/Inputs/1-func-1-instr-1-stack.yaml --parser=yaml  --report_style=json --pretty | FileCheck -strict-whitespace %s --check-prefix=DECREASE
4 ; Test a size increase/decrease of one instruction + 1 stack byte.
6 ; INCREASE-LABEL: "Files":
7 ; INCREASE: "A":{{.*}}1-func-1-instr-1-stack.yaml
8 ; INCREASE-NEXT: "B":{{.*}}1-func-2-instr-2-stack.yaml
10 ; INCREASE-LABEL: "InBoth": [
11 ; INCREASE: "FunctionName": "func0"
12 ; INCREASE-NEXT: "InstCount":
13 ; INCREASE-NEXT: 1,
14 ; INCREASE-NEXT: 2
15 ; INCREASE-NEXT: ],
16 ; INCREASE-NEXT: "StackSize":
17 ; INCREASE-NEXT: 1,
18 ; INCREASE-NEXT: 2
20 ; INCREASE: "OnlyInA": [],
21 ; INCREASE: "OnlyInB": []
23 ; DECREASE-LABEL: "Files":
24 ; DECREASE: "A":{{.*}}1-func-2-instr-2-stack.yaml
25 ; DECREASE-NEXT: "B":{{.*}}1-func-1-instr-1-stack.yaml
27 ; DECREASE-LABEL: "InBoth": [
28 ; DECREASE: "FunctionName": "func0"
29 ; DECREASE-NEXT: "InstCount":
30 ; DECREASE-NEXT: 2,
31 ; DECREASE-NEXT: 1
32 ; DECREASE-NEXT: ],
33 ; DECREASE-NEXT: "StackSize":
34 ; DECREASE-NEXT: 2,
35 ; DECREASE-NEXT: 1
37 ; DECREASE: "OnlyInA": [],
38 ; DECREASE: "OnlyInB": []