annotate test/CodeGen/ARM/v8m-tail-call.ll @ 128:c347d3398279 default tip

fix
author mir3636
date Wed, 06 Dec 2017 14:37:17 +0900
parents 803732b1fca8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 ; RUN: llc %s -o - -mtriple=thumbv8m.base | FileCheck %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3 define void @test() {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4 ; CHECK-LABEL: test:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5 entry:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 %call = tail call i32 @foo()
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 %tail = tail call i32 @foo()
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 ; CHECK: bl foo
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 ; CHECK: bl foo
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 ; CHECK-NOT: b foo
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 define void @test2() {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 ; CHECK-LABEL: test2:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 entry:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 %tail = tail call i32 @foo()
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19 ; CHECK: b foo
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20 ; CHECK-NOT: bl foo
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
21 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
22
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
23 declare i32 @foo()