Home | History | Annotate | Download | only in PruneEH
      1 ; RUN: opt -S -prune-eh < %s | FileCheck %s
      2 ; RUN: opt -S -passes='function-attrs,function(simplify-cfg)' < %s | FileCheck %s
      3 
      4 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
      5 target triple = "x86_64-unknown-linux-gnu"
      6 
      7 define void @f() #0 {
      8 entry:
      9   call void asm sideeffect "ret\0A\09", "~{dirflag},~{fpsr},~{flags}"()
     10   unreachable
     11 }
     12 
     13 define i32 @g() {
     14 entry:
     15   call void @f()
     16   ret i32 42
     17 }
     18 
     19 ; CHECK-LABEL: define i32 @g()
     20 ; CHECK: ret i32 42
     21 
     22 attributes #0 = { naked noinline }
     23