1 ; RUN: llc -verify-machineinstrs < %s | FileCheck %s
3 ; Without removal of duplicate entries, the size is 62 lines
4 ; CHECK: .section .llvm_stackmaps,{{.*$}}
5 ; CHECK-NEXT:{{(.+$[[:space:]]){48}[[:space:]]}}
8 target triple = "x86_64-pc-linux-gnu"
12 define i1 @test1(ptr addrspace(1) %arg) gc "statepoint-example" {
14 %safepoint_token = call token (i64, i32, ptr, i32, i32, ...) @llvm.experimental.gc.statepoint.p0(i64 0, i32 0, ptr elementtype(void ()) @func, i32 0, i32 0, i32 0, i32 0) ["gc-live"(ptr addrspace(1) %arg)]
15 %reloc1 = call ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token %safepoint_token, i32 0, i32 0)
16 %reloc2 = call ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token %safepoint_token, i32 0, i32 0)
17 %cmp1 = icmp eq ptr addrspace(1) %reloc1, null
18 %cmp2 = icmp eq ptr addrspace(1) %reloc2, null
19 %cmp = and i1 %cmp1, %cmp2
23 declare token @llvm.experimental.gc.statepoint.p0(i64, i32, ptr, i32, i32, ...)
24 declare ptr addrspace(1) @llvm.experimental.gc.relocate.p1(token, i32, i32)