1 ; RUN: llc -mtriple=i686-windows-msvc < %s | FileCheck %s
3 ; Mostly make sure that llvm.eh.recoverfp doesn't crash if the parent
4 ; function lacks a personality.
6 declare ptr @llvm.frameaddress(i32)
7 declare ptr @llvm.eh.recoverfp(ptr, ptr)
14 define internal i32 @"filt$main"() {
16 %ebp = tail call ptr @llvm.frameaddress(i32 1)
17 %parentfp = tail call ptr @llvm.eh.recoverfp(ptr @main, ptr %ebp)
18 %info.addr = getelementptr inbounds i8, ptr %ebp, i32 -20
19 %0 = load ptr, ptr %info.addr, align 4
20 %1 = load ptr, ptr %0, align 4
21 %2 = load i32, ptr %1, align 4
22 %matches = icmp eq i32 %2, u0xC0000005
23 %r = zext i1 %matches to i32
28 ; CHECK: xorl %eax, %eax