1 ; RUN: echo "!foo" > %t.order.txt
2 ; RUN: llc < %s -mtriple=x86_64-pc-linux -basic-block-sections=%t.order.txt | FileCheck --check-prefix=SOURCE-DRIFT %s
3 ; RUN: llc < %s -mtriple=x86_64-pc-linux -basic-block-sections=%t.order.txt -bbsections-detect-source-drift=false | FileCheck --check-prefix=HASH-CHECK-DISABLED %s
5 define dso_local i32 @foo(i1 zeroext %0, i1 zeroext %1) !annotation !1 {
6 br i1 %0, label %5, label %3
9 %4 = select i1 %1, i32 2, i32 0
16 !1 = !{!"instr_prof_hash_mismatch"}
18 ; SOURCE-DRIFT-NOT: .section .text{{.*}}.foo
19 ; HASH-CHECK-DISABLED: .section .text.hot.foo