[gold/LTO] Add test case for r281134
authorTeresa Johnson <tejohnson@google.com>
Sat, 10 Sep 2016 06:18:17 +0000 (06:18 +0000)
committerTeresa Johnson <tejohnson@google.com>
Sat, 10 Sep 2016 06:18:17 +0000 (06:18 +0000)
Add test case that was supposed to go in with r281134.

llvm-svn: 281135

llvm/test/tools/gold/X86/module_asm.ll [new file with mode: 0644]

diff --git a/llvm/test/tools/gold/X86/module_asm.ll b/llvm/test/tools/gold/X86/module_asm.ll
new file mode 100644 (file)
index 0000000..83c8905
--- /dev/null
@@ -0,0 +1,10 @@
+; RUN: llvm-as %s -o %t.o
+; RUN: %gold -shared -m elf_x86_64 -o %t2 -plugin %llvmshlibdir/LLVMgold.so %t.o
+; RUN: nm %t2 | FileCheck %s
+; CHECK: PrepareAndDispatch
+
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+module asm "call PrepareAndDispatch@plt"
+module asm "\09"