2022-09-27 14:26:37 -07:00
|
|
|
RUN: not llvm-remarkutil yaml2bitstream %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --check-prefix=YAMLPARSER
|
|
|
|
RUN: not llvm-remarkutil instruction-count --parser=yaml %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --check-prefix=YAMLPARSER
|
2023-04-07 23:42:39 +01:00
|
|
|
RUN: not llvm-remarkutil annotation-count --parser=yaml --annotation-type=remark %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --check-prefix=YAMLPARSER
|
2023-10-12 16:03:39 +01:00
|
|
|
RUN: not llvm-remarkutil count --parser=yaml %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --check-prefix=YAMLPARSER
|
2022-09-09 19:58:02 -07:00
|
|
|
RUN: llvm-remarkutil bitstream2yaml %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --allow-empty --check-prefix=BITSTREAM2YAML
|
2022-09-27 14:26:37 -07:00
|
|
|
RUN: llvm-remarkutil instruction-count --parser=bitstream %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --allow-empty --check-prefix=SIZEBITSTREAM
|
2023-04-07 23:42:39 +01:00
|
|
|
RUN: llvm-remarkutil annotation-count --parser=bitstream --annotation-type=remark %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --allow-empty --check-prefix=ANNOTATIONBITSTREAM
|
2023-10-12 16:03:39 +01:00
|
|
|
RUN: llvm-remarkutil count --parser=bitstream %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --allow-empty --check-prefix=COUNTBITSTREAM
|
2022-09-09 19:58:02 -07:00
|
|
|
|
2022-09-27 14:26:37 -07:00
|
|
|
; YAMLPARSER: error: document root is not of mapping type.
|
2022-09-09 19:58:02 -07:00
|
|
|
|
|
|
|
; An empty bitstream file is valid.
|
|
|
|
; BITSTREAM2YAML-NOT: error
|
2022-09-27 14:26:37 -07:00
|
|
|
|
|
|
|
; SIZEBITSTREAM-LABEL: Function,InstructionCount
|
2023-04-07 23:42:39 +01:00
|
|
|
; SIZEBITSTREAM-EMPTY:
|
|
|
|
|
|
|
|
; ANNOTATIONBITSTREAM-LABEL: Function,Count
|
|
|
|
; ANNOTATIONBITSTREAM-EMPTY:
|
2023-10-12 16:03:39 +01:00
|
|
|
|
|
|
|
; COUNTBITSTREAM-LABEL: Source,Count
|
|
|
|
; COUNTBITSTREAM-EMPTY:
|