Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/X86/GC/ocaml-gc-assert.ll @ 0:95c75e76d11b LLVM3.4
LLVM 3.4
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 13:56:28 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:95c75e76d11b |
---|---|
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s | |
2 ; PR3168 | |
3 | |
4 ; CHECK-LABEL: append | |
5 | |
6 define i32* @append() gc "ocaml" { | |
7 entry: | |
8 switch i32 0, label %L2 [i32 0, label %L1] | |
9 L1: | |
10 %var8 = alloca i8* | |
11 call void @llvm.gcroot(i8** %var8,i8* null) | |
12 br label %L3 | |
13 L2: | |
14 call ccc void @oread_runtime_casenotcovered() | |
15 unreachable | |
16 L3: | |
17 ret i32* null | |
18 } | |
19 | |
20 declare ccc void @oread_runtime_casenotcovered() | |
21 declare void @llvm.gcroot(i8**,i8*) |