brintos

brintos / llvm-project-archived public Read only

0
0
Text · 726 B · 221f052 Raw
31 lines · plain
1; RUN: llc %s -o - -verify-machineinstrs | FileCheck %s2target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"3target triple = "x86_64-unknown-linux-gnu"4 5define void @test1() #0 {6entry:7  ret void8 9; CHECK-LABEL: @test110; CHECK: callq __fentry__11; CHECK-NOT: mcount12; CHECK: retq13}14 15define void @test2() #1 {16entry:17  br label %bb118bb1:19  call void @address_taken(i64 ptrtoint (ptr blockaddress(@test2, %bb1) to i64), i32 512)20  ret void21 22; CHECK-LABEL: @test223; CHECK: callq __fentry__24; CHECK-NOT: mcount25; CHECK: retq26}27 28declare void @address_taken(i64, i32) local_unnamed_addr29attributes #0 = { "fentry-call"="true" }30attributes #1 = { inlinehint minsize noredzone nounwind optsize sspstrong "fentry-call"="true" }31