1RUN: 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 2RUN: 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 3 4; Test a size increase/decrease of one instruction + 1 stack byte. 5 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 9 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 19 20; INCREASE: "OnlyInA": [], 21; INCREASE: "OnlyInB": [] 22 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 26 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 36 37; DECREASE: "OnlyInA": [], 38; DECREASE: "OnlyInB": [] 39