diff options
Diffstat (limited to 'llvm/test/CodeGen/X86/wineh-no-ehpads.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/wineh-no-ehpads.ll | 20 | 
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/wineh-no-ehpads.ll b/llvm/test/CodeGen/X86/wineh-no-ehpads.ll new file mode 100644 index 00000000000..fd6798f2e08 --- /dev/null +++ b/llvm/test/CodeGen/X86/wineh-no-ehpads.ll @@ -0,0 +1,20 @@ +; RUN: llc < %s | FileCheck %s + +target triple = "x86_64-pc-windows-msvc" + +declare void @g() +declare i32 @__CxxFrameHandler3(...) + +define void @personality_no_ehpad() personality i32 (...)* @__CxxFrameHandler3 { +  call void @g() +  ret void +} + +; CHECK-LABEL: personality_no_ehpad: # @personality_no_ehpad +; CHECK-NOT: movq $-2, +; CHECK: callq g +; CHECK: nop +; CHECK: retq + +; Shouldn't have any LSDA either. +; CHECK-NOT: cppxdata  | 

