bpf: add missing lit.local.cfg
[oota-llvm.git] / test / CodeGen / PowerPC / retaddr2.ll
1 ; RUN: llc -mcpu=pwr7 < %s | FileCheck %s
2 target datalayout = "E-m:e-i64:64-n32:64"
3 target triple = "powerpc64-unknown-linux-gnu"
4
5 ; Function Attrs: nounwind readnone
6 define i8* @test1() #0 {
7 entry:
8   %0 = tail call i8* @llvm.returnaddress(i32 0)
9   ret i8* %0
10 }
11
12 ; CHECK-LABEL: @test1
13 ; CHECK: mflr 0
14 ; CHECK: std 0, 16(1)
15 ; FIXME: These next two lines don't both need to load the same value.
16 ; CHECK-DAG: ld 3, 16(1)
17 ; CHECK-DAG: ld 0, 16(1)
18 ; CHECK: mtlr 0
19 ; CHECK: blr
20
21 ; Function Attrs: nounwind readnone
22 declare i8* @llvm.returnaddress(i32) #0
23
24 attributes #0 = { nounwind readnone }
25