1 RUN: llvm-remarkutil size-diff %p/Inputs/1-func-1-instr-1-stack.yaml %p/Inputs/2-identical-func-1-instr-1-stack.yaml --parser=yaml --report_style=json --pretty | FileCheck -strict-whitespace %s --check-prefix=ADD
2 RUN: llvm-remarkutil size-diff %p/Inputs/2-identical-func-1-instr-1-stack.yaml %p/Inputs/1-func-1-instr-1-stack.yaml --parser=yaml --report_style=json --pretty | FileCheck -strict-whitespace %s --check-prefix=REMOVE
4 ; The "two-identical-one-instr-funcs" file contains a single-instruction
5 ; function which does not appear in the other file.
8 ; ADD: "A":{{.*}}1-func-1-instr-1-stack.yaml
9 ; ADD-NEXT: "B":{{.*}}2-identical-func-1-instr-1-stack.yaml
11 ; ADD-LABEL: "InBoth": [
12 ; ADD: "FunctionName": "func0",
13 ; ADD-NEXT: "InstCount": [
17 ; ADD-NEXT: "StackSize": [
21 ; ADD-LABEL: "OnlyInA": [],
23 ; ADD-LABEL: "OnlyInB": [
24 ; ADD: "FunctionName": "func1",
25 ; ADD-NEXT: "InstCount": [
29 ; ADD-NEXT: "StackSize": [
33 ; REMOVE-LABEL: "Files":
34 ; REMOVE: "A":{{.*}}2-identical-func-1-instr-1-stack.yaml
35 ; REMOVE-NEXT: "B":{{.*}}1-func-1-instr-1-stack.yaml
37 ; REMOVE-LABEL: "InBoth": [
38 ; REMOVE: "FunctionName": "func0",
39 ; REMOVE-NEXT: "InstCount": [
43 ; REMOVE-NEXT: "StackSize": [
47 ; REMOVE-LABEL: "OnlyInA": [
48 ; REMOVE: "FunctionName": "func1",
49 ; REMOVE-NEXT: "InstCount": [
53 ; REMOVE-NEXT: "StackSize": [
57 ; REMOVE-LABEL: "OnlyInB": []