1 ; RUN: llc -verify-machineinstrs -relocation-model=pic %s -o - | FileCheck %s
2 target datalayout = "e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128"
3 target triple = "i386-apple-macosx"
5 ; Check that the register used as base pointer for setjmp
6 ; is properly initialized.
7 ; The test used to fail with the machine verifier complaining
8 ; that the global base pointer is not initialized.
12 ; CHECK: calll [[BP_SETUP_LABEL:L[$0-9a-zA-Z_-]+]]
13 ; CHECK: [[BP_SETUP_LABEL]]:
14 ; CHECK-NEXT: popl [[BP:%[a-z]+]]
16 ; CHECK: leal [[BLOCK_ADDR:LBB[$0-9a-zA-Z_-]+]]-[[BP_SETUP_LABEL]]([[BP]]),
17 define i32 @test(ptr %tmp) {
19 %tmp9 = call i32 @llvm.eh.sjlj.setjmp(ptr %tmp)
23 declare i32 @llvm.eh.sjlj.setjmp(ptr)