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":
16 ; INCREASE-NEXT: "StackSize":
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":
33 ; DECREASE-NEXT: "StackSize":
37 ; DECREASE: "OnlyInA": [],
38 ; DECREASE: "OnlyInB": []