blob: bd21efb445c35d5edc5271b4d303fefa30ee477a [file] [log] [blame]
Evan Chengb1712452010-01-27 06:25:16 +00001; RUN: llc < %s -march=x86 -asm-verbose=false | FileCheck %s
2; RUN: llc < %s -march=x86-64 -asm-verbose=false | FileCheck %s
3
Evan Cheng7096ae42010-01-29 06:45:59 +00004define void @t1(i32 %x) nounwind ssp {
Evan Chengb1712452010-01-27 06:25:16 +00005entry:
Evan Cheng7096ae42010-01-29 06:45:59 +00006; CHECK: t1:
Chandler Carruth6f034332010-01-27 10:36:15 +00007; CHECK: jmp {{_?}}foo
Evan Chengb1712452010-01-27 06:25:16 +00008 tail call void @foo() nounwind
9 ret void
10}
11
12declare void @foo()
Evan Cheng7096ae42010-01-29 06:45:59 +000013
14define void @t2() nounwind ssp {
15entry:
16; CHECK: t2:
17; CHECK: jmp {{_?}}foo2
18 %0 = tail call i32 @foo2() nounwind
19 ret void
20}
21
22declare i32 @foo2()
23
24define void @t3() nounwind ssp {
25entry:
26; CHECK: t3:
27; CHECK: jmp {{_?}}foo3
28 %0 = tail call i32 @foo3() nounwind
29 ret void
30}
31
32declare i32 @foo3()