brintos

brintos / llvm-project-archived public Read only

0
0
Text · 567 B · 7b90903 Raw
25 lines · plain
1; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s2target datalayout = "E-m:e-i64:64-n32:64"3target triple = "powerpc64-unknown-linux-gnu"4 5; Function Attrs: nounwind readnone6define ptr @test1() #0 {7entry:8  %0 = tail call ptr @llvm.returnaddress(i32 0)9  ret ptr %010}11 12; CHECK-LABEL: @test113; CHECK: mflr {{[0-9]+}}14; CHECK: std 0, 64(1)15; CHECK-DAG: ld 3, 64(1)16; CHECK-DAG: ld [[SR:[0-9]+]], 16(1)17; CHECK: mtlr [[SR]]18; CHECK: blr19 20; Function Attrs: nounwind readnone21declare ptr @llvm.returnaddress(i32) #022 23attributes #0 = { nounwind readnone }24 25