llvm-6502/test/CodeGen/AArch64/regress-tail-livereg.ll
Tim Northover 7bc8414ee9 Add explicit triples to AArch64 tests
Only Linux is supported at the moment, and other platforms quickly fault. As a
result these tests would fail on non-Linux hosts. It may be worth making the
tests more generic again as more platforms are supported.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174170 91177308-0d34-0410-b5e6-96231b3b80d8
2013-02-01 11:40:47 +00:00

19 lines
568 B
LLVM

; RUN: llc -verify-machineinstrs -mtriple=aarch64-none-linux-gnu < %s | FileCheck %s
@var = global void()* zeroinitializer
declare void @bar()
define void @foo() {
; CHECK: 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
}