From 027d7a09943e19d8cf908fc382404bb2935f42a8 Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Sat, 10 Sep 2016 06:18:17 +0000 Subject: [PATCH] [gold/LTO] Add test case for r281134 Add test case that was supposed to go in with r281134. llvm-svn: 281135 --- llvm/test/tools/gold/X86/module_asm.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 llvm/test/tools/gold/X86/module_asm.ll diff --git a/llvm/test/tools/gold/X86/module_asm.ll b/llvm/test/tools/gold/X86/module_asm.ll new file mode 100644 index 0000000..83c8905 --- /dev/null +++ b/llvm/test/tools/gold/X86/module_asm.ll @@ -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" -- 2.7.4