1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc -verify-machineinstrs < %s | FileCheck %s 3 4target triple = "x86_64-unknown-linux-gnu" 5 6define void @quux() gc "statepoint-example" { 7; CHECK-LABEL: quux: 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 13; CHECK-NEXT: .Ltmp0: 14; CHECK-NEXT: popq %rax 15; CHECK-NEXT: .cfi_def_cfa_offset 8 16; CHECK-NEXT: retq 17bb1: 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) 20 br label %bb2 21 22bb2: 23 %tmp5 = tail call ptr addrspace(1) @llvm.experimental.gc.result.p1(token %tmp) 24 ret void 25} 26 27declare ptr addrspace(1) @wombat(ptr addrspace(1), i32) 28 29; Function Attrs: nounwind readnone 30declare ptr addrspace(1) @llvm.experimental.gc.result.p1(token) #0 31declare token @llvm.experimental.gc.statepoint.p0(i64, i32, ptr addrspace(1) (ptr addrspace(1), i32)*, i32, i32, ...) 32attributes #0 = { nounwind readnone } 33