From 3ee48e0c0a09a36db6d2e568848c2a91a8c4a4d8 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 28 Jul 2014 17:37:25 +0000 Subject: [PATCH] Add tests for the various emit-llvm plugin options. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214102 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/tools/gold/emit-llvm.ll | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/tools/gold/emit-llvm.ll diff --git a/test/tools/gold/emit-llvm.ll b/test/tools/gold/emit-llvm.ll new file mode 100644 index 00000000000..ebf00036541 --- /dev/null +++ b/test/tools/gold/emit-llvm.ll @@ -0,0 +1,18 @@ +; RUN: llvm-as %s -o %t.o + +; RUN: ld -plugin %llvmshlibdir/LLVMgold.so \ +; RUN: --plugin-opt=emit-llvm \ +; RUN: -shared %t.o -o %t2.o +; RUN: llvm-dis %t2.o -o /dev/null + +; RUN: ld -plugin %llvmshlibdir/LLVMgold.so \ +; RUN: --plugin-opt=also-emit-llvm \ +; RUN: -shared %t.o -o %t3.o +; RUN: llvm-dis %t3.o.bc -o /dev/null + +; RUN: ld -plugin %llvmshlibdir/LLVMgold.so \ +; RUN: --plugin-opt=also-emit-llvm=%t4 \ +; RUN: -shared %t.o -o %t3.o +; RUN: llvm-dis %t4 -o /dev/null + +target triple = "x86_64-unknown-linux-gnu" -- 2.11.0