Amir Ayupov | 1e0d08e | 2023-07-25 04:32:44 | [diff] [blame] | 1 | /* 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 Ayupov | ab14eb2 | 2023-11-27 18:53:18 | [diff] [blame] | 4 | # RUN: llvm-bolt %t.exe -o %t.null -data %t.fdata -w %t.yaml |
Amir Ayupov | 1e0d08e | 2023-07-25 04:32:44 | [diff] [blame] | 5 | # RUN: FileCheck %s --input-file %t.yaml --check-prefix=CHECK-BINARY |
| 6 | # CHECK-BINARY: dfs-order: false |
Amir Ayupov | ab14eb2 | 2023-11-27 18:53:18 | [diff] [blame] | 7 | # RUN: llvm-bolt %t.exe -o %t.null -data %t.fdata -w %t.yaml --profile-use-dfs |
Amir Ayupov | 1e0d08e | 2023-07-25 04:32:44 | [diff] [blame] | 8 | # 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 | */ |
| 13 | int main() { return 0; } |