mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-12 07:37:34 +00:00
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
This commit is contained in:
parent
e7dac08dea
commit
3ee48e0c0a
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…
x
Reference in New Issue
Block a user