summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/gold/X86/Inputs
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/tools/gold/X86/Inputs')
-rw-r--r--llvm/test/tools/gold/X86/Inputs/alias-1.ll1
-rw-r--r--llvm/test/tools/gold/X86/Inputs/bcsection.s2
-rw-r--r--llvm/test/tools/gold/X86/Inputs/comdat.ll25
-rw-r--r--llvm/test/tools/gold/X86/Inputs/common.ll1
-rw-r--r--llvm/test/tools/gold/X86/Inputs/drop-debug.bcbin0 -> 1152 bytes
-rw-r--r--llvm/test/tools/gold/X86/Inputs/invalid.bcbin0 -> 272 bytes
-rw-r--r--llvm/test/tools/gold/X86/Inputs/linker-script.export5
-rw-r--r--llvm/test/tools/gold/X86/Inputs/linkonce-weak.ll3
-rw-r--r--llvm/test/tools/gold/X86/Inputs/pr19901-1.ll4
-rw-r--r--llvm/test/tools/gold/X86/Inputs/weak.ll2
10 files changed, 43 insertions, 0 deletions
diff --git a/llvm/test/tools/gold/X86/Inputs/alias-1.ll b/llvm/test/tools/gold/X86/Inputs/alias-1.ll
new file mode 100644
index 00000000000..96183aa9537
--- /dev/null
+++ b/llvm/test/tools/gold/X86/Inputs/alias-1.ll
@@ -0,0 +1 @@
+@a = global i32 42
diff --git a/llvm/test/tools/gold/X86/Inputs/bcsection.s b/llvm/test/tools/gold/X86/Inputs/bcsection.s
new file mode 100644
index 00000000000..ede1e5c532d
--- /dev/null
+++ b/llvm/test/tools/gold/X86/Inputs/bcsection.s
@@ -0,0 +1,2 @@
+.section .llvmbc
+.incbin "bcsection.bc"
diff --git a/llvm/test/tools/gold/X86/Inputs/comdat.ll b/llvm/test/tools/gold/X86/Inputs/comdat.ll
new file mode 100644
index 00000000000..464aefa49dc
--- /dev/null
+++ b/llvm/test/tools/gold/X86/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/llvm/test/tools/gold/X86/Inputs/common.ll b/llvm/test/tools/gold/X86/Inputs/common.ll
new file mode 100644
index 00000000000..46f199e167a
--- /dev/null
+++ b/llvm/test/tools/gold/X86/Inputs/common.ll
@@ -0,0 +1 @@
+@a = common global i16 0, align 4
diff --git a/llvm/test/tools/gold/X86/Inputs/drop-debug.bc b/llvm/test/tools/gold/X86/Inputs/drop-debug.bc
new file mode 100644
index 00000000000..f9c471f8e0d
--- /dev/null
+++ b/llvm/test/tools/gold/X86/Inputs/drop-debug.bc
Binary files differ
diff --git a/llvm/test/tools/gold/X86/Inputs/invalid.bc b/llvm/test/tools/gold/X86/Inputs/invalid.bc
new file mode 100644
index 00000000000..2e7ca8d2e10
--- /dev/null
+++ b/llvm/test/tools/gold/X86/Inputs/invalid.bc
Binary files differ
diff --git a/llvm/test/tools/gold/X86/Inputs/linker-script.export b/llvm/test/tools/gold/X86/Inputs/linker-script.export
new file mode 100644
index 00000000000..2062a081ffe
--- /dev/null
+++ b/llvm/test/tools/gold/X86/Inputs/linker-script.export
@@ -0,0 +1,5 @@
+{
+ global:
+ f;
+ local: *;
+};
diff --git a/llvm/test/tools/gold/X86/Inputs/linkonce-weak.ll b/llvm/test/tools/gold/X86/Inputs/linkonce-weak.ll
new file mode 100644
index 00000000000..f42af8faa84
--- /dev/null
+++ b/llvm/test/tools/gold/X86/Inputs/linkonce-weak.ll
@@ -0,0 +1,3 @@
+define weak_odr void @f() {
+ ret void
+}
diff --git a/llvm/test/tools/gold/X86/Inputs/pr19901-1.ll b/llvm/test/tools/gold/X86/Inputs/pr19901-1.ll
new file mode 100644
index 00000000000..2f7153268ac
--- /dev/null
+++ b/llvm/test/tools/gold/X86/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/llvm/test/tools/gold/X86/Inputs/weak.ll b/llvm/test/tools/gold/X86/Inputs/weak.ll
new file mode 100644
index 00000000000..53b1d1650d1
--- /dev/null
+++ b/llvm/test/tools/gold/X86/Inputs/weak.ll
@@ -0,0 +1,2 @@
+@a = weak global i32 41
+@c = global i32* @a
OpenPOWER on IntegriCloud