xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/wineh-no-ehpads.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-pc-windows-msvc"
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdeclare void @g()
6*9880d681SAndroid Build Coastguard Workerdeclare i32 @__CxxFrameHandler3(...)
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Workerdefine void @personality_no_ehpad() personality i32 (...)* @__CxxFrameHandler3 {
9*9880d681SAndroid Build Coastguard Worker  call void @g()
10*9880d681SAndroid Build Coastguard Worker  ret void
11*9880d681SAndroid Build Coastguard Worker}
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: personality_no_ehpad: # @personality_no_ehpad
14*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: movq $-2,
15*9880d681SAndroid Build Coastguard Worker; CHECK: callq g
16*9880d681SAndroid Build Coastguard Worker; CHECK: nop
17*9880d681SAndroid Build Coastguard Worker; CHECK: retq
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard Worker; Shouldn't have any LSDA either.
20*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: cppxdata
21