You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
bdwgc
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm-project
clang
clang-tools-extra
compiler-rt
eng
libcxx
libcxxabi
libunwind
lld
lldb
llvm
bindings
cmake
docs
examples
include
lib
projects
resources
runtimes
scripts
test
Analysis
Assembler
Bindings
Bitcode
BugPoint
CodeGen
DebugInfo
Examples
ExecutionEngine
Feature
OperandBundles
NamedMDNode.ll
NamedMDNode2.ll
README.txt
alias2.ll
aliases.ll
alignment.ll
attributes.ll
basictest.ll
callingconventions.ll
calltest.ll
casttest.ll
cfgstructures.ll
cold.ll
comdat.ll
const_pv.ll
constexpr.ll
constpointer.ll
escaped_label.ll
exception.ll
float.ll
fold-fpcast.ll
forwardreftest.ll
fp-intrinsics.ll
global_pv.ll
global_section.ll
globalredefinition3.ll
globalvars.ll
indirectcall.ll
indirectcall2.ll
inlineasm.ll
instructions.ll
intrinsic-noduplicate.ll
intrinsics.ll
load_module.ll
md_on_instruction.ll
memorymarkers.ll
metadata.ll
minsize_attr.ll
newcasts.ll
optnone-llc.ll
optnone-opt.ll
optnone.ll
packed.ll
packed_struct.ll
paramattrs.ll
ppcld.ll
prefixdata.ll
prologuedata.ll
properties.ll
prototype.ll
recursivetype.ll
seh-nounwind.ll
simplecalltest.ll
small.ll
smallest.ll
sparcld.ll
strip_names.ll
terminators.ll
testalloca.ll
testconstants.ll
testlogical.ll
testtype.ll
testvarargs.ll
undefined.ll
unreachable.ll
varargs.ll
varargs_new.ll
vector-cast-constant-exprs.ll
weak_constant.ll
weirdnames.ll
x86ld.ll
FileCheck
Instrumentation
Integer
JitListener
LTO
Linker
MC
Object
ObjectYAML
Other
SafepointIRVerifier
SymbolRewriter
TableGen
ThinLTO
Transforms
Unit
Verifier
YAMLParser
tools
.clang-format
CMakeLists.txt
TestRunner.sh
lit.cfg.py
lit.site.cfg.py.in
tools
unittests
utils
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in
version.txt.in
nuget
openmp
polly
Directory.Build.props
Directory.Build.targets
NuGet.config
azure-pipelines.yml
build.cmd
build.sh
dir.common.props
global.json
llvm.proj
mxe-Win64.cmake.in
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
llvm
m4
man
mcs
mono
msvc
netcore
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
32 lines
1.1 KiB
LLVM
32 lines
1.1 KiB
LLVM
![]() |
; RUN: llvm-as < %s | llvm-dis > %t1.ll
|
||
|
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
|
||
|
; RUN: diff %t1.ll %t2.ll
|
||
|
|
||
|
; This testcase is primarily used for testing that global values can be used as
|
||
|
; constant pointer initializers. This is tricky because they can be forward
|
||
|
; declared and involves an icky bytecode encoding. There is no meaningful
|
||
|
; optimization that can be performed on this file, it is just here to test
|
||
|
; assembly and disassembly.
|
||
|
;
|
||
|
|
||
|
|
||
|
@t3 = global i32* @t1 ;; Forward reference
|
||
|
@t1 = global i32 4
|
||
|
@t4 = global i32** @t3 ;; reference to reference
|
||
|
|
||
|
@t2 = global i32* @t1
|
||
|
|
||
|
@0 = global float * @2 ;; Forward numeric reference
|
||
|
@1 = global float * @2 ;; Duplicate forward numeric reference
|
||
|
@2 = global float 0.0
|
||
|
@3 = global float * @2 ;; Numeric reference
|
||
|
|
||
|
|
||
|
@fptr = global void() * @f ;; Forward ref method defn
|
||
|
declare void @f() ;; External method
|
||
|
|
||
|
@sptr1 = global [11x i8]* @somestr ;; Forward ref to a constant
|
||
|
@somestr = constant [11x i8] c"hello world"
|
||
|
@sptr2 = global [11x i8]* @somestr
|
||
|
|