xref: /llvm-project/llvm/test/MC/AsmParser/function_hot_attr.ll (revision 3733463dbb58a29892be3872bd32f93cb9af492c)
1; Test hot function attribute
2; RUN: llc < %s | FileCheck %s
3target triple = "x86_64-unknown-linux-gnu"
4
5; Function Attrs: hot noinline norecurse nounwind readnone uwtable
6define dso_local i32 @hot4() #0 {
7entry:
8  ret i32 1
9}
10; CHECK: .section        .text.hot.,"ax",@progbits
11; CHECK: .globl  hot4
12
13attributes #0 = { hot noinline norecurse nounwind readnone uwtable }
14