1 ; RUN: llvm-profgen --perfscript=%s --binary=%S/Inputs/inline-cs-pseudoprobe.perfbin --output=%t --show-disassembly-only | FileCheck %s
4 ; CHECK-NEXT: 201750: pushq %rbp
5 ; CHECK-NEXT: 201751: movq %rsp, %rbp
6 ; CHECK-NEXT: 201754: imull $2863311531, %edi, %eax
7 ; CHECK-NEXT: 20175a: addl $715827882, %eax
8 ; CHECK-NEXT: 20175f: movl %esi, %ecx
9 ; CHECK-NEXT: 201761: negl %ecx
10 ; CHECK-NEXT: 201763: cmpl $1431655765, %eax
11 ; CHECK-NEXT: 201768: cmovbl %esi, %ecx
12 ; CHECK-NEXT: 20176b: leal (%rcx,%rdi), %eax
13 ; CHECK-NEXT: 20176e: popq %rbp
14 ; CHECK-NEXT: 20176f: retq
17 ; CHECK-NEXT 201770: movl $1, %ecx
18 ; CHECK-NEXT 201775: movl $2863311531, %r8d
19 ; CHECK-NEXT 20177b: jmp 0x78e
20 ; CHECK-NEXT 20177d: nopl (%rax)
21 ; CHECK-NEXT 201780: addl $30, %esi
22 ; CHECK-NEXT 201783: addl $1, %ecx
23 ; CHECK-NEXT 201786: cmpl $16000001, %ecx
26 ; clang -O3 -fuse-ld=lld -fpseudo-probe-for-profiling
27 ; -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Xclang -mdisable-tail-calls
32 int bar(int x, int y) {
41 while (i++ < 4000 * 4000)
42 if (i % 91) s = bar(i, s); else s += 30;
43 printf("sum is %d\n", s);