mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
1a8adcb569
Another batch with no code changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206381 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
659 B
LLVM
21 lines
659 B
LLVM
; RUN: llc -verify-machineinstrs -mtriple=aarch64-none-linux-gnu < %s | FileCheck %s
|
|
; RUN: llc -verify-machineinstrs -mtriple=arm64-apple-ios7.0 -o - %s | FileCheck %s
|
|
@var = global void()* zeroinitializer
|
|
|
|
declare void @bar()
|
|
|
|
define void @foo() {
|
|
; CHECK-LABEL: foo:
|
|
%func = load void()** @var
|
|
|
|
; Calling a function encourages @foo to use a callee-saved register,
|
|
; which makes it a natural choice for the tail call itself. But we don't
|
|
; want that: the final "br xN" has to use a temporary or argument
|
|
; register.
|
|
call void @bar()
|
|
|
|
tail call void %func()
|
|
; CHECK: br {{x([0-79]|1[0-8])}}
|
|
ret void
|
|
}
|