40 lines · plain
1;; BB section test with basic block hashes.2 3;; basic block sections Profile with bb hashes4; RUN: echo 'v1' > %t5; RUN: echo 'f foo' >> %t6; RUN: echo 'g 0:10,1:9,2:1 1:8,3:8 2:2,3:2 3:11' >> %t7; RUN: echo 'c 0 2 3' >> %t8; RUN: echo 'h 0:64863A11B5CA0000 1:54F1E80D6B270006 2:54F1F4E66B270008 3:C8BC6041A2CB0009' >> %t9; RUN: llc < %s -O0 -mtriple=x86_64-pc-linux -function-sections -basic-block-sections=%t | FileCheck %s10;11define void @foo(i1 zeroext) nounwind {12 %2 = alloca i8, align 113 %3 = zext i1 %0 to i814 store i8 %3, ptr %2, align 115 %4 = load i8, ptr %2, align 116 %5 = trunc i8 %4 to i117 br i1 %5, label %6, label %818 196: ; preds = %120 %7 = call i32 @bar()21 br label %1022 238: ; preds = %124 %9 = call i32 @baz()25 br label %1026 2710: ; preds = %8, %628 ret void29}30 31declare i32 @bar() #132 33declare i32 @baz() #134 35; CHECK: .section .text.foo,"ax",@progbits36; CHECK: callq baz37; CHECK: retq38; CHECK: .section .text.split.foo,"ax",@progbits39; CHECK: callq bar40