Home | History | Annotate | Download | only in X86
      1 ; RUN: llc %s -o - | FileCheck %s
      2 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
      3 target triple = "x86_64-unknown-linux-gnu"
      4 
      5 define void @test1() #0 {
      6 entry:
      7   ret void
      8 
      9 ; CHECK-LABEL: @test1
     10 ; CHECK: callq __fentry__
     11 ; CHECK-NOT: mcount
     12 ; CHECK: retq
     13 }
     14 
     15 define void @test2() #1 {
     16 entry:
     17   br label %bb1
     18 bb1:
     19   call void @address_taken(i64 ptrtoint (i8* blockaddress(@test2, %bb1) to i64), i32 512)
     20   ret void
     21 
     22 ; CHECK-LABEL: @test2
     23 ; CHECK: callq __fentry__
     24 ; CHECK-NOT: mcount
     25 ; CHECK: retq
     26 }
     27 
     28 declare void @address_taken(i64, i32) local_unnamed_addr
     29 attributes #0 = { "fentry-call"="true" }
     30 attributes #1 = { inlinehint minsize noredzone nounwind optsize sspstrong "fentry-call"="true" }
     31