[llvm-commits] [llvm] r157797 - /llvm/trunk/test/CodeGen/X86/tailcall-64.ll

Chris Lattner sabre at nondot.org
Thu May 31 22:03:31 PDT 2012


Author: lattner
Date: Fri Jun  1 00:03:31 2012
New Revision: 157797

URL: http://llvm.org/viewvc/llvm-project?rev=157797&view=rev
Log:
add some simple 64-bit tail call tests.

Added:
    llvm/trunk/test/CodeGen/X86/tailcall-64.ll

Added: llvm/trunk/test/CodeGen/X86/tailcall-64.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/tailcall-64.ll?rev=157797&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/tailcall-64.ll (added)
+++ llvm/trunk/test/CodeGen/X86/tailcall-64.ll Fri Jun  1 00:03:31 2012
@@ -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





More information about the llvm-commits mailing list