xref: /llvm-project/llvm/test/tools/llvm-remarkutil/size-diff/increase-decrease-inst-count.test (revision 24f320e48c83a70afd19165fe0bf5a5a01b88a64)
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 | 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 | FileCheck -strict-whitespace %s --check-prefix=DECREASE
3
4; Test a size increase/decrease of one instruction + 1 stack byte.
5
6; INCREASE: == > func0, 1 instrs, 1 stack B
7; INCREASE-DAG: instruction count: 1 (100.00%)
8; INCREASE-NEXT: stack byte usage: 1 (100.00%)
9
10; DECREASE: == < func0, -1 instrs, -1 stack B
11; DECREASE-DAG: instruction count: -1 (-50.00%)
12; DECREASE-NEXT: stack byte usage: -1 (-50.00%)
13