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 i8* @llvm.frameaddress(i32)
7 declare i8* @llvm.eh.recoverfp(i8*, i8*)
14 define internal i32 @"filt$main"() {
16 %ebp = tail call i8* @llvm.frameaddress(i32 1)
17 %parentfp = tail call i8* @llvm.eh.recoverfp(i8* bitcast (i32 ()* @main to i8*), i8* %ebp)
18 %info.addr = getelementptr inbounds i8, i8* %ebp, i32 -20
19 %0 = bitcast i8* %info.addr to i32***
20 %1 = load i32**, i32*** %0, align 4
21 %2 = load i32*, i32** %1, align 4
22 %3 = load i32, i32* %2, align 4
23 %matches = icmp eq i32 %3, u0xC0000005
24 %r = zext i1 %matches to i32
29 ; CHECK: xorl %eax, %eax