1; RUN: opt < %s -S -place-safepoints | FileCheck %s 2 3define void @test(i32, i8 addrspace(1)* %ptr) gc "statepoint-example" { 4; CHECK-LABEL: @test 5; CHECK-NEXT: llvm.memset 6; CHECK: do_safepoint 7; CHECK: @foo 8 call void @llvm.memset.p1i8.i64(i8 addrspace(1)* align 8 %ptr, i8 0, i64 24, i1 false) 9 call void @foo() 10 ret void 11} 12 13declare void @foo() 14declare void @llvm.memset.p1i8.i64(i8 addrspace(1)*, i8, i64, i1) 15 16declare void @do_safepoint() 17define void @gc.safepoint_poll() { 18 call void @do_safepoint() 19 ret void 20} 21