1 ; RUN: opt %s -S -place-safepoints | FileCheck %s
\r
3 ; Basic test to make sure that safepoints are placed
\r
8 define void @test_simple_call() gc "coreclr" {
\r
9 ; CHECK-LABEL: test_simple_call
\r
13 ; CHECK-LABEL: other
\r
15 ; CHECK-NOT: gc.result
\r
20 ; This function is inlined when inserting a poll. To avoid recursive
\r
21 ; issues, make sure we don't place safepoints in it.
\r
22 declare void @do_safepoint()
\r
23 define void @gc.safepoint_poll() {
\r
24 ; CHECK-LABEL: gc.safepoint_poll
\r
25 ; CHECK-LABEL: entry
\r
26 ; CHECK-NEXT: do_safepoint
\r
27 ; CHECK-NEXT: ret void
\r
29 call void @do_safepoint()
\r