blob: 3bf2a2619f01f4240e97b84e83862da88f892a7b [file] [log] [blame]
Amir Ayupov1e0d08e2023-07-25 04:32:441/* This test checks the handling of YAML profile with different block orders.
2# RUN: %clang %cflags %s -o %t.exe
3# RUN: link_fdata %s %t.exe %t.fdata
Amir Ayupovab14eb22023-11-27 18:53:184# RUN: llvm-bolt %t.exe -o %t.null -data %t.fdata -w %t.yaml
Amir Ayupov1e0d08e2023-07-25 04:32:445# RUN: FileCheck %s --input-file %t.yaml --check-prefix=CHECK-BINARY
6# CHECK-BINARY: dfs-order: false
Amir Ayupovab14eb22023-11-27 18:53:187# RUN: llvm-bolt %t.exe -o %t.null -data %t.fdata -w %t.yaml --profile-use-dfs
Amir Ayupov1e0d08e2023-07-25 04:32:448# RUN: FileCheck %s --input-file %t.yaml --check-prefix=CHECK-DFS
9# CHECK-DFS: dfs-order: true
10
11# FDATA: 0 [unknown] 0 1 main 0 0 0
12*/
13int main() { return 0; }