| ; RUN: llvm-profgen --perfscript=%S/Inputs/multi-load-segs.perfscript --binary=%S/Inputs/multi-load-segs.perfbin --output=%t --format=text |
| ; RUN: FileCheck %s --input-file %t |
| |
| ;; %S/Inputs/multi-load-segs.perfbin is an ELF image with two executable load segments. |
| ; running llvm-readelf -l %S/Inputs/multi-load-segs.perfbin gives: |
| ;; LOAD 0x000000 0x0000000000200000 0x0000000000200000 0x00075c 0x00075c R 0x1000 |
| ;; LOAD 0x000760 0x0000000000201760 0x0000000000201760 0x0004c0 0x0004c0 R E 0x1000 |
| ;; LOAD 0x000c20 0x0000000000202c20 0x0000000000202c20 0x0001f0 0x0001f0 RW 0x1000 |
| ;; LOAD 0x000e10 0x0000000000203e10 0x0000000000203e10 0x000040 0x000058 RW 0x1000 |
| ;; LOAD 0x200000 0x0000000000400000 0x0000000000400000 0x0005e8 0x0005e8 R E 0x200000 |
| |
| ; CHECK: [main:2 @ _Z10sort_arrayv:6 @ _Z11bubble_sortPii]:124:0 |
| ; CHECK-NEXT: 4: 31 |
| ; CHECK-NEXT: 5: 31 |
| ; CHECK-NEXT: 7: 31 |
| ; CHECK-NEXT: 8: 31 |
| ; CHECK-NEXT: !Attributes: 1 |