diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-14 07:09:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-14 07:09:25 +0000 |
commit | 955c07cab0d9c4dcf893ac52eea4d77dbaa1fd75 (patch) | |
tree | 63eb3136cb8f8c5760bbea26f8e91a77244b0361 /test/CodeGen/X86/fildll.ll | |
parent | 67649dfc324e25755c2a2e0315062fd49c659b6f (diff) | |
download | llvm-955c07cab0d9c4dcf893ac52eea4d77dbaa1fd75.tar.gz llvm-955c07cab0d9c4dcf893ac52eea4d77dbaa1fd75.tar.bz2 llvm-955c07cab0d9c4dcf893ac52eea4d77dbaa1fd75.tar.xz |
Ensure these casts are done with the hardware fildll instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22013 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/fildll.ll')
-rw-r--r-- | test/CodeGen/X86/fildll.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fildll.ll b/test/CodeGen/X86/fildll.ll new file mode 100644 index 0000000000..a9808dfcad --- /dev/null +++ b/test/CodeGen/X86/fildll.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=att | grep fildll | wc -l | grep 2 + +fastcc double %sint64_to_fp(long %X) { + %R = cast long %X to double + ret double %R +} + +fastcc double %uint64_to_fp(ulong %X) { + %R = cast ulong %X to double + ret double %R +} |