summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/funclet-layout.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/X86/funclet-layout.ll')
-rw-r--r--llvm/test/CodeGen/X86/funclet-layout.ll16
1 files changed, 5 insertions, 11 deletions
diff --git a/llvm/test/CodeGen/X86/funclet-layout.ll b/llvm/test/CodeGen/X86/funclet-layout.ll
index 72f60ea72d4..0942645cf5a 100644
--- a/llvm/test/CodeGen/X86/funclet-layout.ll
+++ b/llvm/test/CodeGen/X86/funclet-layout.ll
@@ -9,8 +9,6 @@ target triple = "x86_64-pc-windows-msvc"
@"\01??_7type_info@@6B@" = external constant i8*
@"\01??_R0H@8" = internal global %rtti.TypeDescriptor2 { i8** @"\01??_7type_info@@6B@", i8* null, [3 x i8] c".H\00" }
-declare void @llvm.trap()
-
define void @test1(i1 %B) personality i32 (...)* @__CxxFrameHandler3 {
entry:
invoke void @g()
@@ -33,7 +31,6 @@ try.cont:
ret void
unreachable:
- call void @llvm.trap()
unreachable
}
@@ -79,7 +76,6 @@ try.cont.5: ; preds = %try.cont
ret i32 0
unreachable: ; preds = %catch, %entry
- call void @llvm.trap()
unreachable
}
@@ -129,13 +125,11 @@ try.cont: ; preds = %entry
br i1 %V, label %exit_one, label %exit_two
exit_one:
- tail call void @g()
- call void @llvm.trap()
+ tail call void @exit(i32 0)
unreachable
exit_two:
- tail call void @g()
- call void @llvm.trap()
+ tail call void @exit(i32 0)
unreachable
}
@@ -144,7 +138,7 @@ exit_two:
; The entry funclet contains %entry and %try.cont
; CHECK: # %entry
; CHECK: # %try.cont
-; CHECK: callq g
+; CHECK: callq exit
; CHECK-NOT: # exit_one
; CHECK-NOT: # exit_two
; CHECK: ud2
@@ -152,12 +146,12 @@ exit_two:
; The catch(...) funclet contains %catch.2
; CHECK: # %catch.2{{$}}
; CHECK: callq exit
-; CHECK-NEXT: int3
+; CHECK: ud2
; The catch(int) funclet contains %catch
; CHECK: # %catch{{$}}
; CHECK: callq exit
-; CHECK-NEXT: int3
+; CHECK: ud2
declare void @exit(i32) noreturn nounwind
declare void @_CxxThrowException(i8*, %eh.ThrowInfo*)
OpenPOWER on IntegriCloud