1 ; RUN: opt < %s -S -rewrite-statepoints-for-gc | FileCheck %s
2 ; RUN: opt < %s -S -passes=rewrite-statepoints-for-gc | FileCheck %s
4 ; Basic test to make sure that safepoints are placed
9 define void @test_simple_call() gc "coreclr" {
10 ; CHECK-LABEL: test_simple_call
16 ; CHECK-NOT: gc.result
21 ; This function is inlined when inserting a poll. To avoid recursive
22 ; issues, make sure we don't place safepoints in it.
23 declare void @do_safepoint()
24 define void @gc.safepoint_poll() {
25 ; CHECK-LABEL: gc.safepoint_poll
27 ; CHECK-NEXT: do_safepoint
28 ; CHECK-NEXT: ret void
30 call void @do_safepoint()