diff options
author | Chris Lattner <sabre@nondot.org> | 2012-06-01 05:03:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-06-01 05:03:31 +0000 |
commit | 09c14c083676eb83867e349e2b549b22ab1ed5c3 (patch) | |
tree | 40371281a6b4e64247a0d7f99106274988c92494 /test/CodeGen/X86/tailcall-64.ll | |
parent | cd6015cc8a0da3981f298c2e92b145fe11e838e0 (diff) | |
download | external_llvm-09c14c083676eb83867e349e2b549b22ab1ed5c3.zip external_llvm-09c14c083676eb83867e349e2b549b22ab1ed5c3.tar.gz external_llvm-09c14c083676eb83867e349e2b549b22ab1ed5c3.tar.bz2 |
add some simple 64-bit tail call tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157797 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/tailcall-64.ll')
-rw-r--r-- | test/CodeGen/X86/tailcall-64.ll | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/CodeGen/X86/tailcall-64.ll b/test/CodeGen/X86/tailcall-64.ll new file mode 100644 index 0000000..569a67c --- /dev/null +++ b/test/CodeGen/X86/tailcall-64.ll @@ -0,0 +1,21 @@ +; RUN: llc < %s | FileCheck %s +target datalayout = "e-p:64:64:64-S128-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f128:128:128-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" +target triple = "x86_64-apple-darwin11.4.0" + +declare i64 @testi() + +define i64 @test_trivial() { + %A = tail call i64 @testi() + ret i64 %A +} +; CHECK: test_trivial: +; CHECK: jmp _testi ## TAILCALL + + +define i64 @test_noop_bitcast() { + %A = tail call i64 @testi() + %B = bitcast i64 %A to i64 + ret i64 %B +} +; CHECK: test_noop_bitcast: +; CHECK: jmp _testi ## TAILCALL |