You've already forked linux-packaging-mono
Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
parent
8016999e4d
commit
64ac736ec5
29
external/llvm/test/Transforms/GlobalSplit/nonlocal.ll
vendored
Normal file
29
external/llvm/test/Transforms/GlobalSplit/nonlocal.ll
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
; RUN: opt -S -globalsplit %s | FileCheck %s
|
||||
|
||||
target datalayout = "e-p:64:64"
|
||||
target triple = "x86_64-unknown-linux-gnu"
|
||||
|
||||
; CHECK: @global =
|
||||
@global = constant { [2 x i8* ()*], [1 x i8* ()*] } {
|
||||
[2 x i8* ()*] [i8* ()* @f, i8* ()* @g],
|
||||
[1 x i8* ()*] [i8* ()* @h]
|
||||
}
|
||||
|
||||
define i8* @f() {
|
||||
ret i8* bitcast (i8* ()** getelementptr ({ [2 x i8* ()*], [1 x i8* ()*] }, { [2 x i8* ()*], [1 x i8* ()*] }* @global, i32 0, inrange i32 0, i32 0) to i8*)
|
||||
}
|
||||
|
||||
define i8* @g() {
|
||||
ret i8* null
|
||||
}
|
||||
|
||||
define i8* @h() {
|
||||
ret i8* null
|
||||
}
|
||||
|
||||
define void @foo() {
|
||||
%p = call i1 @llvm.type.test(i8* null, metadata !"")
|
||||
ret void
|
||||
}
|
||||
|
||||
declare i1 @llvm.type.test(i8*, metadata) nounwind readnone
|
Reference in New Issue
Block a user