1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs < %s | FileCheck %s
4 target triple = "x86_64-unknown-linux-gnu"
6 define void @quux() gc "statepoint-example" {
8 ; CHECK: # %bb.0: # %bb1
9 ; CHECK-NEXT: pushq %rax
10 ; CHECK-NEXT: .cfi_def_cfa_offset 16
11 ; CHECK-NEXT: movl $4, %esi
12 ; CHECK-NEXT: callq wombat@PLT
14 ; CHECK-NEXT: popq %rax
15 ; CHECK-NEXT: .cfi_def_cfa_offset 8
18 %tmp = call token (i64, i32, ptr addrspace(1) (ptr addrspace(1), i32)*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0(i64 2882400000, i32 0, ptr addrspace(1) (ptr addrspace(1), i32)* nonnull elementtype(ptr addrspace(1) (ptr addrspace(1), i32)) @wombat, i32 2, i32 0, ptr addrspace(1) undef, i32 4, i32 0, i32 0) [ "gc-live"() ]
19 %tmp2 = tail call ptr addrspace(1) @llvm.experimental.gc.result.p1(token %tmp)
23 %tmp5 = tail call ptr addrspace(1) @llvm.experimental.gc.result.p1(token %tmp)
27 declare ptr addrspace(1) @wombat(ptr addrspace(1), i32)
29 ; Function Attrs: nounwind readnone
30 declare ptr addrspace(1) @llvm.experimental.gc.result.p1(token) #0
31 declare token @llvm.experimental.gc.statepoint.p0(i64, i32, ptr addrspace(1) (ptr addrspace(1), i32)*, i32, i32, ...)
32 attributes #0 = { nounwind readnone }