mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 19:32:16 +00:00
e62e056766
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193914 91177308-0d34-0410-b5e6-96231b3b80d8
46 lines
951 B
LLVM
46 lines
951 B
LLVM
; RUN: llvm-as < %s >%t1
|
|
; RUN: llvm-lto -o %t2 -dso-symbol=foo1 -dso-symbol=foo2 -dso-symbol=foo3 \
|
|
; RUN: -dso-symbol=foo4 %t1 -disable-opt
|
|
; RUN: llvm-nm %t2 | FileCheck %s
|
|
|
|
; FIXME: llvm-nm is printing 'd' instead of 't' for foo1.
|
|
; XFAIL: powerpc64
|
|
|
|
; CHECK: t foo1
|
|
define linkonce_odr void @"\01foo1"() noinline {
|
|
ret void
|
|
}
|
|
|
|
; CHECK: {{W|T|S}} foo2
|
|
define linkonce_odr void @"\01foo2"() noinline {
|
|
ret void
|
|
}
|
|
|
|
; CHECK: t foo3
|
|
define linkonce_odr void @"\01foo3"() noinline {
|
|
ret void
|
|
}
|
|
|
|
; CHECK: {{W|T|S}} foo4
|
|
define linkonce_odr void @"\01foo4"() noinline {
|
|
ret void
|
|
}
|
|
|
|
declare void @f(void()*)
|
|
|
|
declare void @p()
|
|
|
|
define void @bar() {
|
|
bb0:
|
|
call void @"\01foo1"()
|
|
call void @f(void()* @"\01foo2")
|
|
invoke void @"\01foo3"() to label %bb1 unwind label %clean
|
|
bb1:
|
|
invoke void @f(void()* @"\01foo4") to label %bb2 unwind label %clean
|
|
bb2:
|
|
ret void
|
|
clean:
|
|
landingpad {i32, i32} personality void()* @p cleanup
|
|
ret void
|
|
}
|