diff options
author | Duncan Sands <baldrick@free.fr> | 2008-01-16 22:55:25 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-01-16 22:55:25 +0000 |
commit | 3e8ff6f95873fbfccc883c13170e2e65278a6948 (patch) | |
tree | 1c5ba37dffd59d89337f9791bebb6d6363dea98b /test/CodeGen/X86 | |
parent | 476eea997ba9ba3ced09a60c62ff90c3375f8dbc (diff) | |
download | external_llvm-3e8ff6f95873fbfccc883c13170e2e65278a6948.zip external_llvm-3e8ff6f95873fbfccc883c13170e2e65278a6948.tar.gz external_llvm-3e8ff6f95873fbfccc883c13170e2e65278a6948.tar.bz2 |
Trampoline support for x86-64. This looks like
it should work, but I have no machine to test
it on. Committed because it will at least
cause no harm, and maybe someone can test it
for me!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46098 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
-rw-r--r-- | test/CodeGen/X86/2008-01-16-Trampoline.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2008-01-16-Trampoline.ll b/test/CodeGen/X86/2008-01-16-Trampoline.ll new file mode 100644 index 0000000..4510edb --- /dev/null +++ b/test/CodeGen/X86/2008-01-16-Trampoline.ll @@ -0,0 +1,14 @@ +; RUN: llvm-as < %s | llc -march=x86 +; RUN: llvm-as < %s | llc -march=x86-64 + + %struct.FRAME.gnat__perfect_hash_generators__select_char_position__build_identical_keys_sets = type { i32, i32, void (i32, i32)*, i8 (i32, i32)* } + +define fastcc i32 @gnat__perfect_hash_generators__select_char_position__build_identical_keys_sets.5146(i64 %table.0.0, i64 %table.0.1, i32 %last, i32 %pos) { +entry: + %tramp22 = call i8* @llvm.init.trampoline( i8* null, i8* bitcast (void (%struct.FRAME.gnat__perfect_hash_generators__select_char_position__build_identical_keys_sets*, i32, i32)* @gnat__perfect_hash_generators__select_char_position__build_identical_keys_sets__move.5177 to i8*), i8* null ) ; <i8*> [#uses=0] + unreachable +} + +declare void @gnat__perfect_hash_generators__select_char_position__build_identical_keys_sets__move.5177(%struct.FRAME.gnat__perfect_hash_generators__select_char_position__build_identical_keys_sets* nest , i32, i32) nounwind + +declare i8* @llvm.init.trampoline(i8*, i8*, i8*) nounwind |