diff options
author | Arnold Schwaighofer <arnold.schwaighofer@gmail.com> | 2008-09-11 22:24:28 +0000 |
---|---|---|
committer | Arnold Schwaighofer <arnold.schwaighofer@gmail.com> | 2008-09-11 22:24:28 +0000 |
commit | 363f53f3ec711f603c9ba4a56a750795cd3f71aa (patch) | |
tree | 8873c06abdcd25b8c577c2b3eea93eb2b9dad3db /test/CodeGen/X86/tailcallfp.ll | |
parent | e5d20f947a002519832005c40c6c60962616a476 (diff) | |
download | external_llvm-363f53f3ec711f603c9ba4a56a750795cd3f71aa.zip external_llvm-363f53f3ec711f603c9ba4a56a750795cd3f71aa.tar.gz external_llvm-363f53f3ec711f603c9ba4a56a750795cd3f71aa.tar.bz2 |
Add indirect tail call (function pointer) examples.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56127 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/tailcallfp.ll')
-rw-r--r-- | test/CodeGen/X86/tailcallfp.ll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/X86/tailcallfp.ll b/test/CodeGen/X86/tailcallfp.ll new file mode 100644 index 0000000..f614935 --- /dev/null +++ b/test/CodeGen/X86/tailcallfp.ll @@ -0,0 +1,5 @@ +; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel -tailcallopt | not grep call +define fastcc i32 @bar(i32 %X, i32(double, i32) *%FP) { + %Y = tail call fastcc i32 %FP(double 0.0, i32 %X) + ret i32 %Y +} |