mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
d59fa04f04
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214311 91177308-0d34-0410-b5e6-96231b3b80d8
54 lines
1.1 KiB
LLVM
54 lines
1.1 KiB
LLVM
; 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 - | FileCheck %s
|
|
|
|
; 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"
|
|
|
|
; CHECK: define internal void @f1()
|
|
define hidden void @f1() {
|
|
ret void
|
|
}
|
|
|
|
; CHECK: define hidden void @f2()
|
|
define hidden void @f2() {
|
|
ret void
|
|
}
|
|
|
|
@llvm.used = appending global [1 x i8*] [ i8* bitcast (void ()* @f2 to i8*)]
|
|
|
|
; CHECK: define void @f3()
|
|
define void @f3() {
|
|
call void @f4()
|
|
ret void
|
|
}
|
|
|
|
; CHECK: define internal void @f4()
|
|
define linkonce_odr void @f4() {
|
|
ret void
|
|
}
|
|
|
|
; CHECK: define linkonce_odr void @f5()
|
|
define linkonce_odr void @f5() {
|
|
ret void
|
|
}
|
|
@g5 = global void()* @f5
|
|
|
|
; CHECK: define internal void @f6() unnamed_addr
|
|
define linkonce_odr void @f6() unnamed_addr {
|
|
ret void
|
|
}
|
|
@g6 = global void()* @f6
|