mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-13 08:26:02 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94804 91177308-0d34-0410-b5e6-96231b3b80d8
33 lines
578 B
LLVM
33 lines
578 B
LLVM
; RUN: llc < %s -march=x86 -asm-verbose=false | FileCheck %s
|
|
; RUN: llc < %s -march=x86-64 -asm-verbose=false | FileCheck %s
|
|
|
|
define void @t1(i32 %x) nounwind ssp {
|
|
entry:
|
|
; CHECK: t1:
|
|
; CHECK: jmp {{_?}}foo
|
|
tail call void @foo() nounwind
|
|
ret void
|
|
}
|
|
|
|
declare void @foo()
|
|
|
|
define void @t2() nounwind ssp {
|
|
entry:
|
|
; CHECK: t2:
|
|
; CHECK: jmp {{_?}}foo2
|
|
%0 = tail call i32 @foo2() nounwind
|
|
ret void
|
|
}
|
|
|
|
declare i32 @foo2()
|
|
|
|
define void @t3() nounwind ssp {
|
|
entry:
|
|
; CHECK: t3:
|
|
; CHECK: jmp {{_?}}foo3
|
|
%0 = tail call i32 @foo3() nounwind
|
|
ret void
|
|
}
|
|
|
|
declare i32 @foo3()
|