mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
Add tests for the various emit-llvm plugin options.
llvm-svn: 214102
This commit is contained in:
parent
ba2df7591d
commit
9fe0f5e71e
18
test/tools/gold/emit-llvm.ll
Normal file
18
test/tools/gold/emit-llvm.ll
Normal file
@ -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"
|
Loading…
Reference in New Issue
Block a user