22 lines · plain
1; RUN: echo "v1" > %t2; RUN: echo "f foo" >> %t3; RUN: echo "c 0" >> %t4; RUN: llc < %s -mtriple=x86_64-pc-linux -basic-block-sections=%t | FileCheck --check-prefix=SOURCE-DRIFT %s5; RUN: llc < %s -mtriple=x86_64-pc-linux -basic-block-sections=%t -bbsections-detect-source-drift=false | FileCheck --check-prefix=HASH-CHECK-DISABLED %s6 7define dso_local i32 @foo(i1 zeroext %0, i1 zeroext %1) !annotation !1 {8 br i1 %0, label %5, label %39 103: ; preds = %211 %4 = select i1 %1, i32 2, i32 012 ret i32 %413 145: ; preds = %215 ret i32 116}17 18!1 = !{!"instr_prof_hash_mismatch"}19 20; SOURCE-DRIFT-NOT: .section .text{{.*}}.foo21; HASH-CHECK-DISABLED: .section .text.hot.foo22