[TwoAddressInstructionPass] When looking for a 3 addr conversion after commuting...
[oota-llvm.git] / test / CodeGen / X86 / eh-nolandingpads.ll
1 ; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck %s
2 ; Test that we emit functions with explicitly specified personality,
3 ; even if no landing pads are left.
4
5 declare i32 @__my_personality_v0(...)
6 declare void @might_throw()
7
8 define i32 @foo() personality i32 (...)* @__my_personality_v0 {
9 ; CHECK: .cfi_personality 3, __my_personality_v0
10     call void @might_throw()
11     ret i32 0
12 }