[InstCombine] Signed saturation patterns
[llvm-core.git] / test / CodeGen / PowerPC / eh-dwarf-cfa.ll
blobb8f6a59682340c9e4455c1fa05f6e34e603fdef2
1 ; RUN: llc < %s | FileCheck %s
2 target datalayout = "e-m:e-i64:64-n32:64"
3 target triple = "powerpc64le-unknown-linux-gnu"
5 define void @_Z1fv() #0 {
6 entry:
7   %0 = call i8* @llvm.eh.dwarf.cfa(i32 0)
8   call void @_Z1gPv(i8* %0)
9   ret void
11 ; CHECK-LABEL: @_Z1fv
12 ; CHECK: stdu 1, -[[SS:[0-9]+]](1)
13 ; CHECK: .cfi_def_cfa_offset [[SS]]
14 ; CHECK: mr 31, 1
15 ; CHECK: .cfi_def_cfa_register r31
16 ; CHECK: addi 3, 31, [[SS]]
17 ; CHECK-NEXT: bl _Z1gPv
18 ; CHECK: blr
21 declare void @_Z1gPv(i8*)
23 ; Function Attrs: nounwind
24 declare i8* @llvm.eh.dwarf.cfa(i32) #1
26 attributes #0 = { "no-frame-pointer-elim"="true" "target-cpu"="ppc64le" }
27 attributes #1 = { nounwind }