39 lines · plain
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=INCREASE2RUN: 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=DECREASE3 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.yaml8; INCREASE-NEXT: "B":{{.*}}1-func-2-instr-2-stack.yaml9 10; INCREASE-LABEL: "InBoth": [11; INCREASE: "FunctionName": "func0"12; INCREASE-NEXT: "InstCount":13; INCREASE-NEXT: 1,14; INCREASE-NEXT: 215; INCREASE-NEXT: ],16; INCREASE-NEXT: "StackSize":17; INCREASE-NEXT: 1,18; INCREASE-NEXT: 219 20; INCREASE: "OnlyInA": [],21; INCREASE: "OnlyInB": []22 23; DECREASE-LABEL: "Files":24; DECREASE: "A":{{.*}}1-func-2-instr-2-stack.yaml25; DECREASE-NEXT: "B":{{.*}}1-func-1-instr-1-stack.yaml26 27; DECREASE-LABEL: "InBoth": [28; DECREASE: "FunctionName": "func0"29; DECREASE-NEXT: "InstCount":30; DECREASE-NEXT: 2,31; DECREASE-NEXT: 132; DECREASE-NEXT: ],33; DECREASE-NEXT: "StackSize":34; DECREASE-NEXT: 2,35; DECREASE-NEXT: 136 37; DECREASE: "OnlyInA": [],38; DECREASE: "OnlyInB": []39