blob: 569a67c25302e1ffe8636168d43282fdb4fe1477 [file] [log] [blame]
Chris Lattner09c14c02012-06-01 05:03:31 +00001; RUN: llc < %s | FileCheck %s
2target 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"
3target triple = "x86_64-apple-darwin11.4.0"
4
5declare i64 @testi()
6
7define i64 @test_trivial() {
8 %A = tail call i64 @testi()
9 ret i64 %A
10}
11; CHECK: test_trivial:
12; CHECK: jmp _testi ## TAILCALL
13
14
15define i64 @test_noop_bitcast() {
16 %A = tail call i64 @testi()
17 %B = bitcast i64 %A to i64
18 ret i64 %B
19}
20; CHECK: test_noop_bitcast:
21; CHECK: jmp _testi ## TAILCALL