diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:17:27 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:17:27 +0000 |
| commit | 67c32a98315f785a9ec9d531c1f571a0196c7463 (patch) | |
| tree | 4abb9cbeecc7901726dd0b4a37369596c852e9ef /test/tools/gold/Inputs | |
| parent | 9f61947910e6ab40de38e6b4034751ef1513200f (diff) | |
Vendor import of llvm RELEASE_360/rc1 tag r226102 (effectively, 3.6.0 RC1):vendor/llvm/llvm-release_360-r226102
Diffstat (limited to 'test/tools/gold/Inputs')
| -rw-r--r-- | test/tools/gold/Inputs/alias-1.ll | 1 | ||||
| -rw-r--r-- | test/tools/gold/Inputs/bcsection.s | 2 | ||||
| -rw-r--r-- | test/tools/gold/Inputs/comdat.ll | 25 | ||||
| -rw-r--r-- | test/tools/gold/Inputs/common.ll | 1 | ||||
| -rw-r--r-- | test/tools/gold/Inputs/invalid.bc | bin | 0 -> 272 bytes | |||
| -rw-r--r-- | test/tools/gold/Inputs/linker-script.export | 5 | ||||
| -rw-r--r-- | test/tools/gold/Inputs/linkonce-weak.ll | 3 | ||||
| -rw-r--r-- | test/tools/gold/Inputs/pr19901-1.ll | 4 | ||||
| -rw-r--r-- | test/tools/gold/Inputs/weak.ll | 2 |
9 files changed, 43 insertions, 0 deletions
diff --git a/test/tools/gold/Inputs/alias-1.ll b/test/tools/gold/Inputs/alias-1.ll new file mode 100644 index 000000000000..96183aa9537c --- /dev/null +++ b/test/tools/gold/Inputs/alias-1.ll @@ -0,0 +1 @@ +@a = global i32 42 diff --git a/test/tools/gold/Inputs/bcsection.s b/test/tools/gold/Inputs/bcsection.s new file mode 100644 index 000000000000..ede1e5c532dd --- /dev/null +++ b/test/tools/gold/Inputs/bcsection.s @@ -0,0 +1,2 @@ +.section .llvmbc +.incbin "bcsection.bc" diff --git a/test/tools/gold/Inputs/comdat.ll b/test/tools/gold/Inputs/comdat.ll new file mode 100644 index 000000000000..464aefa49dc1 --- /dev/null +++ b/test/tools/gold/Inputs/comdat.ll @@ -0,0 +1,25 @@ +$c2 = comdat any +$c1 = comdat any + +; This is only present in this file. The linker will keep $c1 from the first +; file and this will be undefined. +@will_be_undefined = global i32 1, comdat($c1) + +@v1 = weak_odr global i32 41, comdat($c2) +define weak_odr protected i32 @f1(i8* %this) comdat($c2) { +bb20: + store i8* %this, i8** null + br label %bb21 +bb21: + ret i32 41 +} + +@r21 = global i32* @v1 +@r22 = global i32(i8*)* @f1 + +@a21 = alias i32* @v1 +@a22 = alias bitcast (i32* @v1 to i16*) + +@a23 = alias i32(i8*)* @f1 +@a24 = alias bitcast (i32(i8*)* @f1 to i16*) +@a25 = alias i16* @a24 diff --git a/test/tools/gold/Inputs/common.ll b/test/tools/gold/Inputs/common.ll new file mode 100644 index 000000000000..46f199e167af --- /dev/null +++ b/test/tools/gold/Inputs/common.ll @@ -0,0 +1 @@ +@a = common global i16 0, align 4 diff --git a/test/tools/gold/Inputs/invalid.bc b/test/tools/gold/Inputs/invalid.bc Binary files differnew file mode 100644 index 000000000000..2e7ca8d2e105 --- /dev/null +++ b/test/tools/gold/Inputs/invalid.bc diff --git a/test/tools/gold/Inputs/linker-script.export b/test/tools/gold/Inputs/linker-script.export new file mode 100644 index 000000000000..2062a081ffe2 --- /dev/null +++ b/test/tools/gold/Inputs/linker-script.export @@ -0,0 +1,5 @@ +{ + global: + f; + local: *; +}; diff --git a/test/tools/gold/Inputs/linkonce-weak.ll b/test/tools/gold/Inputs/linkonce-weak.ll new file mode 100644 index 000000000000..f42af8faa844 --- /dev/null +++ b/test/tools/gold/Inputs/linkonce-weak.ll @@ -0,0 +1,3 @@ +define weak_odr void @f() { + ret void +} diff --git a/test/tools/gold/Inputs/pr19901-1.ll b/test/tools/gold/Inputs/pr19901-1.ll new file mode 100644 index 000000000000..2f7153268aca --- /dev/null +++ b/test/tools/gold/Inputs/pr19901-1.ll @@ -0,0 +1,4 @@ +target triple = "x86_64-unknown-linux-gnu" +define linkonce_odr hidden void @f() { + ret void +} diff --git a/test/tools/gold/Inputs/weak.ll b/test/tools/gold/Inputs/weak.ll new file mode 100644 index 000000000000..53b1d1650d1b --- /dev/null +++ b/test/tools/gold/Inputs/weak.ll @@ -0,0 +1,2 @@ +@a = weak global i32 41 +@c = global i32* @a |
