llvm-project/llvm/test/CodeGen/X86/GC/ocaml-gc-assert.ll
Nikita Popov 2f448bf509 [X86] Migrate tests to use opaque pointers (NFC)
Test updates were performed using:
https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34

These are only the test updates where the test passed without
further modification (which is almost all of them, as the backend
is largely pointer-type agnostic).
2022-06-22 14:38:25 +02:00

22 lines
436 B
LLVM

; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
; PR3168
; CHECK-LABEL: append
define ptr @append() gc "ocaml" {
entry:
switch i32 0, label %L2 [i32 0, label %L1]
L1:
%var8 = alloca ptr
call void @llvm.gcroot(ptr %var8,ptr null)
br label %L3
L2:
call ccc void @oread_runtime_casenotcovered()
unreachable
L3:
ret ptr null
}
declare ccc void @oread_runtime_casenotcovered()
declare void @llvm.gcroot(ptr,ptr)