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